|
55 | 55 |
|
56 | 56 |
|
57 | 57 | long_description = ''
|
58 |
| -try: |
59 |
| - with codecs.open('./README.rst', encoding='utf-8') as readme_rst: |
60 |
| - long_description = readme_rst.read() |
61 |
| -except IOError: |
62 |
| - # README.rst is only generated on release. Its absence should not prevent |
63 |
| - # setup.py from working properly. |
64 |
| - pass |
| 58 | +with codecs.open('./README.md', encoding='utf-8') as readme_md: |
| 59 | + long_description = readme_md.read() |
65 | 60 |
|
66 | 61 | setup(
|
67 | 62 | name="docker",
|
68 | 63 | version=version,
|
69 | 64 | description="A Python library for the Docker Engine API.",
|
70 | 65 | long_description=long_description,
|
| 66 | + long_description_content_type='text/markdown', |
71 | 67 | url='https://github.com/docker/docker-py',
|
| 68 | + project_urls={ |
| 69 | + 'Documentation': 'https://docker-py.readthedocs.io', |
| 70 | + 'Changelog': 'https://docker-py.readthedocs.io/en/stable/change-log.html', # flake8: noqa |
| 71 | + 'Source': 'https://github.com/docker/docker-py', |
| 72 | + 'Tracker': 'https://github.com/docker/docker-py/issues', |
| 73 | + }, |
72 | 74 | packages=find_packages(exclude=["tests.*", "tests"]),
|
73 | 75 | install_requires=requirements,
|
74 | 76 | tests_require=test_requirements,
|
75 | 77 | extras_require=extras_require,
|
| 78 | + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*', |
76 | 79 | zip_safe=False,
|
77 | 80 | test_suite='tests',
|
78 | 81 | classifiers=[
|
|
89 | 92 | 'Programming Language :: Python :: 3.5',
|
90 | 93 | 'Programming Language :: Python :: 3.6',
|
91 | 94 | 'Programming Language :: Python :: 3.7',
|
| 95 | + 'Topic :: Software Development', |
92 | 96 | 'Topic :: Utilities',
|
93 | 97 | 'License :: OSI Approved :: Apache Software License',
|
94 | 98 | ],
|
|
0 commit comments