chore: use dependency groups (PEP 735) - #2809
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2809 +/- ##
===========================================
+ Coverage 55.5% 73.3% +17.7%
===========================================
Files 644 659 +15
Lines 124135 132182 +8047
===========================================
+ Hits 68947 96909 +27962
+ Misses 55188 35273 -19915
🚀 New features to boost your workflow:
|
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.
This PR separates a few optional dependencies into dependency groups, as defined by PEP 735.
The optional dependencies (or "extras") are kept, and are intended for user-facing install options:
optional: this is the primary group, with documentation and support functionscodegen: includes other dependencies needed for code generationDependency groups are intended for internal or developer-facing install options:
lint,testanddevare re-listed as dependency groupsdocis renamed asdocsgroup, plural to match the folder name "docs"devgroup is similar to as it was as an extra, butdoc(nowdocs) is removed, as not all developers need to create docs (? maybe?); nevertheless it can be installed via--group docsA few sections of DEVELOPER.md were revised to describe how to install the extras or dependency groups in different Python environments.
The pytest header (in autotest/conftest.py) is modified to only show "optional" packages and not the "test" dependency group packages. If this is important, it could be re-enabled, but it would need to parse the group directly from
pyproject.toml, as this information is not part of the project's metadata.