Skip to content

Commit

Permalink
Add twinecheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR committed Oct 11, 2024
1 parent 00f9c11 commit 93afb27
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- python-version: 3.13
env:
TOXENV: typing
- python-version: 3.13
env:
TOXENV: twinecheck

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include AUTHORS CHANGES LICENSE README.rst tox.ini .coveragerc py.typed
include AUTHORS CHANGES LICENSE README.rst tox.ini .coveragerc cssselect/py.typed
recursive-include docs *
recursive-include tests *
prune docs/_build
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
maintainer_email="[email protected]",
description="cssselect parses CSS3 Selectors and translates them to XPath 1.0",
long_description=README,
long_description_content_type="text/x-rst",
url="https://github.com/scrapy/cssselect",
license="BSD",
packages=["cssselect"],
test_suite="cssselect.tests",
package_data={
"cssselect": ["py.typed"],
},
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,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/*

0 comments on commit 93afb27

Please sign in to comment.