From f5c6d75e5635ad9a8c75da93596ada901fe5805f Mon Sep 17 00:00:00 2001 From: Michael van Bracht Date: Tue, 22 Oct 2024 08:40:11 +0200 Subject: [PATCH] Support external tox.pytest usage via "test" extra In order to allow plugin writers to easily pull in all dependencies needed to use the `tox.pytest` module, add a new `test` extra with a subset of the test dependency group. Though the pytest package should be present in the users' environment anyway, we still add it for consistency and to produce a conflict just in case the version has been constrained to an older version by the project. --- docs/changelog/3415.misc.rst | 1 + pyproject.toml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 docs/changelog/3415.misc.rst diff --git a/docs/changelog/3415.misc.rst b/docs/changelog/3415.misc.rst new file mode 100644 index 0000000000..e640d66ebc --- /dev/null +++ b/docs/changelog/3415.misc.rst @@ -0,0 +1 @@ +Provide ``test`` extra to support plugin authors using ``tox.pytest``. diff --git a/pyproject.toml b/pyproject.toml index 3849bc8d9f..74219b1453 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,11 @@ dependencies = [ "typing-extensions>=4.12.2; python_version<'3.11'", "virtualenv>=20.26.6", ] +optional-dependencies.test = [ + "devpi-process>=1.0.2", + "pytest>=8.3.3", + "pytest-mock>=3.14", +] urls.Documentation = "https://tox.wiki" urls.Homepage = "http://tox.readthedocs.org" urls."Release Notes" = "https://tox.wiki/en/latest/changelog.html"