Skip to content

📦 build: move the testing extra to a dependency group#243

Merged
gaborbernat merged 1 commit into
pytest-dev:mainfrom
gaborbernat:dev-extras-to-groups
Jul 16, 2026
Merged

📦 build: move the testing extra to a dependency group#243
gaborbernat merged 1 commit into
pytest-dev:mainfrom
gaborbernat:dev-extras-to-groups

Conversation

@gaborbernat

Copy link
Copy Markdown
Collaborator

The testing dependencies were declared as a [project.optional-dependencies] extra, so they shipped in the published package metadata as an installable pytest-env[testing] extra even though no consumer of the plugin needs them. They exist only to develop and test the package itself, which is what PEP 735 dependency groups are for: dependency sets that stay in the source tree and never reach the wheel metadata. 📦

This moves the set into a [dependency-groups] test group and points the tox environments that used it at dependency_groups = ["test"] instead of extras = ["testing"]. The packages and their version constraints are unchanged.

The published distribution no longer advertises a testing extra. Local workflows that installed pytest-env[testing] should use the test dependency group (--group test) or the tox environments instead. Runtime dependencies stay untouched.

@gaborbernat
gaborbernat marked this pull request as ready for review July 16, 2026 17:26
@gaborbernat
gaborbernat merged commit 69dae16 into pytest-dev:main Jul 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant