-
Notifications
You must be signed in to change notification settings - Fork 543
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 specifying dependencies directly in pip.parse
#2271
Comments
I'd be opposed to this idea simply because Bazel claims to provide reproducible builds, and without pinning/locking requirements you could get different transitive dependencies when you rebuild at the same commit. |
I don't see how that's relevant. Hashes should still be locked in |
I think @ouillie is correct here - we can still lock the hashes in the
I am not sure if this is the same |
FWIW this is a working example of what I was thinking: ouillie@1da1321 I checked the |
I think implementing the second bullet point would be sufficient for that. Then you could specify |
🚀 feature request
Relevant Rules
pip.parse()
(not a rule, but the module extension tag)Description
Just putting this out there to gather feedback and see if it's worth implementing myself. I use Python as a pretty minor part of my polyglot Bazel codebase, and it has a single PyPI dependency. Call me petty, but I just don't like having to put that 1 dependency in its own
requirements.txt
file when all my other dependencies are listed directly inMODULE.bazel
.Describe the solution you'd like
Is there any appetite for adding a new parameter to
pip.parse()
calledrequirements
(as an alternative torequirements_lock
) which is just a Starlark list of strings that get parsed as though they were the lines of arequirements.txt
file? This would be kinda nice for really simple cases like mine, but perhaps "not recommended" for larger Python projects.Describe alternatives you've considered
Alternatives already exist, but if the maintainers would welcome a PR to this effect, then I can draft one up.
The text was updated successfully, but these errors were encountered: