Skip to content

Add all_whl_requirements to match all_requirements#377

Merged
thundergolfer merged 3 commits intobazel-contrib:masterfrom
person142:all-whl-requirements
Jan 5, 2021
Merged

Add all_whl_requirements to match all_requirements#377
thundergolfer merged 3 commits intobazel-contrib:masterfrom
person142:all-whl-requirements

Conversation

@person142
Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Does not include precompiled binaries, eg. .par files. See CONTRIBUTING.md for info
  • 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?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

There isn't an equivalent to all_requirements for whl_requirement.

What is the new behavior?

A list all_whl_requirements is added to requirements.bzl which contains all of the wheel targets.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

The all_whl_requirements list is handy if you want to write a target that takes all of the wheels built by rules_python and upload them to a private wheelhouse say.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Nov 11, 2020

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no label Nov 11, 2020
@person142
Copy link
Copy Markdown
Contributor Author

@googlebot I signed it!

@google-cla google-cla bot added cla: yes and removed cla: no labels Nov 11, 2020
@person142 person142 force-pushed the all-whl-requirements branch from 77e42a6 to 2bbfedb Compare November 13, 2020 04:49
Copy link
Copy Markdown
Contributor

@hrfuller hrfuller left a comment

Choose a reason for hiding this comment

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

@person142 Thanks for the contribution.

@thundergolfer This LGTM.

name_key = name.replace("-", "_").replace(".", "_").lower()
return "{repo}//pypi__" + name_key

all_whl_requirements = [{whl_requirement_labels}]
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.

Nit: Put this underneath all_requirements so the macros are separated visually from the static definitions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in b6886f2.

@person142 person142 force-pushed the all-whl-requirements branch from 2bbfedb to b6886f2 Compare December 25, 2020 02:47
@thundergolfer thundergolfer merged commit c972655 into bazel-contrib:master Jan 5, 2021
@person142 person142 deleted the all-whl-requirements branch January 6, 2021 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants