|
13 | 13 | #
|
14 | 14 | # You need to have the setuptools module installed. Try reading the setuptools
|
15 | 15 | # documentation: http://pypi.python.org/pypi/setuptools
|
16 |
| -REQUIRES = ["requests >= 2.0.0", "six", "pytz", "PyJWT >= 1.4.2,<1.5.1"] |
17 |
| - |
18 |
| -if sys.version_info < (3, 0): |
19 |
| - REQUIRES.extend(["cryptography >= 1.3.4", "idna >= 2.0.0", "pyOpenSSL >= 0.14"]) |
20 |
| -if sys.version_info >= (3, 0): |
21 |
| - REQUIRES.append('pysocks') |
22 | 16 |
|
23 | 17 | setup(
|
24 | 18 | name = "twilio",
|
|
28 | 22 | author_email = "help@twilio.com",
|
29 | 23 | url = "https://github.com/twilio/twilio-python/",
|
30 | 24 | keywords = ["twilio","twiml"],
|
31 |
| - install_requires = REQUIRES, |
32 |
| - # bdist conditional requirements support |
| 25 | + install_requires = [ |
| 26 | + "six", |
| 27 | + "pytz", |
| 28 | + "PyJWT >= 1.4.2, <1.5.1", |
| 29 | + ], |
33 | 30 | extras_require={
|
34 |
| - ':python_version=="3.3"': ['pysocks'], |
35 |
| - ':python_version=="3.4"': ['pysocks'], |
36 |
| - ':python_version=="3.5"': ['pysocks'], |
37 |
| - ':python_version=="3.6"': ['pysocks'], |
| 31 | + ':python_version<"3.0"': [ |
| 32 | + "requests[security] >= 2.0.0", |
| 33 | + ], |
| 34 | + ':python_version>="3.0"': [ |
| 35 | + "requests >= 2.0.0", |
| 36 | + "pysocks", |
| 37 | + ], |
38 | 38 | },
|
39 | 39 | packages = find_packages(exclude=['tests', 'tests.*']),
|
40 | 40 | include_package_data=True,
|
|
0 commit comments