Skip to content

Commit

Permalink
Update documentation + python-requires
Browse files Browse the repository at this point in the history
  • Loading branch information
wolever committed Mar 2, 2023
1 parent 59c37ae commit d85f9a8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 33 deletions.
52 changes: 24 additions & 28 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,29 +179,27 @@ Compatibility

`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
Expand All @@ -211,24 +209,21 @@ __ https://travis-ci.org/wolever/parameterized
- 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**
Expand All @@ -238,7 +233,6 @@ __ https://travis-ci.org/wolever/parameterized
- no**
- no**
- no**
- no**
* - py.test fixtures
- no†
- no†
Expand All @@ -247,7 +241,6 @@ __ https://travis-ci.org/wolever/parameterized
- no†
- no†
- no†
- no†
* - | unittest
| (``@parameterized.expand``)
- yes
Expand All @@ -257,25 +250,29 @@ __ https://travis-ci.org/wolever/parameterized
- yes
- yes
- yes
- yes
* - | unittest2
| (``@parameterized.expand``)
- yes
- yes
- yes
- yes
- no§
- no§
- yes
- yes
- yes
- 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

Expand Down Expand Up @@ -631,11 +628,10 @@ To migrate a codebase from ``nose-parameterized`` to ``parameterized``:
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``
Expand Down
3 changes: 3 additions & 0 deletions parameterized/parameterized.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "parameterized"
authors = [{name = "David Wolever", email = "[email protected]"}]
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",
]
Expand All @@ -30,3 +26,7 @@ version = {attr = "parameterized.__version__"}

[tool.distutils.bdist_wheel]
universal = 1

[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

0 comments on commit d85f9a8

Please sign in to comment.