From c03d515aded6de224fddd7a7e3aaca3781feec9a Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 5 Nov 2023 16:22:31 -0500 Subject: [PATCH] build(pypi): verify readme and add long_description_content_type (#1282) --- .github/workflows/pypi.yml | 7 ++++++- setup.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 9af229d8..c5e873ac 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -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: diff --git a/setup.py b/setup.py index 2c80ffa8..7e87e129 100644 --- a/setup.py +++ b/setup.py @@ -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',