Skip to content

Commit

Permalink
chore(deps): update dependency rules_python to v1.1.0 (#443)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| rules_python | bazel_dep | minor | `1.0.0` -> `1.1.0` |
| [rules_python](https://redirect.github.com/bazelbuild/rules_python) |
http_archive | minor | `1.0.0` -> `1.1.0` |

---

### Release Notes

<details>
<summary>bazelbuild/rules_python (rules_python)</summary>

###
[`v1.1.0`](https://redirect.github.com/bazelbuild/rules_python/blob/HEAD/CHANGELOG.md#110---2025-01-07)

[Compare
Source](https://redirect.github.com/bazelbuild/rules_python/compare/1.0.0...1.1.0-rc0)

[1.1.0]:
https://redirect.github.com/bazelbuild/rules_python/releases/tag/1.1.0

{#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
[#&#8203;2450](https://redirect.github.com/bazelbuild/rules_python/issues/2450).
- (gazelle) Gazelle will now correctly parse Python3.12 files that use
[PEP 695 Type
Parameter Syntax][pep-695].
([#&#8203;2396](https://redirect.github.com/bazelbuild/rules_python/issues/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
[#&#8203;2466](https://redirect.github.com/bazelbuild/rules_python/issues/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
[#&#8203;2468](https://redirect.github.com/bazelbuild/rules_python/issues/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

[#&#8203;2551](https://redirect.github.com/bazelbuild/rules_python/issues/2551).

[pep-695]: https://peps.python.org/pep-0695/

{#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., `boto3` → `boto3-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](/environment-variables.html) variables.
Fixes
[#&#8203;2386](https://redirect.github.com/bazelbuild/rules_python/issues/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`.

[20241206]:
https://redirect.github.com/astral-sh/python-build-standalone/releases/tag/20241206

{#v1-1-0-removed}

##### Removed

-   `find_requirements` in `//python:defs.bzl` has been removed.

{#v1-0-0}

</details>

---

### 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 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/bazel-contrib/toolchains_llvm).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Jan 17, 2025
1 parent 6e9fd7a commit bb3f7d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bazel_dep(name = "rules_foreign_cc", version = "0.13.0")
bazel_dep(name = "abseil-cpp", version = "20240722.0", repo_name = "com_google_absl")

# TODO: Remove when protobuf is released with a version of rules_python that supports 8.x
bazel_dep(name = "rules_python", version = "1.0.0")
bazel_dep(name = "rules_python", version = "1.1.0")

# As a workaround for https://github.com/bazelbuild/rules_foreign_cc/issues/1018.
rules_foreign_cc_tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools")
Expand Down
6 changes: 3 additions & 3 deletions tests/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ rust_register_toolchains()

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",
sha256 = "9c6e26911a79fbf510a8f06d8eedb40f412023cf7fa6d1461def27116bff022c",
strip_prefix = "rules_python-1.1.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.1.0/rules_python-1.1.0.tar.gz",
)

load("@rules_python//python:repositories.bzl", "py_repositories")
Expand Down

0 comments on commit bb3f7d0

Please sign in to comment.