Skip to content

Update dependency rules_python to v1.5.0 #137

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

Merged
merged 1 commit into from
Jun 30, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 30, 2025

This PR contains the following updates:

Package Type Update Change
rules_python bazel_dep minor 1.4.1 -> 1.5.0

Release Notes

bazel-contrib/rules_python (rules_python)

v1.5.0

Compare Source

{#​1-5-0-changed}

Changed
  • (toolchain) Bundled toolchain version updates:
    • 3.9 now references 3.9.23
    • 3.10 now references 3.10.18
    • 3.11 now references 3.11.13
    • 3.12 now references 3.12.11
    • 3.13 now references 3.13.4
  • (rules) On Windows, {obj}--bootstrap_impl=system_python is forced. This
    allows setting --bootstrap_impl=script in bazelrc for mixed-platform
    environments.
  • (rules) {obj}compile_pip_requirements now generates a .test target. The
    _test target is deprecated and will be removed in the next major release.
    (#​2794
  • (py_wheel) py_wheel always creates zip64-capable wheel zips
  • (providers) (experimental) {obj}PyInfo.venv_symlinks replaces
    PyInfo.site_packages_symlinks
  • (deps) Updating setuptools to patch CVE-2025-47273.

{#​1-5-0-fixed}

Fixed
  • (rules) PyInfo provider is now advertised by py_test, py_binary, and py_library;
    this allows aspects using required_providers to function correctly.
    (#​2506).
  • Fixes when using {obj}--bootstrap_impl=script:
    • compile_pip_requirements now works with it
    • The sys._base_executable value will reflect the underlying interpreter,
      not venv interpreter.
    • The {obj}//python/runtime_env_toolchains:all toolchain now works with it.
  • (rules) Better handle flakey platform.win32_ver() calls by calling them
    multiple times.
  • (tools/wheelmaker.py) Extras are now preserved in Requires-Dist metadata when using requires_file
    to specify the requirements.
  • (pypi) Use bazel downloader for direct URL references and correctly detect the filenames from
    various URL formats - URL encoded version strings get correctly resolved, sha256 value can be
    also retrieved from the URL as opposed to only the --hash parameter. Fixes
    #​2363.
  • (pypi) whl_library now infers file names from its urls attribute correctly.
  • (pypi) When running under bazel test, be sure that temporary requirements file
    remains writable.
  • (py_test, py_binary) Allow external files to be used for main
  • (pypi) Correctly aggregate the sources when the hashes specified in the lockfile differ
    by platform even though the same version is used. Fixes #​2648.
  • (pypi) compile_pip_requirements test rule works behind the proxy
  • (toolchains) The hermetic toolchains now correctly statically advertise the
    releaselevel and serial for pre-release hermetic toolchains ({gh-issue}2837).

{#​1-5-0-added}

Added
  • Repo utilities execute_unchecked, execute_checked, and execute_checked_stdout now
    support log_stdout and log_stderr keyword arg booleans. When these are True
    (the default), the subprocess's stdout/stderr will be logged.
  • (toolchains) Local toolchains can be activated with custom flags. See
    [Conditionally using local toolchains] docs for how to configure.
  • (pypi) Starlark-based evaluation of environment markers (requirements.txt conditionals)
    available (not enabled by default) for improved multi-platform build support.
    Set the RULES_PYTHON_ENABLE_PIPSTAR=1 environment variable to enable it.
  • (utils) Add a way to run a REPL for any rules_python target that returns
    a PyInfo provider.
  • (uv) Handle .netrc and auth_patterns auth when downloading uv. Work towards
    #​1975.
  • (toolchains) Arbitrary python-build-standalone runtimes can be registered
    and activated with custom flags. See the [Registering custom runtimes]
    docs and {obj}single_version_platform_override() API docs for more
    information.
  • (rules) Added support for a using constraints files with compile_pip_requirements.
    Useful when an intermediate dependency needs to be upgraded to pull in
    security patches.
  • (toolchains): 3.14.0b2 has been added as a preview.

{#​1-5-0-removed}

Removed
  • Nothing removed.

{#​1-4-1}


Configuration

📅 Schedule: 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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

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


This change is Reviewable

@jwnimmer-tri jwnimmer-tri self-assigned this Jun 30, 2025
Copy link
Contributor

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignee jwnimmer-tri (waiting on @renovate[bot])

@jwnimmer-tri jwnimmer-tri merged commit 5335a02 into main Jun 30, 2025
3 checks passed
@renovate renovate bot deleted the renovate/rules_python-1.x branch June 30, 2025 22:32
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