diff options
author | Joffrey F <joffrey@docker.com> | 2018-11-30 17:26:50 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-11-30 17:26:50 -0800 |
commit | 3381f7be151400c973e26a32f194e1ef869f6db8 (patch) | |
tree | f2acc76a5f3ccf330f8f89c21b51831af6cf35c0 | |
parent | 5c748467d7937b964ccc4d49b2ac8021fb98e6ce (diff) | |
download | docker-py-update_setup_py.tar.gz |
Update setup.py for modern pypi / setuptoolsupdate_setup_py
Signed-off-by: Joffrey F <joffrey@docker.com>
-rwxr-xr-x | scripts/release.sh | 9 | ||||
-rw-r--r-- | setup.py | 18 |
2 files changed, 12 insertions, 15 deletions
diff --git a/scripts/release.sh b/scripts/release.sh index 5b37b6d..f3ace27 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -3,12 +3,6 @@ # Create the official release # -if [ -z "$(command -v pandoc 2> /dev/null)" ]; then - >&2 echo "$0 requires http://pandoc.org/" - >&2 echo "Please install it and make sure it is available on your \$PATH." - exit 2 -fi - VERSION=$1 REPO=docker/docker-py GITHUB_REPO=git@github.com:$REPO @@ -37,11 +31,10 @@ if [[ $2 == 'upload' ]]; then fi -pandoc -f markdown -t rst README.md -o README.rst || exit 1 echo "##> sdist & wheel" python setup.py sdist bdist_wheel if [[ $2 == 'upload' ]]; then echo '##> Uploading sdist to pypi' twine upload dist/docker-$VERSION* -fi
\ No newline at end of file +fi @@ -55,24 +55,27 @@ with open('./test-requirements.txt') as test_reqs_txt: long_description = '' -try: - with codecs.open('./README.rst', encoding='utf-8') as readme_rst: - long_description = readme_rst.read() -except IOError: - # README.rst is only generated on release. Its absence should not prevent - # setup.py from working properly. - pass +with codecs.open('./README.md', encoding='utf-8') as readme_md: + long_description = readme_md.read() setup( name="docker", version=version, description="A Python library for the Docker Engine API.", long_description=long_description, + long_description_content_type='text/markdown', url='https://github.com/docker/docker-py', + project_urls={ + 'Documentation': 'https://docker-py.readthedocs.io', + 'Changelog': 'https://docker-py.readthedocs.io/en/stable/change-log.html', # flake8: noqa + 'Source': 'https://github.com/docker/docker-py', + 'Tracker': 'https://github.com/docker/docker-py/issues', + }, packages=find_packages(exclude=["tests.*", "tests"]), install_requires=requirements, tests_require=test_requirements, extras_require=extras_require, + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*', zip_safe=False, test_suite='tests', classifiers=[ @@ -89,6 +92,7 @@ setup( 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Topic :: Software Development', 'Topic :: Utilities', 'License :: OSI Approved :: Apache Software License', ], |