|
4 | 4 |
|
5 | 5 | import tusclient
|
6 | 6 |
|
7 |
| - |
8 |
| -install_requires = [ |
9 |
| - 'future>=0.16.0', 'requests>=2.18.4', 'six>=1.11.0', 'tinydb>=3.5.0', 'aiohttp>=3.6.2' |
10 |
| -] |
11 |
| -if os.environ.get('READTHEDOCS') != 'True': |
12 |
| - install_requires.append('certifi>=2018.1.18') |
13 |
| -TESTS_REQUIRE = [ |
14 |
| - 'responses>=0.5.1', 'aioresponses>=0.6.2', 'coverage>=4.2', 'pytest>=3.0.3', |
15 |
| - 'pytest-cov>=2.3.1,<2.6' |
16 |
| -] |
17 |
| - |
18 |
| -PY_VERSION = sys.version_info[0], sys.version_info[1] |
19 |
| -if PY_VERSION < (3, 0): |
20 |
| - long_description = open('README.md').read() |
21 |
| -else: |
22 |
| - long_description = open('README.md', encoding='utf-8').read() |
23 |
| - |
24 | 7 | setup(
|
25 | 8 | name='tuspy',
|
26 | 9 | version=tusclient.__version__,
|
27 | 10 | url='http://github.com/tus/tus-py-client/',
|
28 | 11 | license='MIT',
|
29 | 12 | author='Ifedapo Olarewaju',
|
30 |
| - install_requires=install_requires, |
31 |
| - tests_require=TESTS_REQUIRE, |
| 13 | + install_requires=[ |
| 14 | + 'future>=0.16.0', |
| 15 | + 'requests>=2.18.4', |
| 16 | + 'six>=1.11.0', |
| 17 | + 'tinydb>=3.5.0', |
| 18 | + 'aiohttp>=3.6.2' |
| 19 | + ], |
32 | 20 | extras_require={
|
33 |
| - 'test': TESTS_REQUIRE, |
34 |
| - 'dev': ['tox>=2.3.1', 'sphinx-autobuild==0.7.1', 'Sphinx==1.7.1'] |
| 21 | + 'test': [ |
| 22 | + 'responses>=0.5.1', |
| 23 | + 'aioresponses>=0.6.2', |
| 24 | + 'coverage>=4.2', |
| 25 | + 'pytest>=3.0.3', |
| 26 | + 'pytest-cov>=2.3.1,<2.6' |
| 27 | + ], |
| 28 | + 'dev': [ |
| 29 | + 'tox>=2.3.1', |
| 30 | + 'sphinx-autobuild==0.7.1', |
| 31 | + 'Sphinx==1.7.1' |
| 32 | + ] |
35 | 33 | },
|
36 | 34 | author_email='ifedapoolarewaju@gmail.com',
|
37 | 35 | description=
|
38 | 36 | 'A Python client for the tus resumable upload protocol -> http://tus.io',
|
39 |
| - long_description=(long_description), |
| 37 | + long_description=open('README.md', encoding='utf-8').read(), |
40 | 38 | long_description_content_type='text/markdown',
|
41 | 39 | packages=['tusclient', 'tusclient.fingerprint', 'tusclient.storage', 'tusclient.uploader'],
|
42 | 40 | include_package_data=True,
|
|
0 commit comments