-
Notifications
You must be signed in to change notification settings - Fork 539
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
fix(bcr): add mandatory gazelle bcr presubmit attrs #1894
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The same as in f1d1732
rickeylev
approved these changes
May 13, 2024
renovate bot
referenced
this pull request
in bazel-contrib/rules_bazel_integration_test
May 13, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_python](https://togithub.com/bazelbuild/rules_python) | http_archive | minor | `0.31.0` -> `0.32.1` | --- ### Release Notes <details> <summary>bazelbuild/rules_python (rules_python)</summary> ### [`v0.32.1`](https://togithub.com/bazelbuild/rules_python/releases/tag/0.32.1) [Compare Source](https://togithub.com/bazelbuild/rules_python/compare/0.32.0...0.32.1) #### Using Bzlmod with Bazel 6 **NOTE: bzlmod support is still beta. APIs subject to change.** Add to your `MODULE.bazel` file: ```starlark bazel_dep(name = "rules_python", version = "0.32.1") pip = use_extension("@​rules_python//python/extensions:pip.bzl", "pip") pip.parse( hub_name = "pip", python_version = "3.11", requirements_lock = "//:requirements_lock.txt", ) use_repo(pip, "pip") ``` #### Using WORKSPACE Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python", sha256 = "b289b0b023c71b80f26d39476e5e2c3cf72d21cb2759bcf02638ba3cc480e9df", strip_prefix = "rules_python-0.32.1", url = "https://github.com/bazelbuild/rules_python/releases/download/0.32.1/rules_python-0.32.1.tar.gz", ) load("@​rules_python//python:repositories.bzl", "py_repositories") py_repositories() ``` ##### Gazelle plugin Paste this snippet into your `WORKSPACE` file: ```starlark load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_python_gazelle_plugin", sha256 = "b289b0b023c71b80f26d39476e5e2c3cf72d21cb2759bcf02638ba3cc480e9df", strip_prefix = "rules_python-0.32.1/gazelle", url = "https://github.com/bazelbuild/rules_python/releases/download/0.32.1/rules_python-0.32.1.tar.gz", ) ### To compile the rules_python gazelle extension from source, ### we must fetch some third-party go dependencies that it uses. load("@​rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps") _py_gazelle_deps() ``` #### What's Changed - fix(bcr): add mandatory gazelle bcr presubmit attrs by [@​aignas](https://togithub.com/aignas) in [https://github.com/bazelbuild/rules_python/pull/1894](https://togithub.com/bazelbuild/rules_python/pull/1894) **Full Changelog**: bazelbuild/rules_python@0.32.0...0.32.1 ### [`v0.32.0`](https://togithub.com/bazelbuild/rules_python/blob/HEAD/CHANGELOG.md#0320---2024-05-12) [Compare Source](https://togithub.com/bazelbuild/rules_python/compare/0.31.0...0.32.0) [0.32.0]: https://togithub.com/bazelbuild/rules_python/releases/tag/0.32.0 ##### Changed - (bzlmod): The `MODULE.bazel.lock` `whl_library` rule attributes are now sorted in the attributes section. We are also removing values that are not default in order to reduce the size of the lock file. - (coverage) Bump `coverage.py` to [7.4.3](https://togithub.com/nedbat/coveragepy/blob/master/CHANGES.rst#version-743--2024-02-23). - (deps): Bumped bazel_features to 1.9.1 to detect optional support non-blocking downloads. - (deps): Updated `pip_tools` to >= 7.4.0 - (toolchains): Change some old toolchain versions to use [20240224] release to include security fixes `3.8.18`, `3.9.18` and `3.10.13` - (toolchains): Bump default toolchain versions to: - `3.8 -> 3.8.19` - `3.9 -> 3.9.19` - `3.10 -> 3.10.14` - `3.11 -> 3.11.9` - `3.12 -> 3.12.3` ##### Fixed - (whl_library): Fix the experimental_target_platforms overriding for platform specific wheels when the wheels are for any python interpreter version. Fixes [#​1810](https://togithub.com/bazelbuild/rules_python/issues/1810). - (whl_library): Stop generating duplicate dependencies when encountering duplicates in the METADATA. Fixes [#​1873](https://togithub.com/bazelbuild/rules_python/issues/1873). - (gazelle) In `project` or `package` generation modes, do not generate `py_test` rules when there are no test files and do not set `main = "__test__.py"` when that file doesn't exist. - (whl_library) The group redirection is only added when the package is part of the group potentially fixing aspects that want to traverse a `py_library` graph. Fixes [#​1760](https://togithub.com/bazelbuild/rules_python/issues/1760). - (bzlmod) Setting a particular micro version for the interpreter and the `pip.parse` extension is now possible, see the `examples/pip_parse/MODULE.bazel` for how to do it. See [#​1371](https://togithub.com/bazelbuild/rules_python/issues/1371). - (refactor) The pre-commit developer workflow should now pass `isort` and `black` checks (see [#​1674](https://togithub.com/bazelbuild/rules_python/issues/1674)). ##### Added - (toolchains) Added armv7 platform definition for python toolchains. - (toolchains) New Python versions available: `3.11.8`, `3.12.2` using the [20240224] release. - (toolchains) New Python versions available: `3.8.19`, `3.9.19`, `3.10.14`, `3.11.9`, `3.12.3` using the [20240415] release. - (gazelle) Added a new `python_visibility` directive to control visibility of generated targets by appending additional visibility labels. - (gazelle) Added a new `python_default_visibility` directive to control the *default* visibility of generated targets. See the [docs][python_default_visibility] for details. - (gazelle) Added a new `python_test_file_pattern` directive. This directive tells gazelle which python files should be mapped to the `py_test` rule. See the [original issue][test_file_pattern_issue] and the [docs][test_file_pattern_docs] for details. - (wheel) Add support for `data_files` attributes in py_wheel rule ([#​1777](https://togithub.com/bazelbuild/rules_python/issues/1777)) - (py_wheel) `bzlmod` installations now provide a `twine` setup for the default Python toolchain in `rules_python` for version 3.11. - (bzlmod) New `experimental_index_url`, `experimental_extra_index_urls` and `experimental_index_url_overrides` to `pip.parse` for using the bazel downloader. If you see any issues, report in [#​1357](https://togithub.com/bazelbuild/rules_python/issues/1357). The URLs for the whl and sdist files will be written to the lock file. Controlling whether the downloading of metadata is done in parallel can be done using `parallel_download` attribute. - (gazelle) Add a new annotation `include_dep`. Also add documentation for annotations to `gazelle/README.md`. - (deps): `rules_python` depends now on `rules_cc` 0.0.9 - (pip_parse): A new flag `use_hub_alias_dependencies` has been added that is going to become default in the next release. This makes use of `dep_template` flag in the `whl_library` rule. This also affects the `experimental_requirement_cycles` feature where the dependencies that are in a group would be only accessible via the hub repo aliases. If you still depend on legacy labels instead of the hub repo aliases and you use the `experimental_requirement_cycles`, now is a good time to migrate. [python_default_visibility]: gazelle/README.md#directive-python_default_visibility [test_file_pattern_issue]: https://togithub.com/bazelbuild/rules_python/issues/1816 [test_file_pattern_docs]: gazelle/README.md#directive-python_test_file_pattern [20240224]: https://togithub.com/indygreg/python-build-standalone/releases/tag/20240224. [20240415]: https://togithub.com/indygreg/python-build-standalone/releases/tag/20240415. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/bazel-contrib/rules_bazel_integration_test). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The same as in f1d1732.
Fixes that were needed in bazel/bazel-central-registry#2019.