Skip to content

Commit d5c6a83

Browse files
henryiiimayeut
andauthored
ci: update job slightly (#2028)
* ci: update job slightly * Ignore check-wheel-content W002 --------- Co-authored-by: mayeut <mayeut@users.noreply.github.com>
1 parent 2e8e511 commit d5c6a83

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/release.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Build SDist and wheel
17-
run: pipx run build
18-
19-
- uses: actions/upload-artifact@v4
20-
with:
21-
name: cibw-sdist
22-
path: dist/*
23-
24-
- name: Check metadata
25-
run: pipx run twine check dist/*
16+
- uses: hynek/build-and-inspect-python-package@v2
2617

2718
publish:
2819
needs: [dist]
@@ -38,13 +29,14 @@ jobs:
3829
steps:
3930
- uses: actions/download-artifact@v4
4031
with:
41-
pattern: cibw-*
32+
name: Packages
4233
path: dist
43-
merge-multiple: true
4434

4535
- name: Generate artifact attestation for sdist and wheel
4636
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
4737
with:
4838
subject-path: "dist/cibuildwheel-*"
4939

5040
- uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
attestations: true

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,6 @@ flake8-unused-arguments.ignore-variadic-names = true
240240

241241
[tool.repo-review]
242242
ignore = ["PC170", "PP303"]
243+
244+
[tool.check-wheel-contents]
245+
ignore = ["W002"] # requirements-*.txt are allowed to be duplicates of one another

0 commit comments

Comments
 (0)