From b9eebf1c79a2bfae9b31a8e00d8c6454c2550a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Thu, 9 Feb 2023 17:04:16 +0100 Subject: [PATCH] Enable Cython test for Python 3.12, using the git master --- smoke/venv.sh | 11 ++++++++--- tests.yml | 4 ++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/smoke/venv.sh b/smoke/venv.sh index 45ce205..d52ce65 100755 --- a/smoke/venv.sh +++ b/smoke/venv.sh @@ -51,9 +51,14 @@ python -c 'import sys; print(sys.version)' | head -n1 | grep $VERSION # install packages with pip python -m pip install pytest if [ "$CYTHON" == "true" ]; then - # We try to fetch a wheel only and if that fails, we disable compilation - # Useful for fresh CPythons, where wheels are not yet ready, but Cython defaults to compiling - python -m pip install Cython --only-binary :all: || python -m pip install Cython --install-option="--no-cython-compile" + if [ "$VERSION" == "3.12" ]; then + # Cython support for 3.12.0a1+ is not yet released + python -m pip install https://github.com/cython/cython/archive/master.tar.gz --install-option="--no-cython-compile" + else + # We try to fetch a wheel only and if that fails, we disable compilation + # Useful for fresh CPythons, where wheels are not yet ready, but Cython defaults to compiling + python -m pip install Cython --only-binary :all: || python -m pip install Cython --install-option="--no-cython-compile" + fi fi # run tests diff --git a/tests.yml b/tests.yml index 3fae1fe..4967277 100644 --- a/tests.yml +++ b/tests.yml @@ -42,6 +42,9 @@ - smoke311: dir: smoke run: runuser testuser -c 'VERSION=3.11 METHOD=venv CYTHON=false ./venv.sh' + - smoke312: + dir: smoke + run: runuser testuser -c 'VERSION=3.12 METHOD=venv ./venv.sh' - smoke39_seeder_pip: dir: smoke run: runuser testuser -c 'VERSION=3.9 METHOD=virtualenv-seeder-pip ./venv.sh' @@ -81,6 +84,7 @@ - python3.8 - python3.9 - python3.11 + - python3.12 - pypy - pypy3.8-devel - python2-devel