Skip to content
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

Bump bazel-runfiles from 0.40.0 to 1.0.0 in /tools #3360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 9, 2024

Bumps bazel-runfiles from 0.40.0 to 1.0.0.

Release notes

Sourced from bazel-runfiles's releases.

1.0.0

For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html

Using Bzlmod

Add to your MODULE.bazel file:

bazel_dep(name = "rules_python", version = "1.0.0")
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:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
strip_prefix = "rules_python-1.0.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0/rules_python-1.0.0.tar.gz",
)
load("@​rules_python//python:repositories.bzl", "py_repositories")
py_repositories()

Gazelle plugin

Paste this snippet into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_python_gazelle_plugin",
    sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
</tr></table> 

... (truncated)

Changelog

Sourced from bazel-runfiles's changelog.

1.0.0 - 2024-12-05

{#v1-0-0-changed}

Changed

Breaking:

  • (toolchains) stop exposing config settings in python toolchain alias repos. Please consider depending on the flags defined in //python/config_setting/... and the @platforms package instead.
  • (toolchains) consumers who were depending on the MACOS_NAME and the arch attribute in the PLATFORMS list, please update your code to respect the new values. The values now correspond to the values available in the @platforms// package constraint values.
  • (toolchains) host_platform and interpreter constants are no longer created in the toolchain generated alias .bzl files. If you need to access the host interpreter during the repository_rule evaluation, please use the @python_{version}_host//:python targets created by {bzl:obj}python_register_toolchains and {bzl:obj}python_register_multi_toolchains macros or the {bzl:obj}python bzlmod extension.
  • (bzlmod) pip.parse.parse_all_requirements_files attribute has been removed. See notes in the previous versions about what to do.
  • (deps) rules_cc 0.1.0 (workspace) and 0.0.16 (bzlmod).
  • (deps) protobuf 29.0-rc2 (workspace; bzlmod already specifying that version).

Other changes:

  • (python_repository) Start honoring the strip_prefix field for zstd archives.
  • (pypi) {bzl:obj}pip_parse.extra_hub_aliases now works in WORKSPACE files.
  • (binaries/tests) For {obj}--bootstrap_impl=script, a binary-specific (but otherwise empty) virtual env is used to customize sys.path initialization.
  • (deps) bazel_skylib 1.7.0 (workspace; bzlmod already specifying that version)
  • (deps) bazel_features 1.21.0; necessary for compatiblity with Bazel 8 rc3
  • (deps) stardoc 0.7.2 to support Bazel 8.

{#v1-0-0-fixed}

Fixed

  • (toolchains) stop depending on uname to get the value of the host platform.
  • (pypi): Correctly handle multiple versions of the same package in the requirements files which is useful when including different PyTorch builds (e.g. ) for different target platforms. Fixes (2337).
  • (uv): Correct the sha256sum for the uv binary for aarch64-apple-darwin. Fixes (2411).
  • (binaries/tests) ({obj}--bootstrap_impl=scipt) Using sys.executable will use the same sys.path setup as the calling binary. (2169).
  • (workspace) Corrected protobuf's name to com_google_protobuf, the name is hardcoded in Bazel, WORKSPACE mode.
  • (pypi): {bzl:obj}compile_pip_requirements no longer fails on Windows when --enable_runfiles is not enabled.

... (truncated)

Commits
  • d24691f chore: bump the changelog to 1.0 (#2470)
  • 60da4a3 fix(gazelle): empty list (#2099)
  • 5eb139f fix: only delete first sys.path entry in the stage-2 bootstrap if PYTHONSAFEP...
  • 096a04f test: Enable non-ABI3 libs linking test for Windows (#2461)
  • bc8658a docs: mention calling register_toolchains in custom toolchain docs (#2463)
  • a362339 fix: add missing api distribution target (#2464)
  • d0c1555 chore: remove defunct code from py_cc_link_params_info.bzl (#2465)
  • 084865d fix: dependency resolver on windows only works when --enable_runfiles and --w...
  • d5a595c fix: Add libs/python3.lib to libpython target for SABI builds on Windows (#...
  • 25aeb40 doc: improve alias error msg in pip hubs (#2458)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [bazel-runfiles](https://github.com/bazelbuild/rules_python) from 0.40.0 to 1.0.0.
- [Release notes](https://github.com/bazelbuild/rules_python/releases)
- [Changelog](https://github.com/bazelbuild/rules_python/blob/main/CHANGELOG.md)
- [Commits](bazelbuild/rules_python@0.40.0...1.0.0)

---
updated-dependencies:
- dependency-name: bazel-runfiles
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants