From d5c6a83aeb038f0a0c0e2a17630988119f345bcf Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 2 Oct 2024 14:52:36 -0400 Subject: [PATCH] ci: update job slightly (#2028) * ci: update job slightly * Ignore check-wheel-content W002 --------- Co-authored-by: mayeut --- .github/workflows/release.yml | 16 ++++------------ pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b123df1e5..2a220607f 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 def288a5e..9f8b9d4e3 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