-
Notifications
You must be signed in to change notification settings - Fork 598
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
Specify Constraints File In Dependencies #1797
Labels
duplicate
This issue or pull request already exists
Comments
Same goes for pip install -q pip-tools uv
echo "urllib3==2.2.1" > constraints.txt
echo "requests" > requirements.in
pip-compile requirements.in -o piptools_requirements.txt -c constraints.txt
uv pip compile requirements.in -o uv_requirements.txt -c constraints.txt
git diff piptools_requirements.txt uv_requirements.txt --- a/piptools_requirements.txt
+++ b/uv_requirements.txt
@@ -1,9 +1,5 @@
-#
-# This file is autogenerated by pip-compile with Python 3.12
-# by the following command:
-#
-# pip-compile --constraint=constraints.txt --output-file=piptools_requirements.txt requirements.in
-#
+# This file was autogenerated by uv via the following command:
+# uv pip compile requirements.in -o uv_requirements.txt -c constraints.txt
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
@@ -11,8 +7,5 @@ charset-normalizer==3.3.2
idna==3.6
# via requests
requests==2.31.0
- # via -r requirements.in
urllib3==2.2.1
- # via
- # -c constraints.txt
- # requests
+ # via requests |
Related #1343 |
Yeah I think this is the same as #1343. Gonna merge into that issue. Thanks! |
Supported in the next version via #3269. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uv
doesn't specify a constraints file as a dependency when enumerating which packages depend on one-another. IMO, having-c constraints.txt
is helpful information in the following example (uv==0.1.6
):Recreation Steps
The text was updated successfully, but these errors were encountered: