From 0d25b9a7cba1ca83fbbf799190cae9fc59bf5c36 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 28 Oct 2025 10:16:42 -0600 Subject: [PATCH 1/2] BLD: Set minimum Python to 3.9 * Update the python_requires to Python 3.9, which is the oldest not-EOL Python as of 2025-10-28, and the oldest Python tested against in CI. --- setup.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/setup.py b/setup.py index baa4efb..6046f1c 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import glob import os -from setuptools import setup, Extension +from setuptools import setup from Cython.Build import cythonize @@ -22,14 +22,6 @@ 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)', 'Programming Language :: Cython', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', @@ -64,6 +56,6 @@ "sources": LIBDATRIE_FILES, "include_dirs": [LIBDATRIE_DIR]})], ext_modules=ext_modules, - python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", + python_requires=">=3.9", setup_requires=['Cython>=0.28'], tests_require=["pytest", "hypothesis"]) From 5725be0bc5ed7cc46db026b9861d3bdfc5576ccd Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 29 Oct 2025 11:24:06 -0600 Subject: [PATCH 2/2] DOC: Add note that support range is for Python 3.9+ * All EOL Python versions as of early October, 2025 have had support dropped. --- CHANGES.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 33c6adc..037e6df 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,10 @@ CHANGES ======= +0.9.0 (20YY-MM-DD) +------------------ +* Move support range to Python 3.9+, dropping support for all EOL Pythons. + 0.8.2 (2020-03-25) ------------------ * Future-proof Python support by making cython a build time dependency and