Skip to content

Commit 7935f98

Browse files
authored
Add Python 3.11 support (#44)
* add Python 3.11 tests and wheels * re-cythonized _libjpeg.pyx manally with current cython version * adapt needed versions for NumPy, cython and cibuildwheel
1 parent 643c6bd commit 7935f98

File tree

6 files changed

+1188
-2451
lines changed

6 files changed

+1188
-2451
lines changed

.github/workflows/pytest-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ['3.7', '3.8', '3.9', '3.10']
15+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1616
arch: ['x64', 'x86']
1717

1818
steps:
@@ -50,7 +50,7 @@ jobs:
5050
strategy:
5151
fail-fast: false
5252
matrix:
53-
python-version: ['3.7', '3.8', '3.9', '3.10']
53+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
5454

5555
steps:
5656
- uses: actions/checkout@v2
@@ -86,7 +86,7 @@ jobs:
8686
strategy:
8787
fail-fast: false
8888
matrix:
89-
python-version: ['3.7', '3.8', '3.9', '3.10']
89+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
9090

9191
steps:
9292
- uses: actions/checkout@v2

.github/workflows/release-wheels.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-python@v4
1818
name: Install Python
1919
with:
20-
python-version: '3.10'
20+
python-version: '3.11'
2121

2222
- name: Build sdist
2323
run: |
@@ -50,6 +50,9 @@ jobs:
5050
- os: windows-latest
5151
python: 310
5252
platform_id: win32
53+
- os: windows-latest
54+
python: 311
55+
platform_id: win32
5356

5457
# Windows 64 bit
5558
- os: windows-latest
@@ -64,6 +67,9 @@ jobs:
6467
- os: windows-latest
6568
python: 310
6669
platform_id: win_amd64
70+
- os: windows-latest
71+
python: 311
72+
platform_id: win_amd64
6773

6874
# Linux 64 bit manylinux2010
6975
- os: ubuntu-latest
@@ -96,6 +102,10 @@ jobs:
96102
python: 310
97103
platform_id: manylinux_x86_64
98104
manylinux_image: manylinux2014
105+
- os: ubuntu-latest
106+
python: 311
107+
platform_id: manylinux_x86_64
108+
manylinux_image: manylinux2014
99109

100110
# Linux aarch64
101111
- os: ubuntu-latest
@@ -110,6 +120,9 @@ jobs:
110120
- os: ubuntu-latest
111121
python: 310
112122
platform_id: manylinux_aarch64
123+
- os: ubuntu-latest
124+
python: 311
125+
platform_id: manylinux_aarch64
113126

114127
# MacOS x86_64
115128
- os: macos-latest
@@ -124,6 +137,9 @@ jobs:
124137
- os: macos-latest
125138
python: 310
126139
platform_id: macosx_x86_64
140+
- os: macos-latest
141+
python: 311
142+
platform_id: macosx_x86_64
127143

128144
# MacOS arm64
129145
- os: macos-latest
@@ -135,6 +151,9 @@ jobs:
135151
- os: macos-latest
136152
python: 310
137153
platform_id: macosx_arm64
154+
- os: macos-latest
155+
python: 311
156+
platform_id: macosx_arm64
138157

139158
steps:
140159
- uses: actions/checkout@v3
@@ -155,7 +174,7 @@ jobs:
155174
- name: Install cibuildwheel
156175
run: |
157176
python -m pip install -U pip
158-
python -m pip install cibuildwheel==2.3.1
177+
python -m pip install cibuildwheel==2.12.0
159178
160179
- name: Build wheels
161180
env:
@@ -183,7 +202,7 @@ jobs:
183202
strategy:
184203
fail-fast: false
185204
matrix:
186-
python-version: ['3.7', '3.8', '3.9', '3.10']
205+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
187206

188207
steps:
189208
- name: Set up Python ${{ matrix.python-version }}

0 commit comments

Comments
 (0)