From 8fdb4a060486116ce90b6569a412fcd551c58ec4 Mon Sep 17 00:00:00 2001 From: isc-adang Date: Tue, 10 Oct 2023 12:35:42 -0400 Subject: [PATCH] Add support for Python 3.12 --- actions/build_macosuniversal.sh | 2 +- actions/build_manylinux.sh | 4 ++-- actions/build_windows.sh | 2 +- actions/dependencies.sh | 4 ++-- modules/iknowpy/setup.py | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/actions/build_macosuniversal.sh b/actions/build_macosuniversal.sh index c3cc063d..a9f3d94c 100755 --- a/actions/build_macosuniversal.sh +++ b/actions/build_macosuniversal.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Build universal2 wheels for Python 3.8 through Python 3.11, compatible with +# Build universal2 wheels for Python 3.8 through Python 3.12, compatible with # Mac OS X 10.9+ x86_64 and macOS 11.0+ arm64. This script must be executed with # the repository root as the working directory. # diff --git a/actions/build_manylinux.sh b/actions/build_manylinux.sh index 58f156da..6cef162a 100755 --- a/actions/build_manylinux.sh +++ b/actions/build_manylinux.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Build manylinux wheels for Python 3.7 through Python 3.11. This script must be +# Build manylinux wheels for Python 3.7 through Python 3.12. This script must be # executed inside a manylinux container in which /iknow is the root of the # repository. # @@ -90,7 +90,7 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/iknow/kit/$IKNOWPLAT/release/bin:$ICUD # install Python package dependencies and build initial wheels chown -R root "$PIP_CACHE_DIR" -for PYTHON in /opt/python/{cp37-cp37m,cp38-cp38,cp39-cp39,cp310-cp310,cp311-cp311}/bin/python +for PYTHON in /opt/python/{cp37-cp37m,cp38-cp38,cp39-cp39,cp310-cp310,cp311-cp311,cp312-cp312}/bin/python do "$PYTHON" -m pip install --user cython=="$CYTHON_VERSION" setuptools wheel --no-warn-script-location "$PYTHON" setup.py bdist_wheel --no-dependencies diff --git a/actions/build_windows.sh b/actions/build_windows.sh index 0e08d857..cb9a8a5d 100755 --- a/actions/build_windows.sh +++ b/actions/build_windows.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Build Windows x86_64 wheels for Python 3.7 through Python 3.11. This script +# Build Windows x86_64 wheels for Python 3.7 through Python 3.12. This script # must be executed with the repository root as the working directory. # # Usage: actions/build_windows.sh diff --git a/actions/dependencies.sh b/actions/dependencies.sh index ccb80fc9..35991956 100755 --- a/actions/dependencies.sh +++ b/actions/dependencies.sh @@ -15,8 +15,8 @@ ICU_URL_WIN=https://github.com/unicode-org/icu/releases/download/release-73-2/ic ICU_URL_SRC=https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-src.tgz JSON_VERSION=3.11.2 JSON_URL=https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip -PYVERSIONS_WIN="3.7.9 3.8.10 3.9.13 3.10.11 3.11.6" -PYVERSIONS_MACOSUNIVERSAL="3.8.10 3.9.13 3.10.11 3.11.6" +PYVERSIONS_WIN="3.7.9 3.8.10 3.9.13 3.10.11 3.11.6 3.12.0" +PYVERSIONS_MACOSUNIVERSAL="3.8.10 3.9.13 3.10.11 3.11.6 3.12.0" PYURLS_MACOSUNIVERSAL="https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg https://www.python.org/ftp/python/3.9.13/python-3.9.13-macos11.pkg https://www.python.org/ftp/python/3.10.11/python-3.10.11-macos11.pkg https://www.python.org/ftp/python/3.11.6/python-3.11.6-macos11.pkg" CCACHE_VERSION=4.8.3 CCACHE_URL=https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3-windows-x86_64.zip diff --git a/modules/iknowpy/setup.py b/modules/iknowpy/setup.py index 167f9e31..878adc2a 100644 --- a/modules/iknowpy/setup.py +++ b/modules/iknowpy/setup.py @@ -817,6 +817,7 @@ def is_canonical_version(version): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows',