diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b123df1e..2a220607 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,16 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build SDist and wheel - run: pipx run build - - - uses: actions/upload-artifact@v4 - with: - name: cibw-sdist - path: dist/* - - - name: Check metadata - run: pipx run twine check dist/* + - uses: hynek/build-and-inspect-python-package@v2 publish: needs: [dist] @@ -38,9 +29,8 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - pattern: cibw-* + name: Packages path: dist - merge-multiple: true - name: Generate artifact attestation for sdist and wheel uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3 @@ -48,3 +38,5 @@ jobs: subject-path: "dist/cibuildwheel-*" - uses: pypa/gh-action-pypi-publish@release/v1 + with: + attestations: true diff --git a/pyproject.toml b/pyproject.toml index def288a5..9f8b9d4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -240,3 +240,6 @@ flake8-unused-arguments.ignore-variadic-names = true [tool.repo-review] ignore = ["PC170", "PP303"] + +[tool.check-wheel-contents] +ignore = ["W002"] # requirements-*.txt are allowed to be duplicates of one another