Skip to content

Commit

Permalink
Merge branch 'bxsx/fix-setup' into fix-collecting-users-on-django
Browse files Browse the repository at this point in the history
  • Loading branch information
bxsx committed Sep 18, 2021
2 parents 119dc59 + ef5b42b commit 6a7e74d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import re
import os.path
import sys
from setuptools import setup, find_packages

HERE = os.path.abspath(os.path.dirname(__file__))
Expand Down Expand Up @@ -78,8 +77,20 @@
"Topic :: System :: Monitoring",
],
install_requires=[
'requests>=0.12.1',
# The currently used version of `setuptools` has a bug,
# so the version requirements are not properly respected.
#
# In the current version, `requests>= 0.12.1`
# always installs the latest version of the package.
'requests>=0.12.1; python_version == "2.7"',
'requests>=0.12.1; python_version >= "3.6"',
'requests<2.26,>=0.12.1; python_version == "3.5"',
'requests<2.22,>=0.12.1; python_version == "3.4"',
'requests<2.19,>=0.12.1; python_version == "3.3"',
'requests<1.2,>=0.12.1; python_version == "3.2"',
'requests<1.2,>=0.12.1; python_version == "3.1"',
'requests<1.2,>=0.12.1; python_version == "3.0"',
'six>=1.9.0'
],
tests_require=tests_require,
)
)

0 comments on commit 6a7e74d

Please sign in to comment.