From ffad8f63e67419b84efcc216306a6f4c735d7a44 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Mon, 14 Oct 2024 13:21:20 +0500 Subject: [PATCH] Add twinecheck. --- .github/workflows/main.yml | 5 +++++ setup.cfg | 2 +- setup.py | 1 - tox.ini | 9 +++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a9c706f..d2b7c9a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,6 +29,11 @@ jobs: env: TOXENV: pypy3 + # checks + - python-version: "3.13" + env: + TOXENV: twinecheck + steps: - uses: actions/checkout@v4 diff --git a/setup.cfg b/setup.cfg index 70dabed..0f6b27e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ universal = 1 [metadata] -description-file = README.rst +description_file = README.rst [aliases] test=pytest tests diff --git a/setup.py b/setup.py index 75724d9..ebab23c 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,6 @@ packages=find_packages("src"), py_modules=["protego"], python_requires=">=3.9", - tests_require=["pytest"], include_package_data=True, keywords=["robots.txt", "parser", "robots", "rep"], classifiers=[ diff --git a/tox.ini b/tox.ini index bfeddd5..d1e28c8 100644 --- a/tox.ini +++ b/tox.ini @@ -19,3 +19,12 @@ commands = deps = pre-commit commands = pre-commit run --all-files --show-diff-on-failure skip_install = true + +[testenv:twinecheck] +basepython = python3 +deps = + twine==5.1.1 + build==1.2.2 +commands = + python -m build --sdist + twine check dist/*