📦 build: move the testing extra to a dependency group#243
Merged
Conversation
gaborbernat
marked this pull request as ready for review
July 16, 2026 17:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
testingdependencies were declared as a[project.optional-dependencies]extra, so they shipped in the published package metadata as an installablepytest-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]testgroup and points the tox environments that used it atdependency_groups = ["test"]instead ofextras = ["testing"]. The packages and their version constraints are unchanged.The published distribution no longer advertises a
testingextra. Local workflows that installedpytest-env[testing]should use thetestdependency group (--group test) or the tox environments instead. Runtime dependencies stay untouched.