From 24aef157aead07f813f874f43ee471b057e622cb Mon Sep 17 00:00:00 2001 From: Benjamin Cabé Date: Thu, 23 Oct 2025 17:25:08 +0200 Subject: drop support for Python 2.x as it is very much EOL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A follow-up to b96a5ad562deffa697d966c29546650aae645f48 where we stopped having CI run tests on Python 2.x. This actually drops the few remaining Python 2.x compatibility bits as Python 2.x has EOL'd a long time ago. Signed-off-by: Benjamin Cabé Signed-off-by: Torsten Rasmussen --- setup.py | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 6b8d905..ca308d2 100644 --- a/setup.py +++ b/setup.py @@ -9,17 +9,11 @@ setuptools.setup( # MAJOR.MINOR.PATCH, per http://semver.org version="14.1.1a4", description="A flexible Python Kconfig implementation", - - # Make sure that README.rst decodes on Python 3 in environments that use + # Make sure that README.rst decodes correctly in environments that use # the C locale (which implies ASCII), by explicitly giving the encoding. - # - # io.open() has the 'encoding' parameter on both Python 2 and 3. open() - # doesn't have it on Python 2. This lets us use the same code for both. long_description=io.open( - os.path.join(os.path.dirname(__file__), "README.rst"), - encoding="utf-8" + os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf-8" ).read(), - url="https://github.com/zephyrproject-rtos/Kconfiglib", author='Zephyr Project', author_email="ci@zephyrproject.org", @@ -64,9 +58,7 @@ setuptools.setup( # Note: windows-curses is not automatically installed on Windows anymore, # because it made Kconfiglib impossible to install on MSYS2 with pip - # Needs support for unnumbered {} in format() and argparse - python_requires=">=2.7,!=3.0.*,!=3.1.*", - + python_requires=">=3.9", project_urls={ "GitHub repository": "https://github.com/zephyrproject-rtos/Kconfiglib", "Examples": "https://github.com/zephyrproject-rtos/Kconfiglib/tree/master/examples", @@ -80,16 +72,7 @@ setuptools.setup( "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: POSIX", "Operating System :: Microsoft :: Windows", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.2", - "Programming Language :: Python :: 3.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", -- cgit v1.2.3