From 9d3816c785297eba671672de9597d6c3fac50950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gl=C3=A4=C3=9Fle?= Date: Sun, 15 Dec 2024 23:44:38 +0100 Subject: [PATCH] Remove support for python3.8 The C code generated by cython 3.1 requires python 3.8. --- .github/build/linux/cpymad.sh | 4 +++- src/cpymad/__init__.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/build/linux/cpymad.sh b/.github/build/linux/cpymad.sh index 75c04733..fa09f45e 100755 --- a/.github/build/linux/cpymad.sh +++ b/.github/build/linux/cpymad.sh @@ -23,7 +23,9 @@ export LDFLAGS="-fno-lto" python setup.py sdist for PYBIN in /opt/python/cp3*/bin; do - "${PYBIN}/pip" wheel dist/*.tar.gz --no-deps -w rawdist/ + if "${PYBIN}/python" -c "import sys;exit(sys.version_info<(3,8))"; then + "${PYBIN}/pip" wheel dist/*.tar.gz --no-deps -w rawdist/ + fi done # Bundle external shared libraries into the wheels diff --git a/src/cpymad/__init__.py b/src/cpymad/__init__.py index 82ca2a73..d68ad005 100644 --- a/src/cpymad/__init__.py +++ b/src/cpymad/__init__.py @@ -21,9 +21,9 @@ """ -if sys.version_info < (3, 8): +if sys.version_info < (3, 9): _unsupported_version = ( - "Support for python 3.7 and below will be removed in a future release!\n" + "Support for python 3.8 and below will be removed in a future release!\n" "If you need continued support for an older version, let us know at:\n" " https://github.com/hibtc/cpymad/issues") warnings.warn(_unsupported_version, DeprecationWarning)