Skip to content

Allow overriding config attrs in pip_parse-generated install_deps #751

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

Merged
merged 6 commits into from
Sep 7, 2022

Conversation

jvolkman
Copy link
Contributor

@jvolkman jvolkman commented Jul 12, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Feature (please, look at the "Scope of the project" section in the README.md file)

What is the current behavior?

pip_parse generates a requirements.bzl which can be vendored by rulesets to install Pypi-sourced Python dependencies. But the install_deps function doesn't allow any configuration. Most importantly, it doesn't allow specifying the python_interpreter_target present in the consuming environment.

What is the new behavior?

install_deps now takes an optional **whl_library_kwargs which can be used to override values that were specified when requirements.bzl was generated.

Does this PR introduce a breaking change?

  • Yes
  • No

@jvolkman jvolkman force-pushed the dev/install_deps_overrides branch from 135132f to 436529a Compare July 12, 2022 21:28
@groodt groodt requested review from groodt and removed request for brandjon, thundergolfer and lberki July 15, 2022 10:17
Copy link
Collaborator

@groodt groodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@groodt groodt merged commit ccbb05e into bazel-contrib:main Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants