From 83bcc19d9ec815694838065ca261238349127f27 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Thu, 9 Apr 2026 20:08:46 +1200 Subject: [PATCH 1/2] New version. --- VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION.txt b/VERSION.txt index d92fdec1a..cf25f11db 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.20260409.0 +0.20260409.1 From 895b7f7e1229c29d9063c2ce12b67c35780efb31 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Thu, 9 Apr 2026 20:12:24 +1200 Subject: [PATCH 2/2] 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. --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 2 +- setup.py | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9132bdab7..e5684ce79 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -167,14 +167,14 @@ jobs: uses: pypa/cibuildwheel@v3.2.0 env: CIBW_ARCHS: auto64 - CIBW_BUILD: 'cp*' + CIBW_BUILD: 'cp312-* cp313-* cp314-*' CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=13.0 # Note #1: the value of CIBW_ENVIRONMENT_MACOS must be in sync with that of MACOS_DEPLOYMENT_TARGET in # CMakelists.txt. # Note #2: for some reasons, we need to specify the minor version, hence using 13.0 rather than 13. CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_34 CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_34 - CIBW_SKIP: 'cp38* cp39* cp*t-* *musllinux*' + CIBW_SKIP: '*musllinux*' - name: Upload Python wheel artifacts uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7b0b38a7..ecdbad144 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -341,7 +341,7 @@ jobs: if: ${{ matrix.documentation == 'ON' || matrix.python_support == 'ON' || matrix.target == 'python_check_code_formatting' }} uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Install CMake and Ninja uses: lukka/get-cmake@latest - name: Install buildcache diff --git a/setup.py b/setup.py index 7eae76fc7..2cd9bd684 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ author="libOpenCOR contributors", url="https://opencor.ws/libopencor/", license="Apache 2.0", + python_requires=">=3.12, <3.15", packages=["libopencor"], package_dir={"": "src/bindings/python"}, cmake_args=[ @@ -52,6 +53,10 @@ "Programming Language :: C++", "Programming Language :: JavaScript", "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Software Development :: Libraries :: Python Modules", ], )