|
3 | 3 | from setuptools import setup, find_packages |
4 | 4 | import sys |
5 | 5 |
|
6 | | -VERSION = (6, 3, 1) |
| 6 | +VERSION = (7, 0, 0) |
7 | 7 | __version__ = VERSION |
8 | | -__versionstr__ = '.'.join(map(str, VERSION)) |
| 8 | +__versionstr__ = ".".join(map(str, VERSION)) |
9 | 9 |
|
10 | | -f = open(join(dirname(__file__), 'README')) |
| 10 | +f = open(join(dirname(__file__), "README")) |
11 | 11 | long_description = f.read().strip() |
12 | 12 | f.close() |
13 | 13 |
|
14 | | -install_requires = [ |
15 | | - 'urllib3>=1.21.1', |
16 | | -] |
| 14 | +install_requires = ["urllib3>=1.21.1"] |
17 | 15 | tests_require = [ |
18 | | - 'requests>=2.0.0, <3.0.0', |
19 | | - 'nose', |
20 | | - 'coverage', |
21 | | - 'mock', |
22 | | - 'pyaml', |
23 | | - 'nosexcover' |
| 16 | + "requests>=2.0.0, <3.0.0", |
| 17 | + "nose", |
| 18 | + "coverage", |
| 19 | + "mock", |
| 20 | + "pyaml", |
| 21 | + "nosexcover", |
24 | 22 | ] |
25 | 23 |
|
26 | 24 | # use external unittest for 2.6 |
27 | 25 | if sys.version_info[:2] == (2, 6): |
28 | | - install_requires.append('unittest2') |
| 26 | + install_requires.append("unittest2") |
29 | 27 |
|
30 | 28 | setup( |
31 | | - name = 'elasticsearch', |
32 | | - description = "Python client for Elasticsearch", |
| 29 | + name="elasticsearch", |
| 30 | + description="Python client for Elasticsearch", |
33 | 31 | license="Apache License, Version 2.0", |
34 | | - url = "https://github.com/elastic/elasticsearch-py", |
35 | | - long_description = long_description, |
36 | | - version = __versionstr__, |
37 | | - author = "Honza Král, Nick Lang", |
38 | | - author_email = "honza.kral@gmail.com, nick@nicklang.com", |
39 | | - packages=find_packages( |
40 | | - where='.', |
41 | | - exclude=('test_elasticsearch*', ) |
42 | | - ), |
43 | | - classifiers = [ |
| 32 | + url="https://github.com/elastic/elasticsearch-py", |
| 33 | + long_description=long_description, |
| 34 | + version=__versionstr__, |
| 35 | + author="Honza Král, Nick Lang", |
| 36 | + author_email="honza.kral@gmail.com, nick@nicklang.com", |
| 37 | + packages=find_packages(where=".", exclude=("test_elasticsearch*",)), |
| 38 | + classifiers=[ |
44 | 39 | "Development Status :: 5 - Production/Stable", |
45 | 40 | "License :: OSI Approved :: Apache Software License", |
46 | 41 | "Intended Audience :: Developers", |
|
59 | 54 | "Programming Language :: Python :: Implementation :: PyPy", |
60 | 55 | ], |
61 | 56 | install_requires=install_requires, |
62 | | - |
63 | | - test_suite='test_elasticsearch.run_tests.run_all', |
| 57 | + test_suite="test_elasticsearch.run_tests.run_all", |
64 | 58 | tests_require=tests_require, |
65 | | - |
66 | 59 | extras_require={ |
67 | | - 'develop': tests_require + ["sphinx<1.7", "sphinx_rtd_theme"], |
68 | | - 'requests': ['requests>=2.4.0, <3.0.0'] |
| 60 | + "develop": tests_require + ["sphinx<1.7", "sphinx_rtd_theme"], |
| 61 | + "requests": ["requests>=2.4.0, <3.0.0"], |
69 | 62 | }, |
70 | 63 | ) |
0 commit comments