|
7 | 7 | __version__ = VERSION
|
8 | 8 | __versionstr__ = ".".join(map(str, VERSION))
|
9 | 9 |
|
10 |
| -f = open(join(dirname(__file__), "README")) |
11 |
| -long_description = f.read().strip() |
12 |
| -f.close() |
| 10 | +with open(join(dirname(__file__), "README")) as f: |
| 11 | + long_description = f.read().strip() |
13 | 12 |
|
14 | 13 | install_requires = ["urllib3>=1.21.1"]
|
15 | 14 | tests_require = [
|
16 | 15 | "requests>=2.0.0, <3.0.0",
|
17 | 16 | "nose",
|
18 | 17 | "coverage",
|
19 | 18 | "mock",
|
20 |
| - "pyaml", |
| 19 | + "pyyaml", |
21 | 20 | "nosexcover",
|
22 | 21 | ]
|
23 | 22 |
|
24 | 23 | docs_require = ["sphinx<1.7", "sphinx_rtd_theme"]
|
25 | 24 | generate_require = ["black", "jinja2"]
|
26 | 25 |
|
27 |
| -# use external unittest for 2.6 |
28 |
| -if sys.version_info[:2] == (2, 6): |
29 |
| - install_requires.append("unittest2") |
30 |
| - |
31 | 26 | setup(
|
32 | 27 | name="elasticsearch",
|
33 | 28 | description="Python client for Elasticsearch",
|
34 |
| - license="Apache License, Version 2.0", |
| 29 | + license="Apache-2.0", |
35 | 30 | url="https://github.com/elastic/elasticsearch-py",
|
36 | 31 | long_description=long_description,
|
| 32 | + long_description_content_type="text/x-rst", |
37 | 33 | version=__versionstr__,
|
38 | 34 | author="Honza Král, Nick Lang",
|
39 | 35 |
|
| 36 | + maintainer="Seth Michael Larson", |
| 37 | + maintainer_email="[email protected]", |
40 | 38 | packages=find_packages(where=".", exclude=("test_elasticsearch*",)),
|
41 | 39 | classifiers=[
|
42 | 40 | "Development Status :: 5 - Production/Stable",
|
|
55 | 53 | "Programming Language :: Python :: Implementation :: CPython",
|
56 | 54 | "Programming Language :: Python :: Implementation :: PyPy",
|
57 | 55 | ],
|
| 56 | + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", |
58 | 57 | install_requires=install_requires,
|
59 | 58 | test_suite="test_elasticsearch.run_tests.run_all",
|
60 | 59 | tests_require=tests_require,
|
|
0 commit comments