Skip to content

Commit 82f56ab

Browse files
authored
Add Python 3.11 wheels (#1706)
* Add Python 3.11 wheels and cleanup old variants Signed-off-by: Rémi Achard <[email protected]> * Bump cibuildwheel version Signed-off-by: Rémi Achard <[email protected]> * Remove Python 3.6 from supported version, fix build warning Signed-off-by: Rémi Achard <[email protected]> * Add python_requires to setup.cfg Signed-off-by: Rémi Achard <[email protected]> Signed-off-by: Rémi Achard <[email protected]>
1 parent 8a93946 commit 82f56ab

File tree

3 files changed

+25
-59
lines changed

3 files changed

+25
-59
lines changed

.github/workflows/wheel_workflow.yml

Lines changed: 21 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -78,29 +78,8 @@ jobs:
7878
matrix:
7979
include:
8080
# -------------------------------------------------------------------
81-
# CPython 32 bits
82-
# -------------------------------------------------------------------
83-
- build: CPython 3.6 32 bits
84-
python: cp36-manylinux*
85-
arch: i686
86-
- build: CPython 3.7 32 bits
87-
python: cp37-manylinux*
88-
arch: i686
89-
- build: CPython 3.8 32 bits
90-
python: cp38-manylinux*
91-
arch: i686
92-
- build: CPython 3.9 32 bits
93-
python: cp39-manylinux*
94-
arch: i686
95-
- build: CPython 3.10 32 bits
96-
python: cp310-manylinux*
97-
arch: i686
98-
# -------------------------------------------------------------------
9981
# CPython 64 bits
10082
# -------------------------------------------------------------------
101-
- build: CPython 3.6 64 bits
102-
python: cp36-manylinux*
103-
arch: x86_64
10483
- build: CPython 3.7 64 bits
10584
python: cp37-manylinux*
10685
arch: x86_64
@@ -113,12 +92,12 @@ jobs:
11392
- build: CPython 3.10 64 bits
11493
python: cp310-manylinux*
11594
arch: x86_64
95+
- build: CPython 3.11 64 bits
96+
python: cp311-manylinux*
97+
arch: x86_64
11698
# -------------------------------------------------------------------
11799
# CPython ARM 64 bits
118100
# -------------------------------------------------------------------
119-
- build: CPython 3.6 ARM 64 bits
120-
python: cp36-manylinux*
121-
arch: aarch64
122101
- build: CPython 3.7 ARM 64 bits
123102
python: cp37-manylinux*
124103
arch: aarch64
@@ -131,6 +110,9 @@ jobs:
131110
- build: CPython 3.10 ARM 64 bits
132111
python: cp310-manylinux*
133112
arch: aarch64
113+
- build: CPython 3.11 ARM 64 bits
114+
python: cp311-manylinux*
115+
arch: aarch64
134116

135117
steps:
136118
- uses: actions/checkout@v2
@@ -146,7 +128,7 @@ jobs:
146128
platforms: all
147129

148130
- name: Build wheels
149-
uses: pypa/cibuildwheel@v2.3.1
131+
uses: pypa/cibuildwheel@v2.11.2
150132
env:
151133
CIBW_BUILD: ${{ matrix.python }}
152134
CIBW_ARCHS: ${{ matrix.arch }}
@@ -172,9 +154,6 @@ jobs:
172154
# -------------------------------------------------------------------
173155
# CPython 64 bits
174156
# -------------------------------------------------------------------
175-
- build: CPython 3.6 64 bits
176-
python: cp36-*
177-
arch: x86_64
178157
- build: CPython 3.7 64 bits
179158
python: cp37-*
180159
arch: x86_64
@@ -187,18 +166,24 @@ jobs:
187166
- build: CPython 3.10 64 bits
188167
python: cp310-*
189168
arch: x86_64
169+
- build: CPython 3.11 64 bits
170+
python: cp311-*
171+
arch: x86_64
190172
# -------------------------------------------------------------------
191173
# CPython ARM 64 bits
192174
# -------------------------------------------------------------------
193175
- build: CPython 3.8 ARM 64 bits
194176
python: cp38-*
195-
arch: universal2
177+
arch: arm64
196178
- build: CPython 3.9 ARM 64 bits
197179
python: cp39-*
198-
arch: universal2
180+
arch: arm64
199181
- build: CPython 3.10 ARM 64 bits
200182
python: cp310-*
201-
arch: universal2
183+
arch: arm64
184+
- build: CPython 3.11 ARM 64 bits
185+
python: cp311-*
186+
arch: arm64
202187

203188
steps:
204189
- uses: actions/checkout@v2
@@ -209,7 +194,7 @@ jobs:
209194
python-version: '3.8'
210195

211196
- name: Build wheels
212-
uses: pypa/cibuildwheel@v2.3.1
197+
uses: pypa/cibuildwheel@v2.11.2
213198
env:
214199
CIBW_BUILD: ${{ matrix.python }}
215200
CIBW_ARCHS: ${{ matrix.arch }}
@@ -233,29 +218,8 @@ jobs:
233218
matrix:
234219
include:
235220
# -------------------------------------------------------------------
236-
# CPython 32 bits
237-
# -------------------------------------------------------------------
238-
- build: CPython 3.6 32 bits
239-
python: cp36-*
240-
arch: x86
241-
- build: CPython 3.7 32 bits
242-
python: cp37-*
243-
arch: x86
244-
- build: CPython 3.8 32 bits
245-
python: cp38-*
246-
arch: x86
247-
- build: CPython 3.9 32 bits
248-
python: cp39-*
249-
arch: x86
250-
- build: CPython 3.10 32 bits
251-
python: cp310-*
252-
arch: x86
253-
# -------------------------------------------------------------------
254221
# CPython 64 bits
255222
# -------------------------------------------------------------------
256-
- build: CPython 3.6 64 bits
257-
python: cp36-*
258-
arch: AMD64
259223
- build: CPython 3.7 64 bits
260224
python: cp37-*
261225
arch: AMD64
@@ -268,6 +232,9 @@ jobs:
268232
- build: CPython 3.10 64 bits
269233
python: cp310-*
270234
arch: AMD64
235+
- build: CPython 3.11 64 bits
236+
python: cp311-*
237+
arch: AMD64
271238

272239
steps:
273240
- uses: actions/checkout@v2
@@ -278,7 +245,7 @@ jobs:
278245
python-version: '3.8'
279246

280247
- name: Build wheels
281-
uses: pypa/cibuildwheel@v2.3.1
248+
uses: pypa/cibuildwheel@v2.11.2
282249
env:
283250
CIBW_BUILD: ${{ matrix.python }}
284251
CIBW_ARCHS: ${{ matrix.arch }}

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
2-
[project]
3-
requires-python = ">=2.7, >=3.6"
4-
51
[build-system]
62
requires = [
73
"setuptools>=42",

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ classifiers =
66
Intended Audience :: Developers
77
Topic :: Software Development :: Libraries :: Python Modules
88
Programming Language :: C++
9+
Programming Language :: Python :: 2
10+
Programming Language :: Python :: 2.7
911
Programming Language :: Python :: 3
10-
Programming Language :: Python :: 3.6
1112
Programming Language :: Python :: 3.7
1213
Programming Language :: Python :: 3.8
1314
Programming Language :: Python :: 3.9
1415
Programming Language :: Python :: 3.10
16+
Programming Language :: Python :: 3.11
1517
Programming Language :: Python :: Implementation :: CPython
1618
Programming Language :: C++
1719
description = OpenColorIO (OCIO) is a complete color management solution geared towards motion picture production with an emphasis on visual effects and computer animation.
@@ -20,6 +22,7 @@ license_files = LICENSE
2022
long_description = file: README.md, LICENSE
2123
long_description_content_type = text/markdown
2224
name = opencolorio
25+
python_requires = '>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*'
2326
url = https://opencolorio.org/
2427

2528
[options]

0 commit comments

Comments
 (0)