Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --all-extras flag to pip-compile #1630

Merged
merged 4 commits into from Oct 5, 2022
Merged

Conversation

apljungquist
Copy link
Contributor

@apljungquist apljungquist commented May 26, 2022

The goal is to make it easy to compile version locks for all runtime
dependencies in a way that is robust to human error. By using the
wildcard extra the risk of forgetting to list any extra is removed.

Is this a use case pip-tools wants to support?
If yes, is the current approach a good one?

Contributor checklist
  • Provided the tests for the changes.
  • Assure PR title is short, clear, and good to be included in the user-oriented changelog
Maintainer checklist
  • Assure one of these labels is present: backwards incompatible, feature, enhancement, deprecation, bug, dependency, docs or skip-changelog as they determine changelog listing.
  • Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

Copy link
Member

@atugushev atugushev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a great idea! A few comments.

tests/test_cli_compile.py Outdated Show resolved Hide resolved
tests/test_cli_compile.py Outdated Show resolved Hide resolved
The goal is to make it easy to compile version locks for all runtime
dependencies in a way that is robust to human error. By using the
wildcard extra the risk of forgetting to list any extra is removed.

Since the expanded extras are needed when we look for the wildcard it
is moved to before the loop. This is OK because it does not depend on
the loop and nothing in the loop depends on its previous value.
@atugushev atugushev added feature cli Related to command line interface things labels Sep 30, 2022
... to not give users the misleading impression that pattern matching,
with regex,  fnmatch or some other system, works.
Copy link
Member

@atugushev atugushev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@apljungquist could you please update the PR title?

@apljungquist apljungquist changed the title Allow wildcard argument for --extra Add --all-extras flag to pip-compile Oct 2, 2022
@apljungquist
Copy link
Contributor Author

Certainly.

Thanks for being patient and guiding me through the process.

tests/test_cli_compile.py Outdated Show resolved Hide resolved
ssbarnea and others added 2 commits October 5, 2022 12:47
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
@ssbarnea ssbarnea enabled auto-merge (squash) October 5, 2022 11:47
@ssbarnea ssbarnea merged commit 5242ab8 into jazzband:master Oct 5, 2022
@atugushev atugushev added this to the 6.9.0 milestone Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to command line interface things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants