setup.py: properly mark long_description as Markdown

This looks hacky, but it is the officially recommended way:
https://packaging.python.org/guides/making-a-pypi-friendly-readme/
This commit is contained in:
Hans-Christoph Steiner 2020-10-08 16:53:52 +02:00
parent ead5fd52a2
commit 4d92c1c1b1
2 changed files with 6 additions and 2 deletions

View File

@ -23,8 +23,7 @@ description-file = README.md
license_file = LICENSE
# uploading here requires Python 3.5.3+ or setuptools 27+,
# use instead: twine upload --sign dist/fdroidserver*.tar.gz
# post release files with: twine upload --sign dist/repomaker-*.tar.gz
[aliases]
release = version_check repomaker_static_check compile_catalog sdist

View File

@ -48,11 +48,16 @@ DATA_PREFIX = os.path.join('share', 'repomaker')
packages = find_packages()
print("Packages: %s" % str(packages))
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')) as f:
long_description = f.read()
setup(
name='repomaker',
version=VERSION,
packages=packages + ['repomaker-static'],
description='Create F-Droid repositories with ease',
long_description=long_description,
long_description_content_type='text/markdown',
license='AGPL-3.0',
url='https://f-droid.org/repomaker/',
python_requires='>=3',