From bfdd9f37e93712683dc330eab955b8c6ccc05ccd Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 28 Mar 2025 21:10:40 +0100 Subject: [PATCH 1/4] Drop support for Python 3.8 --- .github/workflows/test.yml | 1 - pyproject.toml | 3 +-- tox.ini | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7168992..75dc313 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,6 @@ jobs: fail-fast: false matrix: python: [ - "3.8", "3.9", "3.10", "3.11", diff --git a/pyproject.toml b/pyproject.toml index de8ddc4..a3c9b2c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,6 @@ classifiers = [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -25,7 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Topic :: Software Development", ] -requires-python = ">=3.8" +requires-python = ">=3.9" [project.urls] Homepage = "https://github.com/python/mypy_extensions" diff --git a/tox.ini b/tox.ini index 3412839..1b09420 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 4.4.4 skip_missing_interpreters = true -envlist = py38, py39, py310, py311, py312, py313 +envlist = py39, py310, py311, py312, py313 [testenv] description = run the test driver with {basepython} From 8820a12cda3b84cc194f6bbe850a7c889ec844dc Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 28 Mar 2025 21:11:58 +0100 Subject: [PATCH 2/4] Update setuptools for PEP 639 --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a3c9b2c..2ea2670 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=75.0"] +requires = ["setuptools>=77.0.3"] build-backend = "setuptools.build_meta" [project] @@ -10,12 +10,11 @@ readme = "README.md" authors = [ {name = "The mypy developers", email = "jukka.lehtosalo@iki.fi"} ] -license = {text = "MIT"} +license = "MIT" classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", From 5a53100efdec0970c99c39881f068fe2cf44048e Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 28 Mar 2025 22:45:36 +0100 Subject: [PATCH 3/4] Revert "Drop support for Python 3.8" --- .github/workflows/test.yml | 1 + pyproject.toml | 3 ++- tox.ini | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75dc313..7168992 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,6 +46,7 @@ jobs: fail-fast: false matrix: python: [ + "3.8", "3.9", "3.10", "3.11", diff --git a/pyproject.toml b/pyproject.toml index 2ea2670..14c0ee0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "Environment :: Console", "Intended Audience :: Developers", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -23,7 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Topic :: Software Development", ] -requires-python = ">=3.9" +requires-python = ">=3.8" [project.urls] Homepage = "https://github.com/python/mypy_extensions" diff --git a/tox.ini b/tox.ini index 1b09420..3412839 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 4.4.4 skip_missing_interpreters = true -envlist = py39, py310, py311, py312, py313 +envlist = py38, py39, py310, py311, py312, py313 [testenv] description = run the test driver with {basepython} From d6de9cb5eb39aad97e20e39ec023771e0ece4be4 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 28 Mar 2025 22:52:58 +0100 Subject: [PATCH 4/4] Change build backend to flit --- MANIFEST.in | 6 ------ pyproject.toml | 8 ++++---- 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index d0bc2e5..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -# files necessary for testing sdist -graft tests -include tox.ini - -global-exclude *.py[cod] -global-exclude .DS_Store diff --git a/pyproject.toml b/pyproject.toml index 14c0ee0..2395ca3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=77.0.3"] -build-backend = "setuptools.build_meta" +requires = ["flit_core>=3.11,<4"] +build-backend = "flit_core.buildapi" [project] name = "mypy_extensions" @@ -29,5 +29,5 @@ requires-python = ">=3.8" [project.urls] Homepage = "https://github.com/python/mypy_extensions" -[tool.setuptools] -py-modules = ["mypy_extensions"] +[tool.flit.sdist] +include = ["tox.ini", "*/*test*.py"]