Skip to content

Commit c03d515

Browse files
build(pypi): verify readme and add long_description_content_type (#1282)
1 parent 31bbb4f commit c03d515

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/pypi.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
run: |
2929
pip install -U pip
3030
pip install -r requirements.txt
31-
pip install setuptools wheel
31+
pip install setuptools twine wheel
3232
python setup.py sdist bdist_wheel
3333
34+
- name: Verify README
35+
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
36+
run: |
37+
python -m twine check dist/*
38+
3439
- name: Upload builds
3540
uses: actions/upload-artifact@v3
3641
with:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
},
3737
python_requires='>=3.8',
3838
long_description=readme,
39+
long_description_content_type='text/x-rst',
3940
keywords=['plex', 'api'],
4041
classifiers=[
4142
'Operating System :: OS Independent',

0 commit comments

Comments
 (0)