Skip to content

Commit

Permalink
Remove support for python3.8
Browse files Browse the repository at this point in the history
The C code generated by cython 3.1 requires python 3.8.
  • Loading branch information
coldfix committed Dec 17, 2024
1 parent 9c55686 commit 9d3816c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/build/linux/cpymad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/cpymad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d3816c

Please sign in to comment.