Skip to content

chore(deps): update dependency rules_python to v2.2.0 - #794

Merged
helly25 merged 1 commit into
masterfrom
renovate/rules_python-2.x
Jul 4, 2026
Merged

helly25 merged 1 commit into
masterfrom
renovate/rules_python-2.x

Conversation

@renovate

@renovate renovate Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rules_python bazel_dep minor 2.1.0 → 2.2.0
rules_python http_archive minor 2.1.0 → 2.2.0

Release Notes

bazel-contrib/rules_python (rules_python)

v2.2.0

Compare Source

{#v2-2-0-changed}

Changed
  • Renamed most public bzl_library targets from {foo}_bzl to {foo} to follow
    gazelle naming conventions. Deprecated aliases are left for backwards
    compatibility.
  • (binaries/tests) Added a deprecation warning for targets relying on implicit __init__.py creation.

{#v2-2-0-fixed}

Fixed
  • Fixed a flaky error on Windows 2022 when looking up the win32 version during
    site initialization by retrying the lookup
    (#​3721).
  • (coverage) Skip lcov report when no data was collected.
  • (pypi) Fixed experimental_index_url checking truthiness before envsubst
    expansion.
  • (rules) Fixed venv output paths for py_binary and py_test targets whose
    names contain path separators so distinct targets with the same basename no
    longer share the same venv output directory.

{#v2-2-0-added}

Added
  • Added {bzl:obj}features.loadable_symbols to allow detecting public symbols
    exported by bzl files.
  • Exposed {bzl:obj}VenvSymlinkEntry and {bzl:obj}VenvSymlinkKind in
    {bzl:target}//python:py_info.bzl.
  • (pypi) Added @pypi repo: a unified hub of pip.parse hubs.
  • (uv) Support for basic uv.lock generation via the lock rule
    and basic support for importing the uv.lock file itself. Since this
    may have bugs, please report this by creating new tickets.
    Work towards #​2787
    and #​1975.

{#v2-1-0}

bazelbuild/rules_python (rules_python)

v2.2.0

Compare Source

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.2.0")

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 = "e11d2e1efce1589e5bdfa93986712c74fc7467a0f093143d489d2ef5ebb1ed2a",
    strip_prefix = "rules_python-2.2.0",
    url = "https://github.com/bazel-contrib/rules_python/releases/download/2.2.0/rules_python-2.2.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 = "e11d2e1efce1589e5bdfa93986712c74fc7467a0f093143d489d2ef5ebb1ed2a",
    strip_prefix = "rules_python-2.2.0/gazelle",
    url = "https://github.com/bazel-contrib/rules_python/releases/download/2.2.0/rules_python-2.2.0.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

New Contributors

Full Changelog: bazel-contrib/rules_python@2.1.0...2.2.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

ðŸšĶ Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™ŧ 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@helly25
helly25 merged commit 44cc1c3 into master Jul 4, 2026
77 checks passed
@helly25
helly25 deleted the renovate/rules_python-2.x branch July 4, 2026 09:35
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.

1 participant