Skip to content

Allow overriding config attrs in pip_parse-generated install_deps#751

Merged
groodt merged 6 commits into
bazel-contrib:mainfrom
jvolkman:dev/install_deps_overrides
Sep 7, 2022
Merged

Allow overriding config attrs in pip_parse-generated install_deps#751
groodt merged 6 commits into
bazel-contrib:mainfrom
jvolkman:dev/install_deps_overrides

Conversation

@jvolkman

@jvolkman jvolkman commented Jul 12, 2022

Copy link
Copy Markdown
Contributor

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, lberki and thundergolfer July 15, 2022 10:17

@groodt groodt left a comment

Copy link
Copy Markdown
Contributor

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