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

chore(deps): update dependency rules_python to v1.1.0 #432

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 17, 2025

This PR contains the following updates:

Package Type Update Change
rules_python http_archive minor 1.0.0 -> 1.1.0

Release Notes

bazelbuild/rules_python (rules_python)

v1.1.0

Compare Source

{#v1-1-0-changed}

Changed
  • (toolchains) 3.13 means 3.13.1 (previously 3.13.0)
  • Bazel 6 support is dropped and Bazel 7.4.1 is the minimum supported
    version, per our Bazel support matrix. Earlier versions are not
    tested by CI, so functionality cannot be guaranteed.
  • ({bzl:obj}pip.parse) From now we will make fewer calls to indexes when
    fetching the metadata from SimpleAPI. The calls will be done in parallel to
    each index separately, so the extension evaluation time might slow down if
    not using {bzl:obj}pip.parse.experimental_index_url_overrides.
  • ({bzl:obj}pip.parse) Only query SimpleAPI for packages that have
    sha values in the requirements.txt file.
  • (rules) The version-aware rules have been folded into the base rules and
    the version-aware rules are now simply aliases for the base rules. The
    python_version attribute is still used to specify the Python version.
  • (pypi) Updated versions of packages: pip to 24.3.1 and
    packaging to 24.2.

{#v1-1-0-deprecations}

Deprecations
  • //python/config_settings:transitions.bzl and its py_binary and py_test
    wrappers are deprecated. Use the regular rules instead.

{#v1-1-0-fixed}

Fixed
  • (py_wheel) Use the default shell environment when building wheels to allow
    toolchains that search PATH to be used for the wheel builder tool.
  • (pypi) The requirement argument parsed to whl_library will now not have env
    marker information allowing bazel query to work in cases where the whl is
    available for all of the platforms and the sdist can be built. This fix is
    for both WORKSPACE and bzlmod setups.
    Fixes #​2450.
  • (gazelle) Gazelle will now correctly parse Python3.12 files that use PEP 695 Type
    Parameter Syntax
    . (#​2396)
  • (pypi) Using {bzl:obj}pip_parse.experimental_requirement_cycles and
    {bzl:obj}pip_parse.use_hub_alias_dependencies together now works when
    using WORKSPACE files.
  • (pypi) The error messages when the wheel distributions do not match anything
    are now printing more details and include the currently active flag
    values. Fixes #​2466.
  • (py_proto_library) Fix import paths in Bazel 8.
  • (whl_library) Now the changes to the dependencies are correctly tracked when
    PyPI packages used in {bzl:obj}whl_library during the repository_rule phase
    change. Fixes #​2468.
  • (gazelle) Gazelle no longer ignores setup.py files by default. To restore
    this behavior, apply the # gazelle:python_ignore_files setup.py directive.
  • Don't re-fetch whl_library, python_repository, etc. repository rules
    whenever PATH changes. Fixes
    #​2551.

{#v1-1-0-added}

Added
  • (gazelle) Added include_stub_packages flag to modules_mapping. When set to True, this
    automatically includes corresponding stub packages for third-party libraries
    that are present and used (e.g., boto3boto3-stubs), improving
    type-checking support.
  • (pypi) Freethreaded packages are now fully supported in the
    {obj}experimental_index_url usage or the regular pip.parse usage.
    To select the free-threaded interpreter in the repo phase, please use
    the documented env variables.
    Fixes #​2386.
  • (toolchains) Use the latest astrahl-sh toolchain release 20241206 for Python versions:
    • 3.9.21
    • 3.10.16
    • 3.11.11
    • 3.12.8
    • 3.13.1
  • (rules) Attributes for type definition files (.pyi files) and type-checking
    only dependencies added. See {obj}py_library.pyi_srcs and
    py_library.pyi_deps (and the same named attributes for py_binary and
    py_test).
  • (pypi) pypi-generated targets set pyi_srcs to include *.pyi files.
  • (providers) {obj}PyInfo has new fields to aid static analysis tools:
    {obj}direct_original_sources, {obj}direct_pyi_files,
    {obj}transitive_original_sources, {obj}transitive_pyi_files.

{#v1-1-0-removed}

Removed
  • find_requirements in //python:defs.bzl has been removed.

{#v1-0-0}


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.


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

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

@renovate renovate bot enabled auto-merge (squash) January 17, 2025 01:55
@renovate renovate bot merged commit f26391b into main Jan 17, 2025
5 checks passed
@renovate renovate bot deleted the renovate/rules_python-1.x branch January 17, 2025 16:05
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