Update documentation + python-requires
diff --git a/README.rst b/README.rst index a75c288..4a7f295 100644 --- a/README.rst +++ b/README.rst
@@ -179,29 +179,27 @@ `Yes`__ (mostly). -__ https://travis-ci.org/wolever/parameterized +__ https://app.circleci.com/pipelines/github/wolever/parameterized?branch=master .. list-table:: :header-rows: 1 :stub-columns: 1 * - - - Py3.4 - - Py3.5 - - Py3.6 - Py3.7 - Py3.8 - Py3.9 - - PyPy + - Py3.10 + - Py3.11 + - PyPy3 - ``@mock.patch`` * - nose - yes - yes - yes - yes - - yes - - yes - - yes + - no§ + - no§ - yes * - nose2 - yes @@ -211,24 +209,21 @@ - yes - yes - yes - - yes * - py.test 2 - no* - no* - no* - no* - - yes - - yes - - yes - - yes + - no* + - no* + - no* * - py.test 3 - yes - yes - yes - yes - - yes - - yes - - yes + - no* + - no* - yes * - py.test 4 - no** @@ -238,7 +233,6 @@ - no** - no** - no** - - no** * - py.test fixtures - no† - no† @@ -247,7 +241,6 @@ - no† - no† - no† - - no† * - | unittest | (``@parameterized.expand``) - yes @@ -257,25 +250,29 @@ - yes - yes - yes - - yes * - | unittest2 | (``@parameterized.expand``) - yes - yes - yes - yes - - yes - - yes - - yes + - no§ + - no§ - yes -\*: py.test 2 does `does not appear to work (#71)`__ under Python 3. Please comment on the related issues if you are affected. +§: nose and unittest2 - both of which were last updated in 2015 - sadly do not +appear to support Python 3.10 or 3.11. + +\*: `py.test 2 does not appear to work under Python 3 (#71)`__, and +`py.test 3 does not appear to work under Python 3.10 or 3.11 (#154)`__. \*\*: py.test 4 is not yet supported (but coming!) in `issue #34`__ †: py.test fixture support is documented in `issue #81`__ + __ https://github.com/wolever/parameterized/issues/71 +__ https://github.com/wolever/parameterized/issues/154 __ https://github.com/wolever/parameterized/issues/34 __ https://github.com/wolever/parameterized/issues/81 @@ -631,11 +628,10 @@ FAQ --- -What happened to Python 2.X support? - As of version 0.9.0, ``parameterized`` no longer supports Python 2.X. - Previous versions of ``parameterized`` - 0.8.1 being the latest - will - continue to work on Python 2.X, but will not receive any new features or bug - fixes. +What happened to Python 2.X, 3.5, and 3.6 support? + As of version 0.9.0, ``parameterized`` no longer supports Python 2.X, 3.5, + or 3.6. Previous versions of ``parameterized`` - 0.8.1 being the latest - + will continue to work, but will not receive any new features or bug fixes. What do you mean when you say "nose is best supported"? There are small caveates with ``py.test`` and ``unittest``: ``py.test``
diff --git a/parameterized/parameterized.py b/parameterized/parameterized.py index 4a5bfdd..83ea41a 100644 --- a/parameterized/parameterized.py +++ b/parameterized/parameterized.py
@@ -19,6 +19,9 @@ class SkipTest(Exception): pass +# NOTE: even though Python 2 support has been dropped, these checks have been +# left in place to avoid merge conflicts. They can be removed in the future, and +# future code can be written to assume Python 3. PY3 = sys.version_info[0] == 3 PY2 = sys.version_info[0] == 2
diff --git a/pyproject.toml b/pyproject.toml index 87d893c..6281ecf 100644 --- a/pyproject.toml +++ b/pyproject.toml
@@ -1,15 +1,11 @@ -[build-system] -requires = ["setuptools>=61.2"] -build-backend = "setuptools.build_meta" - [project] name = "parameterized" authors = [{name = "David Wolever", email = "david@wolever.net"}] license = {text = "FreeBSD"} description = "Parameterized testing with any Python test framework" readme = "README.rst" +requires-python = ">=3.7" classifiers = [ - "Programming Language :: Python", "Programming Language :: Python :: 3", "License :: OSI Approved :: BSD License", ] @@ -30,3 +26,7 @@ [tool.distutils.bdist_wheel] universal = 1 + +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" \ No newline at end of file