Skip to content

Commit 193e86b

Browse files
authored
Updates the release workflow to build wheels for python 3.11 and MacOS arm64. (#338)
1 parent 7db00ef commit 193e86b

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

.github/workflows/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
python-version: ['3.8', '3.9', '3.10', 'pypy-3.8', 'pypy-3.10']
12+
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.8', 'pypy-3.10']
1313
os: [ macos-latest, ubuntu-latest ]
1414
fail-fast: false
1515
steps:
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Create a virtual environment
2323
run: git submodule init && git submodule update && python3 -m venv ./venv && . venv/bin/activate
24-
24+
- run: pip install --upgrade setuptools
2525
- run: pip install -r requirements.txt
2626
- run: pip install -e .
2727
- run: py.test
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: windows-latest
3131
strategy:
3232
matrix:
33-
python-version: ['3.9', '3.10', 'pypy-3.8', 'pypy-3.10' ]
33+
python-version: ['3.9', '3.10', '3.11', 'pypy-3.8', 'pypy-3.10' ]
3434
fail-fast: false
3535
steps:
3636
- uses: actions/checkout@v2
@@ -41,6 +41,7 @@ jobs:
4141

4242
- name: Create a virtual environment
4343
run: git submodule init && git submodule update && python3 -m venv ./venv && . venv/Scripts/activate
44+
- run: pip install --upgrade setuptools
4445
- run: pip install -r requirements.txt
4546
- run: pip install -e .
4647
- run: py.test

.github/workflows/release.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', 'pypy-3.8']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.8']
1414
steps:
1515
- uses: actions/checkout@v3
1616
- name: Set up python
@@ -20,6 +20,7 @@ jobs:
2020

2121
- name: Create a virtual environment
2222
run: git submodule init && git submodule update && python3 -m venv ./venv && . venv/bin/activate
23+
- run: pip install --upgrade setuptools
2324
- run: pip install -r requirements.txt
2425
- run: pip install -e .
2526
- run: py.test
@@ -91,8 +92,19 @@ jobs:
9192
strategy:
9293
fail-fast: true
9394
matrix:
94-
python-version: [ '3.10']
95-
os: [macos-latest, windows-latest, ubuntu-latest]
95+
include:
96+
# See https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip for more details.
97+
- os: macos-latest
98+
arch: x86_64
99+
cibw_arch: "x86_64"
100+
- os: macos-14 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images
101+
arch: arm64
102+
cibw_arch: "arm64"
103+
- os: windows-latest
104+
cibw_arch: "AMD64"
105+
- os: ubuntu-latest
106+
cibw_arch: "i686 x86_64 aarch64"
107+
96108
steps:
97109
- uses: actions/checkout@v3
98110

@@ -108,15 +120,13 @@ jobs:
108120
platforms: all
109121

110122
- name: Install cibuildwheel
111-
run: python3 -m pip install cibuildwheel==2.4.0
123+
run: python3 -m pip install cibuildwheel==2.16.5
112124

113125
- name: Build wheels
114126
run: python3 -m cibuildwheel --output-dir wheelhouse
115127
env:
116-
CIBW_SKIP: "pp* *-win32"
117-
CIBW_ARCHS_WINDOWS: "auto"
118-
CIBW_ARCHS_LINUX: "auto aarch64"
119-
CIBW_ARCHS_MACOS: "x86_64"
128+
CIBW_BUILD: "cp39-* cp310-* cp311-*" # Only build wheels for c-python 3.9 to 3.11
129+
CIBW_ARCHS: ${{ matrix.cibw_arch }}
120130

121131
- name: Upload wheels to Github
122132
uses: actions/upload-artifact@v2

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ iniconfig==1.1.1
66
jsonconversion==0.2.12
77
packaging==20.9
88
pluggy==0.13.1
9-
py==1.10.0
9+
py==1.11.0
1010
pyparsing==2.4.7
1111
pytest==6.2.4
1212
pytest-runner==5.3.1

0 commit comments

Comments
 (0)