Skip to content

Commit

Permalink
Drop support for the CPython 3.7
Browse files Browse the repository at this point in the history
EOL in 2023-06-06 (PEP 537)
  • Loading branch information
skirpichev committed Oct 13, 2024
1 parent 3e013e7 commit 2276358
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Installation
============

gmpy2 requires CPython 3.7 or above. Pre-compiled binary wheels are available
gmpy2 requires CPython 3.8 or above. Pre-compiled binary wheels are available
on PyPI. You can install latest release with pip::

pip install gmpy2
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = 'setuptools.build_meta'
[project]
name = 'gmpy2'
version = '2.2.1'
description = 'gmpy2 interface to GMP, MPFR, and MPC for Python 3.7+'
description = 'gmpy2 interface to GMP, MPFR, and MPC for Python 3.8+'
keywords = ['gmp', 'mpfr', 'mpc', 'multiple-precision',
'arbitrary-precision', 'precision', 'bignum']
license = {text = 'LGPL-3.0+'}
Expand All @@ -21,7 +21,6 @@ classifiers = ['Development Status :: 5 - Production/Stable',
'Operating System :: POSIX',
'Programming Language :: C',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
Expand All @@ -31,7 +30,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.7'
requires-python = '>=3.8'

[project.readme]
file = 'README.rst'
Expand Down
1 change: 0 additions & 1 deletion src/gmpy2.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ static gmpy_global global = {
};

/* Support for context manager using context vars.
* Requires Python 3.7 or later.
*/

static PyObject *current_context_var = NULL;
Expand Down
4 changes: 2 additions & 2 deletions src/gmpy2.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ extern "C" {

/* Check for minimum Python version requirements. */

#if PY_VERSION_HEX < 0x03070000
# error "GMPY2 requires Python 3.7 or later."
#if PY_VERSION_HEX < 0x03080000
# error "GMPY2 requires Python 3.8 or later."
#endif

/* Include headers for GMP, MPFR, and MPC. */
Expand Down

0 comments on commit 2276358

Please sign in to comment.