diff --git a/pyproject.toml b/pyproject.toml index 90c5216..818b3fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,16 +41,18 @@ dependencies = [ "python-dotenv>=1.2.2", "tomli>=2.4; python_version<'3.11'", ] -optional-dependencies.testing = [ - "covdefaults>=2.3", - "coverage>=7.13.4", - "pytest-mock>=3.15.1", -] urls.Homepage = "https://github.com/pytest-dev/pytest-env" urls.Source = "https://github.com/pytest-dev/pytest-env" urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues" entry-points.pytest11.env = "pytest_env.plugin" +[dependency-groups] +test = [ + "covdefaults>=2.3", + "coverage>=7.13.4", + "pytest-mock>=3.15.1", +] + [tool.hatch] version.source = "vcs" build.hooks.vcs.version-file = "src/pytest_env/version.py" diff --git a/tox.toml b/tox.toml index d2b0857..67879ba 100644 --- a/tox.toml +++ b/tox.toml @@ -18,7 +18,7 @@ skip_missing_interpreters = true description = "run the tests with pytest" package = "wheel" wheel_build_env = ".pkg" -extras = [ "testing" ] +dependency_groups = [ "test" ] pass_env = [ "DIFF_AGAINST", "PYTEST_*" ] set_env.COVERAGE_FILE = "{env:COVERAGE_FILE:{toxworkdir}{/}.coverage.{envname}}" commands = [ @@ -67,7 +67,7 @@ commands = [ [ "ty", "check", "--output-format", "concise", "--error-on-warning" [env.dev] description = "generate a DEV environment" package = "editable" -extras = [ "testing" ] +dependency_groups = [ "test" ] commands = [ [ "uv", "pip", "tree" ], [ "python", "-c", "import sys; print(sys.executable)" ],