Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
import subprocess
import codecs
import os

try:
import requests
requests_installed = True
except ImportError:
requests_installed = False
import requests

#VERSION = '0.0.1'
# VERSION = (
Expand All @@ -17,9 +12,6 @@
# )

def get_pypi_version():
if not requests_installed:
print("Warning: 'requests' module is not installed. Using default version.")
return "0.0.1"
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
try:
response = requests.get("https://pypi.org/pypi/easyPythonpi/json")
data = response.json()
Expand Down Expand Up @@ -90,8 +82,10 @@ def get_version():
description=DESCRIPTION,
long_description_content_type="text/markdown",
packages=find_packages(),
install_requires=["numpy >= 1.19.5"] + (["requests >= 2.25.1"] if not requests_installed else []),
setup_requires=["requests >= 2.25.1"],
install_requires=[
Comment thread
sourcery-ai[bot] marked this conversation as resolved.
"numpy>=1.19.5",
"requests>=2.25.1",
],
keywords=['python', 'sorting', 'beginners', 'sockets'],
classifiers=[
"Development Status :: 1 - Planning",
Expand Down
Loading