From 35d8b5ccf2342a9eeda8a2a54d9da578b27c27d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Wed, 1 Nov 2023 20:30:32 +0000 Subject: [PATCH] Drop Python 3.6 support --- .github/workflows/test.yml | 2 +- NEWS | 3 +++ README.rst | 2 +- doc/hacking.rst | 3 ++- doc/overview.rst | 2 +- scripts/all-pythons | 2 +- setup.cfg | 1 - setup.py | 2 +- 8 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd7e5e2a..b74bba09 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12, pypy3.9, pypy3.10] + python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12, pypy3.9, pypy3.10] steps: - uses: actions/checkout@v4 diff --git a/NEWS b/NEWS index 1914326f..fe05f6b6 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,9 @@ Improvements * Drop the 'test' command for distutils. This has been deprecated since 2.6.0. (Jelmer Vernooij) +* Drop support for Python 3.6. + (Jelmer Vernooij) + 2.6.0 ~~~~~ diff --git a/README.rst b/README.rst index 3041333e..2091302e 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ under the same license as Python, see LICENSE for details. Supported platforms ------------------- - * Python 3.6+ or PyPy3 + * Python 3.7+ or PyPy3 If you would like to use testtools for earlier Pythons, consult the compatibility docs: diff --git a/doc/hacking.rst b/doc/hacking.rst index 6cb64234..a40ba704 100644 --- a/doc/hacking.rst +++ b/doc/hacking.rst @@ -15,7 +15,8 @@ Coding style In general, follow `PEP 8`_ except where consistency with the standard library's unittest_ module would suggest otherwise. -testtools supports Python 3.6 and later. +code should run on all supported Python versions; see the project configuration +for the current list. Copyright assignment -------------------- diff --git a/doc/overview.rst b/doc/overview.rst index e978420c..54dc8b20 100644 --- a/doc/overview.rst +++ b/doc/overview.rst @@ -84,7 +84,7 @@ Cross-Python compatibility -------------------------- testtools gives you the very latest in unit testing technology in a way that -will work with Python 3.6+ and PyPy3. +will work with Python 3.7+ and PyPy3. If you wish to use testtools with Python 2.4 or 2.5, then please use testtools 0.9.15. diff --git a/scripts/all-pythons b/scripts/all-pythons index 9d84425c..09e7264c 100755 --- a/scripts/all-pythons +++ b/scripts/all-pythons @@ -89,5 +89,5 @@ def now(): if __name__ == '__main__': sys.path.append(ROOT) result = TestProtocolClient(sys.stdout) - for version in '3.6 3.7 3.8 3.9 3.10 3.11'.split(): + for version in '3.7 3.8 3.9 3.10 3.11 3.12'.split(): run_for_python(version, result, sys.argv[1:]) diff --git a/setup.cfg b/setup.cfg index 9d4e9578..b501b2b2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,6 @@ classifier = Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 diff --git a/setup.py b/setup.py index 57c98051..52ba04de 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,6 @@ import setuptools setuptools.setup( - python_requires='>=3.6', + python_requires='>=3.7', setup_requires=['pbr'], pbr=True)