diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87f891425..54b73b27d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,6 +79,7 @@ jobs: git checkout "$(git describe --tags "$(git rev-list --tags --max-count=1)")" python -m pip install build python -m build --sdist --wheel --outdir dist/ . + check-wheel-contents dist/*.whl # We use PyPI trusted publishing rather than a PyPI API token. # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing. diff --git a/pyproject.toml b/pyproject.toml index b53af7aee..cf8c6eb86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -299,6 +299,7 @@ dependencies = [ dev = [ "actionlint-py==1.6.27.12", "check-manifest==0.49", + "check-wheel-contents==0.6.0", "deptry==0.15.0", "dirty-equals==0.7.1.post0", "doc8==1.1.1",