From 53d07c28ad9d19d4271ed67541cbe1f6d0268e28 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 23 Jul 2022 19:28:37 +0200 Subject: [PATCH] Drop false claims of support Python 3.8 or 3.9 Recent changes (in particular, use of the new "structural pattern matching" syntax, which was introduced in Python 3.10) were already incompatible with Python <3.10, but neither the tox settings nor the project metadata had been updated to reflect this fact. Fedora 35, the oldest currently supported branch of Fedora, already ships with Python 3.10 by default, so we don't drop support for any current Fedora releases. --- README.md | 6 +++++- setup.cfg | 2 -- tox.ini | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2725505..cc6c705 100644 --- a/README.md +++ b/README.md @@ -59,4 +59,8 @@ errors when generating spec files with rust2rpm. ## Testing -Use `python -m pytest -v` or `PYTHONPATH=. pytest -v` in the source tree. +Invoking `tox` will automatically run the test suite on all python versions +that should be supported. + +Use `python -m pytest -v` or `PYTHONPATH=. pytest -v` in the source tree +(possibly within a virtualenv) to run the tests manually. diff --git a/setup.cfg b/setup.cfg index 9e8e9c3..a6a2413 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,8 +14,6 @@ classifiers = License :: OSI Approved :: MIT License Operating System :: POSIX :: Linux Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Topic :: Software Development :: Build Tools diff --git a/tox.ini b/tox.ini index eded406..572a85e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38,py39,py310,py311 +envlist = py310,py311 skipsdist = True [testenv]