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

Allow passing constraint file to uv pip sync? #3438

Closed
hauntsaninja opened this issue May 7, 2024 · 1 comment · Fixed by #3741
Closed

Allow passing constraint file to uv pip sync? #3438

hauntsaninja opened this issue May 7, 2024 · 1 comment · Fixed by #3741
Assignees
Labels
enhancement New feature or request

Comments

@hauntsaninja
Copy link
Contributor

With pip-compile, this can be accomplished via --pip-args '--constraint c.txt'.

The use case here is a little niche, since usually you just apply --constraint at the time you produce the lock file. But it's possible if your constraints file changes to encounter old lock files (maybe you're going back in history, or you don't automatically keep your lock file up to date), in which case it can be nice to get errors instead of e.g. installing some insecure dependency.

@charliermarsh charliermarsh added the enhancement New feature or request label May 7, 2024
@charliermarsh charliermarsh self-assigned this May 13, 2024
@charliermarsh
Copy link
Member

I plan to support this but it's proving to be motivation to do some refactoring / cleanup work between pip sync and pip install, so want to knock that out first.

charliermarsh added a commit that referenced this issue May 22, 2024
## Summary

Trivial now that this follows the same strategy and internals as `pip
install`.

Closes #3438.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants