From e995f51c2dcbd81341ac4d8a4acc42ea46ff77d8 Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Sun, 2 Nov 2025 22:17:41 +0100 Subject: [PATCH 1/5] Support for Python 3.14 --- .github/workflows/ci.yml | 2 +- python/pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 python/pyproject.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 197117ef2..e4484c0d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -152,7 +152,7 @@ jobs: name: Set up QEMU - name: Build wheels - uses: pypa/cibuildwheel@v2.22.0 + uses: pypa/cibuildwheel@v3.2.1 with: package-dir: python output-dir: python/wheelhouse diff --git a/python/pyproject.toml b/python/pyproject.toml new file mode 100644 index 000000000..9bbc12fe9 --- /dev/null +++ b/python/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools >= 40.8.0", "wheel", "pybind11 >= 2.11.1"] +build-backend = "setuptools.build_meta" From 322059f5117bc1b89a3447184ed8356904a22294 Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Mon, 3 Nov 2025 07:07:47 +0100 Subject: [PATCH 2/5] Add Python 3.14 description to setup.py --- python/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/setup.py b/python/setup.py index 92d07fa08..29e10cf4a 100644 --- a/python/setup.py +++ b/python/setup.py @@ -88,6 +88,7 @@ def _maybe_add_library_root(lib_name): "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], project_urls={ From 57f54fff47a998e293f967174ed93ed4a4b497b9 Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Mon, 3 Nov 2025 21:52:26 +0100 Subject: [PATCH 3/5] Remove: Please consider removing the following classifiers in favor of a SPDX license expression --- python/setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index 29e10cf4a..056dbee6d 100644 --- a/python/setup.py +++ b/python/setup.py @@ -67,7 +67,6 @@ def _maybe_add_library_root(lib_name): setup( name="ctranslate2", version=_get_project_version(), - license="MIT", description="Fast inference engine for Transformer models", long_description=_get_long_description(), long_description_content_type="text/markdown", From 54834bb6f86ada38e2465c59e144117634676e99 Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Mon, 3 Nov 2025 21:56:11 +0100 Subject: [PATCH 4/5] Cuda 12.4 --- python/setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/setup.py b/python/setup.py index 056dbee6d..4aa191f10 100644 --- a/python/setup.py +++ b/python/setup.py @@ -74,9 +74,7 @@ def _maybe_add_library_root(lib_name): url="https://opennmt.net", classifiers=[ "Development Status :: 5 - Production/Stable", - "Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.0", - "Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.1", - "Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.2", + "Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.4", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", From 3b47d47ab8ba1b6c65f66587c1f1c280e33f982d Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Tue, 4 Nov 2025 07:25:05 +0100 Subject: [PATCH 5/5] Same versions than install_requirements.txt --- python/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyproject.toml b/python/pyproject.toml index 9bbc12fe9..d62e25b9b 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools >= 40.8.0", "wheel", "pybind11 >= 2.11.1"] +requires = ["setuptools", "wheel", "pybind11==2.11.1"] build-backend = "setuptools.build_meta"