|
5 | 5 |
|
6 | 6 | here = os.path.abspath(os.path.dirname(__file__))
|
7 | 7 |
|
8 |
| -with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: |
| 8 | +with codecs.open(os.path.join(here, "README.rst"), encoding="utf-8") as f: |
9 | 9 | README = f.read()
|
10 | 10 |
|
11 |
| -REQUIREMENTS = [ |
12 |
| - 'requests>=2.8.1', |
13 |
| - 'unidecode', |
14 |
| -] |
| 11 | +REQUIREMENTS = ["requests>=2.8.1", "unidecode"] |
15 | 12 |
|
16 | 13 |
|
17 | 14 | if sys.version_info < (2, 7, 9):
|
18 | 15 | # For secure SSL connexion with Python 2.7 (InsecurePlatformWarning)
|
19 |
| - REQUIREMENTS.append('PyOpenSSL') |
20 |
| - REQUIREMENTS.append('ndg-httpsclient') |
21 |
| - REQUIREMENTS.append('pyasn1') |
| 16 | + REQUIREMENTS.append("PyOpenSSL") |
| 17 | + REQUIREMENTS.append("ndg-httpsclient") |
| 18 | + REQUIREMENTS.append("pyasn1") |
22 | 19 |
|
23 | 20 | test_requirements = [
|
24 |
| - 'pytest', |
25 |
| - 'pytest-cache', |
26 |
| - 'pytest-cov', |
27 |
| - 'pytest-sugar', |
28 |
| - 'pytest-xdist', |
29 |
| - 'kinto', |
30 |
| - 'unidecode', |
| 21 | + "pytest", |
| 22 | + "pytest-cache", |
| 23 | + "pytest-cov", |
| 24 | + "pytest-sugar", |
| 25 | + "pytest-xdist", |
| 26 | + "kinto", |
| 27 | + "unidecode", |
31 | 28 | ]
|
32 | 29 |
|
33 |
| -setup(name='kinto-http', |
34 |
| - version='10.4.0.dev0', |
35 |
| - description='Kinto client', |
36 |
| - long_description=README, |
37 |
| - license='Apache License (2.0)', |
38 |
| - classifiers=[ |
39 |
| - "Programming Language :: Python", |
40 |
| - "Programming Language :: Python :: 3", |
41 |
| - "Programming Language :: Python :: 3.5", |
42 |
| - "Programming Language :: Python :: 3.6", |
43 |
| - "Programming Language :: Python :: Implementation :: CPython", |
44 |
| - "Topic :: Internet :: WWW/HTTP", |
45 |
| - "License :: OSI Approved :: Apache Software License" |
46 |
| - ], |
47 |
| - keywords="web services", |
48 |
| - author='Mozilla Services', |
49 |
| - |
50 |
| - url='https://github.com/Kinto/kinto-http.py/', |
51 |
| - packages=find_packages(), |
52 |
| - include_package_data=True, |
53 |
| - zip_safe=False, |
54 |
| - install_requires=REQUIREMENTS, |
55 |
| - test_suite='kinto_http.tests', |
56 |
| - tests_require=test_requirements) |
| 30 | +setup( |
| 31 | + name="kinto-http", |
| 32 | + version="10.4.0", |
| 33 | + description="Kinto client", |
| 34 | + long_description=README, |
| 35 | + license="Apache License (2.0)", |
| 36 | + classifiers=[ |
| 37 | + "Programming Language :: Python", |
| 38 | + "Programming Language :: Python :: 3", |
| 39 | + "Programming Language :: Python :: 3.5", |
| 40 | + "Programming Language :: Python :: 3.6", |
| 41 | + "Programming Language :: Python :: Implementation :: CPython", |
| 42 | + "Topic :: Internet :: WWW/HTTP", |
| 43 | + "License :: OSI Approved :: Apache Software License", |
| 44 | + ], |
| 45 | + keywords="web services", |
| 46 | + author="Mozilla Services", |
| 47 | + |
| 48 | + url="https://github.com/Kinto/kinto-http.py/", |
| 49 | + packages=find_packages(), |
| 50 | + include_package_data=True, |
| 51 | + zip_safe=False, |
| 52 | + install_requires=REQUIREMENTS, |
| 53 | + test_suite="kinto_http.tests", |
| 54 | + tests_require=test_requirements, |
| 55 | +) |
0 commit comments