-
-
Notifications
You must be signed in to change notification settings - Fork 586
Support universal requirements for multiple python versions #2797
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
Comments
For |
I am also getting this error. Minimal reproduction
and
But when you try to
Versions
NotesI tried adding this to my
The problem goes away if I don't specify |
@aignas can you explain your comment? Is this a workaround?
|
with your requirements file, since it has hashes, if you set In my case it seems using I am also curious if the plan is to require this codepath for this fix, in which case maybe we should add a more clear error |
π bug report
Affected Rule
pip.parse
Is this a regression?
I don't think so
Description
Some dependencies can vary based on the current python version. In this case for requirements.txt files generated by uv or similar tools, the python version is encoded in the requirements.txt:
In this case if you attempt to use this requirements file with pip.parse you get this error:
Ideally rules_python would know that there should only be a single repo here since these constraints are mutually exclusive
π¬ Minimal Reproduction
bazel build ...
in #2798π Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
c981569
The text was updated successfully, but these errors were encountered: