Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for python 3.13 #239

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ C toolchain.

# Currently Published Wheels

Wheels are currently published for CPython 3.9, 3.10, 3.11 and 3.12
Wheels are currently published for CPython 3.9, 3.10, 3.11, 3.12 and 3.13
for multiple architectures. PyPy 3.9 and 3.10 are also supported for Linux.
For information on building your own wheels please view [BUILDING.md](BUILDING.md).

Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

HERE = os.path.dirname(__file__)

@nox.session(python=["3.9", "3.10", "3.11", "3.12"])
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
def build_libcrc32c(session):
session.env["PY_BIN"] = f"python{session.python}"
session.env["REPO_ROOT"] = HERE
Expand All @@ -39,7 +39,7 @@ def build_libcrc32c(session):
raise Exception("Unsupported")


@nox.session(python=["3.9", "3.10", "3.11", "3.12"])
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
def check(session):
session.install("pytest")
session.install("--no-index", f"--find-links={HERE}/wheels", "google-crc32c")
Expand Down
2 changes: 1 addition & 1 deletion scripts/manylinux/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install_python_pyenv() {
pyenv shell $version
}

SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12")
SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13")

for PYTHON_VERSION in "${SUPPORTED_PYTHON_VERSIONS[@]}"; do
PYTHON=python${PYTHON_VERSION}
Expand Down
2 changes: 1 addition & 1 deletion scripts/osx/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ git submodule update --init --recursive

${OSX_DIR}/build_c_lib.sh

SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12")
SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13")

for PYTHON_VERSION in ${SUPPORTED_PYTHON_VERSIONS[@]}; do
echo "Build wheel for Python ${PYTHON_VERSION}"
Expand Down
4 changes: 2 additions & 2 deletions scripts/osx/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ eval "$(pyenv init -)"
eval "$(pyenv init --path)"
ls ${REPO_ROOT}/wheels

SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12")
SUPPORTED_PYTHON_VERSIONS=("3.9" "3.10" "3.11" "3.12" "3.13")

for PYTHON_VERSION in ${SUPPORTED_PYTHON_VERSIONS[@]}; do
PYTHON="python${PYTHON_VERSION}"
Expand All @@ -44,7 +44,7 @@ for PYTHON_VERSION in ${SUPPORTED_PYTHON_VERSIONS[@]}; do
${PYTHON} -m venv ${VIRTUALENV}

OS_VERSION_STR="12_0"
if [ "${PYTHON_VERSION}" == "3.12" ]; then
if [ "${PYTHON_VERSION}" == "3.12"] || ["${PYTHON_VERSION}" == "3.13" ]; then
OS_VERSION_STR="14.0"
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set CRC32C_INSTALL_PREFIX=%cd%\build\%CONFIGURATION%
@rem Unfortunately pyenv for Windows has an out-of-date versions list. Choco's
@rem installer seems to have some problems with installing multiple versions at
@rem once, so as a workaround, we will install and then uninstall every version.
FOR %%P IN (3.9, 3.10, 3.11, 3.12) DO (
FOR %%P IN (3.9, 3.10, 3.11, 3.12, 3.13) DO (

echo "Installing Python version %%P"
choco install python --version=%%P -y --no-progress
Expand Down