Skip to content

chore(deps): bump rules_python from 1.9.0 to 2.0.1#100

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bazel/rules_python-2.0.0-rc3
Open

chore(deps): bump rules_python from 1.9.0 to 2.0.1#100
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bazel/rules_python-2.0.0-rc3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 21, 2026

Bumps rules_python from 1.9.0 to 2.0.1.

Release notes

Sourced from rules_python's releases.

2.0.1

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

For the user-facing changelog see here

Using Bzlmod

Add to your MODULE.bazel file:

bazel_dep(name = "rules_python", version = "2.0.1")
python = use_extension("@​rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.13",
)
pip = use_extension("@​rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.13",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pypi")

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 = "d4dd58e857a7c1bfc7da68adaef1178a20b197b1176c877afd2373369857e65c",
strip_prefix = "rules_python-2.0.1",
url = "https://github.com/bazel-contrib/rules_python/releases/download/2.0.1/rules_python-2.0.1.tar.gz",
)
load("@​rules_python//python:repositories.bzl", "py_repositories")
py_repositories()

Gazelle plugin

Paste this snippet into your WORKSPACE file:

... (truncated)

Changelog

Sourced from rules_python's changelog.

2.0.1 - 2026-05-08

{#v2-0-1-fixed}

Fixed

  • (pypi) Fix the versions of packages that we are recording to a MODULE.bazel.lock file facts by passing all of the versions to the get_index function. Fixes #3756.
  • (bzlmod) Reduce default verbosity of our loggers for non-root modules (#3749).

{#v2-0-0}

2.0.0 - 2026-04-09

{#v2-0-0-removed}

Removed

  • Nothing removed.

{#v2-0-0-changed}

Changed

Breaking

  • {obj}--windows_enable_symlinks is required. Add startup --windows_enable_symlinks to your .bazelrc to enable Bazel using full symlink support on Windows.
  • venv-based binaries are created by default ({obj}--bootstrap_impl=system_python) on supported platforms (Linux/Mac with Bazel 8+, or Windows).
  • --build_python_zip on Windows is ignored. Use {obj}py_zipapp_binary to create zips of Python programs.
  • (pypi) Previously experimental_index_url users would not need to specify target platforms if cross-building is required. From now we will only pull wheels for the host OS to better align with how the rules work with the legacy pip implementation. Use {obj}pip.parse.target_platforms to customize the behavior. Related to #260.

Other changes:

  • (pypi) Update dependencies used for compile_pip_requirements, building sdists in the whl_library rule and fetching wheels using pip.
  • (pypi) Before using the bazel downloader to fetch the PyPI package metadata we will from now on fetch the lists of available packages on each index. The used package mappings will be written as facts to the MODULE.bazel.lock file on supported bazel versions and it should be done at most once. As a result, per-package {obj}experimental_index_url_overrides is no longer needed, but if specified, it needs to be provided for all packages not on the default index. What is more, the flags for --index_url and --extra-index-url now behave in the

... (truncated)

Commits
  • e29c577 test: finish fixing the mocks in the pypi_cache
  • ed05762 fix(test): update the lock-file to corresspond to the current deps
  • 2852efd fix(logger): do not output WARN level logs for non-root modules (#3760)
  • d876cfe fix(pypi): pass the correct versions to get_index_urls and fix cache invalida...
  • 1390b36 fix(pypi): don't resolve python interpreter when not necessary (#3727)
  • 91b3224 fix(pypi): build the environment on the fly (#3720)
  • 577bb1f fix(pypi): correctly write the used facts back (#3719)
  • 8c726cb fix(pypi): skip index lookups when all package overrides are specified (#3710)
  • 8cc468b sphinxdocs: remove local rules_python dev overrides (#3705)
  • 3949cca chore: have no-matching-distribution error message hint about target_platform...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added bazel Pull requests that update bazel code dependencies Pull requests that update a dependency file labels Apr 21, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.3.0) and connecting to it...
INFO: Invocation ID: 0a979b9a-b731-4e58-ada9-62361a95d372
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 4 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': error loading package '': at /home/runner/.bazel/external/score_docs_as_code+/docs.bzl:47:6: Label '@@rules_python+//sphinxdocs:sphinx.bzl' is invalid because 'sphinxdocs' is not a package; perhaps you meant to put the colon here: '@@rules_python+//:sphinxdocs/sphinx.bzl'?
ERROR: error loading package '': at /home/runner/.bazel/external/score_docs_as_code+/docs.bzl:47:6: Label '@@rules_python+//sphinxdocs:sphinx.bzl' is invalid because 'sphinxdocs' is not a package; perhaps you meant to put the colon here: '@@rules_python+//:sphinxdocs/sphinx.bzl'?
INFO: Elapsed time: 12.965s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

The created documentation from the pull request is available at: docu-html

Bumps [rules_python](https://github.com/bazel-contrib/rules_python) from 1.9.0 to 2.0.1.
- [Release notes](https://github.com/bazel-contrib/rules_python/releases)
- [Changelog](https://github.com/bazel-contrib/rules_python/blob/main/CHANGELOG.md)
- [Commits](bazel-contrib/rules_python@1.9.0...2.0.1)

---
updated-dependencies:
- dependency-name: rules_python
  dependency-version: 2.0.0-rc3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump rules_python from 1.9.0 to 2.0.0-rc3 chore(deps): bump rules_python from 1.9.0 to 2.0.1 May 21, 2026
@dependabot dependabot Bot force-pushed the dependabot/bazel/rules_python-2.0.0-rc3 branch from 1dff616 to de65aa2 Compare May 21, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel Pull requests that update bazel code dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants