Skip to content

Commit 048b488

Browse files
committed
Python: only release wheels for the three most recent versions.
Indeed, libOpenCOR is quite big which means that we "quickly" fill up our 10GB quota on PyPI. So, we only want to support the three most recents versions of Python which means stop supporting 3.10 and 3.11.
1 parent 83bcc19 commit 048b488

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/cd.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ jobs:
167167
uses: pypa/cibuildwheel@v3.2.0
168168
env:
169169
CIBW_ARCHS: auto64
170-
CIBW_BUILD: 'cp*'
170+
CIBW_BUILD: 'cp312-* cp313-* cp314-*'
171171
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=13.0
172172
# Note #1: the value of CIBW_ENVIRONMENT_MACOS must be in sync with that of MACOS_DEPLOYMENT_TARGET in
173173
# CMakelists.txt.
174174
# Note #2: for some reasons, we need to specify the minor version, hence using 13.0 rather than 13.
175175
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_34
176176
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_34
177-
CIBW_SKIP: 'cp38* cp39* cp*t-* *musllinux*'
177+
CIBW_SKIP: '*musllinux*'
178178
- name: Upload Python wheel artifacts
179179
uses: actions/upload-artifact@v4
180180
with:

‎setup.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
author="libOpenCOR contributors",
3131
url="https://opencor.ws/libopencor/",
3232
license="Apache 2.0",
33+
python_requires=">=3.12, <3.15",
3334
packages=["libopencor"],
3435
package_dir={"": "src/bindings/python"},
3536
cmake_args=[
@@ -52,6 +53,10 @@
5253
"Programming Language :: C++",
5354
"Programming Language :: JavaScript",
5455
"Programming Language :: Python",
56+
"Programming Language :: Python :: 3 :: Only",
57+
"Programming Language :: Python :: 3.12",
58+
"Programming Language :: Python :: 3.13",
59+
"Programming Language :: Python :: 3.14",
5560
"Topic :: Software Development :: Libraries :: Python Modules",
5661
],
5762
)

0 commit comments

Comments
 (0)