-
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
Override a requirement with a Bazel target #385
Comments
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
Bumping because I don't want this to be closed without anyone seeing it, it seems like a good idea 😓 |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
|
I pushed a branch to my fork here: philsc/rules_python@add-deps-injection...philsc:rules_python:add-target-override that should add this feature. I'm proposing that this be done via an annotation: I can put it up as a PR once #853 is merged. |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
|
This seems like a special case of the general gap between rules_go and rules_python wrt the |
I think this is handled in https://github.com/aspect-build/rules_py with upcoming work @mattem is open-sourcing that allows "virtual" dependencies, where the version of some import can be overridden by an application rather than always using the one provided transitively by a library target the application depends on. |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
We've wound up having to implement something like this.
Significantly we can't use |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
Unstaleify me
…On Mon, Sep 30, 2024 at 15:50 github-actions[bot] ***@***.***> wrote:
This issue has been automatically marked as stale because it has not had
any activity for 180 days. It will be closed if no further activity occurs
in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks
for your contributions to rules_python!
—
Reply to this email directly, view it on GitHub
<#385 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEAQT2FKBZ3A2DKPSDSMJTZZHIUNAVCNFSM6AAAAABPELEIKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGMYTCMZZHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The repo is actively maintained, but we've had a bunch of relevant issues be auto-closed by the bot. I haven't seen other active rulesets adopt this, so I don't think it makes sense to be the outlier. Note, I introduced this configuration. #385 as an example where users have to make comments to prevent things being marked stale.
The repo is actively maintained, but we've had a bunch of relevant issues be auto-closed by the bot. I haven't seen other active rulesets adopt this, so I don't think it makes sense to be the outlier. Note, I introduced this configuration. #385 as an example where users have to make comments to prevent things being marked stale.
🚀 feature request
Relevant Rules
load("@rules_python//python:pip.bzl", "pip_install")
Description
We'd like to be able to override a
requirement
with a Bazel target. This is basically therules_python
equivalent ofrules_jvm_external
'soverride_targets
directive.Consider the case where we're using grpc and protobuf from Bazel, and an external python library depends on
protobuf==3.13.0
(or whatever). I'd like to replace that dependency with"@com_google_protobuf//:protobuf_python"
instead, so I'm not mixing pypi and Bazel versions ofprotobuf
.Describe the solution you'd like
I like the way that
rules_jvm_external
has done it.Describe alternatives you've considered
ø
The text was updated successfully, but these errors were encountered: