From 24995a21779f9a433306312757719092d20e8ff8 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Mon, 14 Oct 2024 19:41:34 +0500 Subject: [PATCH] Add twinecheck. --- .github/workflows/main.yml | 3 +++ setup.py | 1 + tox.ini | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 50e44c6..8aaf390 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,6 +51,9 @@ jobs: - python-version: "3.13" env: TOXENV: docs + - python-version: "3.13" + env: + TOXENV: twinecheck steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/setup.py b/setup.py index 6de54d0..bd620ed 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ license='BSD', description='Scrapy middleware for Zyte Smart Proxy Manager', long_description=readme, + long_description_content_type="text/x-rst", maintainer='Raul Gallegos', maintainer_email='raul.ogh@gmail.com', author='Zyte', diff --git a/tox.ini b/tox.ini index 023f676..2985068 100644 --- a/tox.ini +++ b/tox.ini @@ -64,3 +64,12 @@ changedir = {[docs]changedir} deps = {[docs]deps} commands = sphinx-build -nW -b html . {envtmpdir}/html + +[testenv:twinecheck] +basepython = python3 +deps = + twine==5.1.1 + build==1.2.2 +commands = + python -m build --sdist + twine check dist/*