Skip to content

Commit

Permalink
Update dependency rules_python to v0.37.2 (#243)
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 | `0.36.0` -> `0.37.2` |
| [rules_python](https://github.com/bazelbuild/rules_python) |
http_archive | minor | `0.36.0` -> `0.37.2` |

---

### Release Notes

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

###
[`v0.37.2`](https://github.com/bazelbuild/rules_python/releases/tag/0.37.2)

[Compare
Source](https://github.com/bazelbuild/rules_python/compare/0.37.1...0.37.2)

#### Using Bzlmod

Add to your `MODULE.bazel` file:

```starlark
bazel_dep(name = "rules_python", version = "0.37.2")

pip = use_extension("@&#8203;rules_python//python/extensions:pip.bzl", "pip")

pip.parse(
    hub_name = "pip",
    python_version = "3.11",
    requirements_lock = "//:requirements_lock.txt",
)

use_repo(pip, "pip")
```

#### Using WORKSPACE

Paste this snippet into your `WORKSPACE` file:

```starlark
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_python",
    sha256 = "c6fb25d0ba0246f6d5bd820dd0b2e66b339ccc510242fd4956b9a639b548d113",
    strip_prefix = "rules_python-0.37.2",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.37.2/rules_python-0.37.2.tar.gz",
)

load("@&#8203;rules_python//python:repositories.bzl", "py_repositories")

py_repositories()
```

##### Gazelle plugin

Paste this snippet into your `WORKSPACE` file:

```starlark
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_python_gazelle_plugin",
    sha256 = "c6fb25d0ba0246f6d5bd820dd0b2e66b339ccc510242fd4956b9a639b548d113",
    strip_prefix = "rules_python-0.37.2/gazelle",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.37.2/rules_python-0.37.2.tar.gz",
)

### To compile the rules_python gazelle extension from source,
### we must fetch some third-party go dependencies that it uses.

load("@&#8203;rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps")

_py_gazelle_deps()
```

**Full Changelog**:
bazelbuild/rules_python@0.37.1...0.37.2

###
[`v0.37.1`](https://github.com/bazelbuild/rules_python/blob/HEAD/CHANGELOG.md#0371---2024-10-22)

[Compare
Source](https://github.com/bazelbuild/rules_python/compare/0.37.0...0.37.1)

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

{#v0-37-1-fixed}

##### Fixed

- (rules) Setting `--incompatible_python_disallow_native_rules` no
longer
    causes rules_python rules to fail

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

{#v0-37-0}

###
[`v0.37.0`](https://github.com/bazelbuild/rules_python/blob/HEAD/CHANGELOG.md#0370---2024-10-18)

[Compare
Source](https://github.com/bazelbuild/rules_python/compare/0.36.0...0.37.0)

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

{#v0-37-0-changed}

##### Changed

- **BREAKING** `py_library` no longer puts its source files or generated
pyc
files in runfiles; it's the responsibility of consumers (e.g. binaries)
to
populate runfiles with the necessary files. Adding source files to
runfiles
can be temporarily restored by setting
{obj}`--add_srcs_to_runfiles=enabled`,
    but this flag will be removed in a subsequent releases.
- {obj}`PyInfo.transitive_sources` is now added to runfiles. These files
are
`.py` files that are required to be added to runfiles by downstream
binaries
    (or equivalent).
- (toolchains) `py_runtime.implementation_name` now defaults to
`cpython`
    (previously it defaulted to None).
- (toolchains) The exec tools toolchain is enabled by default. It can be
    disabled by setting

{obj}`--@&#8203;rules_python//python/config_settings:exec_tools_toolchain=disabled`.
-   (deps) stardoc 0.6.2 added as dependency.

{#v0-37-0-fixed}

##### Fixed

- (bzlmod) The `python.override(minor_mapping)` now merges the default
and the
overridden versions ensuring that the resultant `minor_mapping` will
always
    have all of the python versions.
- (bzlmod) The default value for the {obj}`--python_version` flag will
now be
    always set to the default python toolchain version value.
-   (bzlmod) correctly wire the {attr}`pip.parse.extra_pip_args` all the
way to {obj}`whl_library`. What is more we will pass the
`extra_pip_args` to
    {obj}`whl_library` for `sdist` distributions when using
    {attr}`pip.parse.experimental_index_url`. See

[#&#8203;2239](https://github.com/bazelbuild/rules_python/issues/2239).
-   (whl_filegroup): Provide per default also the `RECORD` file
- (py_wheel): `RECORD` file entry elements are now quoted if necessary
when a
    wheel is created
- (whl_library) truncate progress messages from the repo rule to better
handle
    case where a requirement has many `--hash=sha256:...` flags
- (rules) `compile_pip_requirements` passes `env` to the `X.update`
target (and
    not only to the `X_test` target, a bug introduced in

[#&#8203;1067](https://github.com/bazelbuild/rules_python/pull/1067)).
-   (bzlmod) In hybrid bzlmod with WORKSPACE builds,
    `python_register_toolchains(register_toolchains=True)` is respected

([#&#8203;1675](https://github.com/bazelbuild/rules_python/issues/1675)).
-   (precompiling) The {obj}`pyc_collection` attribute now correctly
    enables (or disables) using pyc files from targets transitively
-   (pip) Skip patching wheels not matching `pip.override`'s `file`

([#&#8203;2294](https://github.com/bazelbuild/rules_python/pull/2294)).
- (chore): Add a `rules_shell` dev dependency and moved a `sh_test`
target
    outside of the `//:BUILD.bazel` file.
Fixes
[#&#8203;2299](https://github.com/bazelbuild/rules_python/issues/2299).

{#v0-37-0-added}

##### Added

-   (py_wheel) Now supports `compress = (True|False)` to allow disabling
    compression to speed up development.
- (toolchains): A public
`//python/config_settings:python_version_major_minor` has
been exposed for users to be able to match on the `X.Y` version of a
Python
    interpreter.
- (api) Added {obj}`merge_py_infos()` so user rules can merge and
propagate
    `PyInfo` without losing information.
- (toolchains) New Python versions available: 3.13.0 using the
[20241008] release.
-   (toolchains): Bump default toolchain versions to:
    -   `3.8 -> 3.8.20`
    -   `3.9 -> 3.9.20`
    -   `3.10 -> 3.10.15`
    -   `3.11 -> 3.11.10`
    -   `3.12 -> 3.12.7`
- (coverage) Add support for python 3.13 and bump `coverage.py` to
7.6.1.
- (bzlmod) Add support for `download_only` flag to disable usage of
`sdists`
    when {bzl:attr}`pip.parse.experimental_index_url` is set.
-   (api) PyInfo fields: {obj}`PyInfo.transitive_implicit_pyc_files`,
    {obj}`PyInfo.transitive_implicit_pyc_source_files`.

[20241008]:
https://github.com/indygreg/python-build-standalone/releases/tag/20241008

{#v0-37-0-removed}

##### Removed

-   (precompiling) {obj}`--precompile_add_to_runfiles` has been removed.
- (precompiling) {obj}`--pyc_collection` has been removed. The
`pyc_collection`
    attribute now bases its default on {obj}`--precompile`.
- (precompiling) The {obj}`precompile=if_generated_source` value has
been removed.
- (precompiling) The
{obj}`precompile_source_retention=omit_if_generated_source` value has
been removed.

{#v0-36-0}

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
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/lalten/rules_appimage).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjAuMSIsInVwZGF0ZWRJblZlciI6IjM4LjEzMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Oct 31, 2024
1 parent 1696bb6 commit 3d44a89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module(
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_python", version = "0.36.0")
bazel_dep(name = "rules_python", version = "0.37.2")
bazel_dep(name = "squashfs-tools", version = "4.6.1")
bazel_dep(name = "zstd", version = "1.5.6")

Expand Down
6 changes: 3 additions & 3 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def _rules_appimage_workspace_deps():
maybe(
http_archive,
name = "rules_python",
sha256 = "ca77768989a7f311186a29747e3e95c936a41dffac779aff6b443db22290d913",
strip_prefix = "rules_python-0.36.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar.gz",
sha256 = "c6fb25d0ba0246f6d5bd820dd0b2e66b339ccc510242fd4956b9a639b548d113",
strip_prefix = "rules_python-0.37.2",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.37.2/rules_python-0.37.2.tar.gz",
)

def rules_appimage_development_deps():
Expand Down

0 comments on commit 3d44a89

Please sign in to comment.