Skip to content

Commit 56221f0

Browse files
committed
wip
1 parent 3346a5b commit 56221f0

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,37 @@ jobs:
2020
- uses: actions/upload-artifact@v4
2121
with:
2222
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
23-
path: ./wheelhouse/*.whl
23+
path: ./wheelhouse/*.whl
24+
25+
build_sdist:
26+
name: Make SDist
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0 # Optional, use if you use setuptools_scm
32+
submodules: true # Optional, use if you have submodules
33+
34+
- name: Build SDist
35+
run: pipx run build --sdist
36+
37+
- uses: actions/upload-artifact@v4
38+
with:
39+
name: cibw-sdist
40+
path: dist/*.tar.gz
41+
42+
upload_all:
43+
needs: [ build_wheels, build_sdist ]
44+
environment: pypi
45+
permissions:
46+
id-token: write
47+
runs-on: ubuntu-latest
48+
if: github.event_name == 'release' && github.event.action == 'published'
49+
steps:
50+
- uses: actions/download-artifact@v4
51+
with:
52+
pattern: cibw-*
53+
path: dist
54+
merge-multiple: true
55+
56+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ warn_unused_ignores = true
6969
warn_unreachable = true
7070

7171
[tool.cibuildwheel]
72-
skip = ["cp38-*", "cp314-*"]
72+
skip = ["cp38-*", "cp314*"]
7373

7474
[tool.cibuildwheel.macos]
7575
archs = ["arm64"]

0 commit comments

Comments
 (0)