Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-adang committed Oct 10, 2023
1 parent 2be6146 commit fdc12ed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions actions/build_macosuniversal.sh
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -34,7 +34,7 @@ make -j $(sysctl -n hw.logicalcpu) test

##### Build iknowpy wheels #####
cd modules/iknowpy
for PYTHON in python3.{8..11}; do
for PYTHON in python3.{8..12}; do
"$PYTHON" setup.py bdist_wheel --plat-name=macosx-$MACOSX_DEPLOYMENT_TARGET-universal2 --no-dependencies
done
"$PYTHON" setup.py merge --no-dependencies
Expand Down
4 changes: 2 additions & 2 deletions actions/build_manylinux.sh
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion actions/build_windows.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions actions/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ 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"
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"
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 https://www.python.org/ftp/python/3.12.0/python-3.12.0-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
CYTHON_VERSION=3.0.3
Expand Down
1 change: 1 addition & 0 deletions modules/iknowpy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit fdc12ed

Please sign in to comment.