|
1 | | -from distutils.core import setup |
| 1 | +import sys |
| 2 | +import warnings |
| 3 | + |
| 4 | +try: |
| 5 | + from setuptools import setup |
| 6 | +except ImportError: |
| 7 | + from distutils.core import setup |
| 8 | + |
| 9 | +install_requires = ['requests>=2.4.2', 'enum34'] |
| 10 | + |
| 11 | +if sys.version_info < (2, 7, 9): |
| 12 | + warnings.warn( |
| 13 | + 'Users have reported issues with SNI / SSL by using Scale on ' |
| 14 | + 'versions of Python older than 2.7.9. If at all possible, you should ' |
| 15 | + 'upgrade your version of Python. ' |
| 16 | + 'If you have any questions, please file an issue on Github or ' |
| 17 | + 'contact us at [email protected].', |
| 18 | + DeprecationWarning) |
| 19 | + install_requires.append('pyOpenSSL') |
| 20 | + install_requires.append('ndg-httpsclient') |
| 21 | + install_requires.append('pyasn1') |
| 22 | + install_requires.append('idna') |
| 23 | + install_requires.append('requests[security]') |
| 24 | + |
2 | 25 | setup( |
3 | 26 | name = 'scaleapi', |
4 | 27 | packages = ['scaleapi'], |
5 | | - version = '0.1.7', |
| 28 | + version = '0.1.8', |
6 | 29 | description = 'The official Python client library for the Scale API, the API for human labor.', |
7 | 30 | author = 'Calvin Huang', |
8 | 31 | author_email = '[email protected]', |
9 | 32 | url = 'https://github.com/scaleapi/scaleapi-python-client', |
10 | 33 | download_url = 'https://github.com/scaleapi/scaleapi-python-client/tarball/0.1.2', |
11 | 34 | keywords = ['scale', 'scaleapi', 'humans', 'tasks', 'categorization', 'transcription', 'annotation', 'comparison', 'data collection', 'phone call', 'audio transcription'], |
12 | | - install_requires = ['requests>=2.4.2', 'enum34'], |
| 35 | + install_requires = install_requires, |
13 | 36 | classifiers = ['Programming Language :: Python :: 2.7', |
14 | 37 | 'Programming Language :: Python :: 3.5', |
15 | 38 | 'License :: OSI Approved :: MIT License', |
|
0 commit comments