From 1aa1662beaa7a9b917729ca13c0577b515d7e777 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Sat, 28 Dec 2024 05:28:00 +0300 Subject: [PATCH] Drop support for CPython 3.8 --- .github/workflows/build_wheels.yml | 1 - .github/workflows/pip_install_gmpy2.yml | 2 +- docs/conf.py | 3 --- pyproject.toml | 3 +-- src/gmpy2.h | 4 ++-- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index add60bc5..94f3f1fa 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -31,7 +31,6 @@ jobs: CIBW_BEFORE_ALL_WINDOWS: msys2 -c scripts/cibw_before_all.sh CIBW_BEFORE_BUILD_WINDOWS: pip install wheel delvewheel CIBW_TEST_EXTRAS: tests - CIBW_TEST_SKIP: cp38-macosx_arm64 CIBW_TEST_COMMAND: > pytest {package}/test/ && python {package}/test_cython/runtests.py diff --git a/.github/workflows/pip_install_gmpy2.yml b/.github/workflows/pip_install_gmpy2.yml index d820bc2b..8bce2096 100644 --- a/.github/workflows/pip_install_gmpy2.yml +++ b/.github/workflows/pip_install_gmpy2.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.11] + python-version: [3.9, 3.11] os: [ubuntu-22.04] runs-on: ${{ matrix.os }} steps: diff --git a/docs/conf.py b/docs/conf.py index 882c4194..18197c68 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,9 +15,6 @@ import gmpy2 -if sys.version_info < (3, 9): - raise RuntimeError("Python version >= 3.9 required to build docs.") - # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.imgmath', 'sphinx.ext.doctest', diff --git a/pyproject.toml b/pyproject.toml index 2956a749..c5e33b1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,6 @@ classifiers = ['Development Status :: 5 - Production/Stable', 'Operating System :: POSIX', 'Programming Language :: C', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', @@ -30,7 +29,7 @@ classifiers = ['Development Status :: 5 - Production/Stable', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Software Development :: Libraries :: Python Modules'] -requires-python = '>=3.8' +requires-python = '>=3.9' [project.readme] file = 'README.rst' diff --git a/src/gmpy2.h b/src/gmpy2.h index 9195eeb5..1eac86b7 100644 --- a/src/gmpy2.h +++ b/src/gmpy2.h @@ -67,8 +67,8 @@ extern "C" { /* Check for minimum Python version requirements. */ -#if PY_VERSION_HEX < 0x03080000 -# error "GMPY2 requires Python 3.8 or later." +#if PY_VERSION_HEX < 0x03090000 +# error "GMPY2 requires Python 3.9 or later." #endif /* Include headers for GMP, MPFR, and MPC. */