Skip to content

Commit d9503a3

Browse files
authored
Fix built wheels for Python 3.12 (#88)
* Remove pypy310 * Use Python 3.12 environment * Build all wheels and merge artefacts * Remove deprecated build target (see https://github.com/PyO3/maturin-action\?tab\=readme-ov-file\#manylinux-docker-container) * Upgrade manylinux to 2.28 on cross arm * Drop python 3.12 in cross arm
1 parent 712f459 commit d9503a3

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
target: x86_64
3030
manylinux: auto
3131
python-architecture: x64
32-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
32+
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9
3333
- os: macos
3434
target: aarch64
3535
manylinux: auto
@@ -42,22 +42,17 @@ jobs:
4242
target: x86_64
4343
manylinux: 2_24
4444
python-architecture: x64
45-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
45+
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9
4646
- os: ubuntu
4747
target: aarch64
4848
manylinux: 2_24
4949
python-architecture: x64
50-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
51-
- os: ubuntu
52-
target: i686
53-
manylinux: 2_24
54-
python-architecture: x64
55-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
50+
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9
5651
- os: ubuntu
5752
target: armv7
5853
manylinux: 2_24
5954
python-architecture: x64
60-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12
55+
interpreter: 3.7 3.8 3.9 3.10 3.11 # No python 3.12 in this container
6156
- os: ubuntu
6257
target: ppc64le
6358
manylinux: 2_24
@@ -73,12 +68,12 @@ jobs:
7368
target: x86_64
7469
manylinux: musllinux_1_1 # /!\ value used in steps conditions below.
7570
python-architecture: x64
76-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
71+
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9
7772
- os: ubuntu
7873
target: aarch64
7974
manylinux: musllinux_1_1
8075
python-architecture: x64
81-
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9 pypy3.10
76+
interpreter: 3.7 3.8 3.9 3.10 3.11 3.12 pypy3.9
8277

8378
runs-on: ${{ matrix.os }}-latest
8479
steps:
@@ -87,7 +82,7 @@ jobs:
8782
- name: Set up python
8883
uses: actions/setup-python@v5
8984
with:
90-
python-version: '3.11'
85+
python-version: '3.12'
9186
architecture: ${{ matrix.python-architecture }}
9287

9388
- name: Extract version from tag
@@ -137,9 +132,8 @@ jobs:
137132
- name: Store the distribution packages
138133
uses: actions/upload-artifact@v4
139134
with:
140-
name: python-package-distributions
135+
name: python-package-distributions-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux }}
141136
path: dist/
142-
overwrite: true
143137

144138
publish-to-pypi:
145139
name: Publish Python 🐍 distribution 📦 to PyPI
@@ -156,7 +150,8 @@ jobs:
156150
- name: Download all the dists
157151
uses: actions/download-artifact@v4
158152
with:
159-
name: python-package-distributions
153+
pattern: python-package-distributions-*
154+
merge-multiple: true
160155
path: dist/
161156
- name: Publish distribution 📦 to PyPI
162157
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)