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

Support constraints in pyproject.toml #4467

Closed
charliermarsh opened this issue Jun 24, 2024 · 0 comments · Fixed by #5248
Closed

Support constraints in pyproject.toml #4467

charliermarsh opened this issue Jun 24, 2024 · 0 comments · Fixed by #5248
Labels
preview Experimental behavior

Comments

@charliermarsh
Copy link
Member

Similar to the override support we added, we should probably also support constraints? It seems nice to allow you to avoid an upper-bound in your published metadata, but add one for locking.

@charliermarsh charliermarsh added the preview Experimental behavior label Jun 24, 2024
charliermarsh pushed a commit that referenced this issue Jul 21, 2024
Resolves #4467.

## Summary

This PR implements the following

1. Add `tool.uv.constraint-dependencies` to pyproject.toml
1. Support to refer `tool.uv.constraint-dependencies` in `uv lock`
1. Support to refer `tool.uv.constraint-dependencies` in `uv pip
compile/install`

These are analogues of the override features implemented in #3839 and
#4369.

## Test Plan

Add test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant