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