build(pypi): verify readme and add long_description_content_type (#1282)

This commit is contained in:
ReenigneArcher 2023-11-05 16:22:31 -05:00 committed by GitHub
parent 31bbb4fbfe
commit c03d515ade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -28,9 +28,14 @@ jobs:
run: |
pip install -U pip
pip install -r requirements.txt
pip install setuptools wheel
pip install setuptools twine wheel
python setup.py sdist bdist_wheel
- name: Verify README
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
run: |
python -m twine check dist/*
- name: Upload builds
uses: actions/upload-artifact@v3
with:

View file

@ -36,6 +36,7 @@ setup(
},
python_requires='>=3.8',
long_description=readme,
long_description_content_type='text/x-rst',
keywords=['plex', 'api'],
classifiers=[
'Operating System :: OS Independent',