Skip to content

Commit

Permalink
Bump bazel-runfiles from 0.37.2 to 0.38.0 in /tools (#3156)
Browse files Browse the repository at this point in the history
Bumps [bazel-runfiles](https://github.com/bazelbuild/rules_python) from
0.37.2 to 0.38.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/bazelbuild/rules_python/releases">bazel-runfiles's
releases</a>.</em></p>
<blockquote>
<h2>0.38.0</h2>
<p>For more detailed setup instructions, see <a
href="https://rules-python.readthedocs.io/en/latest/getting-started.html">https://rules-python.readthedocs.io/en/latest/getting-started.html</a></p>
<h2>Using Bzlmod</h2>
<p>Add to your <code>MODULE.bazel</code> file:</p>
<pre lang="starlark"><code>bazel_dep(name = &quot;rules_python&quot;,
version = &quot;0.38.0&quot;)
<p>pip = use_extension(&quot;<a
href="https://github.com/rules"><code>@​rules</code></a>_python//python/extensions:pip.bzl&quot;,
&quot;pip&quot;)</p>
<p>pip.parse(<br />
hub_name = &quot;pip&quot;,<br />
python_version = &quot;3.11&quot;,<br />
requirements_lock = &quot;//:requirements_lock.txt&quot;,<br />
)</p>
<p>use_repo(pip, &quot;pip&quot;)<br />
</code></pre></p>
<h2>Using WORKSPACE</h2>
<p>Paste this snippet into your <code>WORKSPACE</code> file:</p>
<pre
lang="starlark"><code>load(&quot;@bazel_tools//tools/build_defs/repo:http.bzl&quot;,
&quot;http_archive&quot;)
<p>http_archive(<br />
name = &quot;rules_python&quot;,<br />
sha256 =
&quot;ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34&quot;,<br
/>
strip_prefix = &quot;rules_python-0.38.0&quot;,<br />
url = &quot;<a
href="https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz">https://github.com/bazelbuild/rules_python/releases/download/0.38.0/rules_python-0.38.0.tar.gz</a>&quot;,<br
/>
)</p>
<p>load(&quot;<a
href="https://github.com/rules"><code>@​rules</code></a>_python//python:repositories.bzl&quot;,
&quot;py_repositories&quot;)</p>
<p>py_repositories()<br />
</code></pre></p>
<h3>Gazelle plugin</h3>
<p>Paste this snippet into your <code>WORKSPACE</code> file:</p>
<pre
lang="starlark"><code>load(&quot;@bazel_tools//tools/build_defs/repo:http.bzl&quot;,
&quot;http_archive&quot;)
http_archive(
    name = &quot;rules_python_gazelle_plugin&quot;,
sha256 =
&quot;ca2671529884e3ecb5b79d6a5608c7373a82078c3553b1fa53206e6b9dddab34&quot;,
&lt;/tr&gt;&lt;/table&gt; 
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/bazelbuild/rules_python/blob/main/CHANGELOG.md">bazel-runfiles's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/bazelbuild/rules_python/releases/tag/0.38.0">0.38.0</a>
- 2024-11-08</h2>
<p>{#v0-38-0-changed}</p>
<h3>Changed</h3>
<ul>
<li>(deps) (WORKSPACE only) rules_cc 0.0.13 and protobuf 27.0 is now the
default
version used; this for Bazel 8+ support (previously version was rules_cc
0.0.9
and no protobuf version specified)
(<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2310">2310</a>).</li>
<li>(publish) The dependencies have been updated to the latest available
versions
for the <code>twine</code> publishing rule.</li>
<li>(whl_library) Remove <code>--no-build-isolation</code> to allow
non-hermetic sdist builds
by default. Users wishing to keep this argument and to enforce more
hermetic
builds can do so by passing the argument in
<a
href="https://rules-python.readthedocs.io/en/latest/api/rules_python/python/extensions/pip.html#pip.parse.extra_pip_args"><code>pip.parse#extra_pip_args</code></a></li>
<li>(pip.parse) {attr}<code>pip.parse.whl_modifications</code> now
normalizes the given whl names
and now <code>pyyaml</code> and <code>PyYAML</code> will both work.</li>
<li>(bzlmod) <code>pip.parse</code> spoke repository naming will be
changed in an upcoming
release in places where the users specify different package versions per
platform in the same hub repository. The naming of the spoke repos is
considered an implementation detail and we advise the users to use the
<code>hub</code>
repository directly and make use of
{bzl:obj}<code>pip.parse.extra_hub_aliases</code>
feature added in this release.</li>
</ul>
<p>{#v0-38-0-fixed}</p>
<h3>Fixed</h3>
<ul>
<li>(pypi) (Bazel 7.4+) Allow spaces in filenames included in
<code>whl_library</code>s
(<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/617">617</a>).</li>
<li>(pypi) When {attr}<code>pip.parse.experimental_index_url</code> is
set, we need to still
pass the <code>extra_pip_args</code> value when building an
<code>sdist</code>.</li>
<li>(pypi) The patched wheel filenames from now on are using local
version specifiers
which fixes usage of the said wheels using standard package
managers.</li>
<li>(bzlmod) The extension evaluation has been adjusted to always
generate the
same lock file irrespective if <code>experimental_index_url</code> is
set by any module
or not. To opt into this behavior, set
{bzl:obj}<code>pip.parse.parse_all_requirements_files</code>, which will
become the
default in future releases leading up to <code>1.0.0</code>. Fixes
<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2268">#2268</a>.
A known
issue is that it may break <code>bazel query</code> and in these use
cases it is
advisable to use <code>cquery</code> or switch to <code>download_only =
True</code></li>
</ul>
<p>{#v0-38-0-added}</p>
<h3>Added</h3>
<ul>
<li>(publish) The requirements file for the <code>twine</code>
publishing rules have been
updated to have a new convention: <code>requirements_darwin.txt</code>,
<code>requirements_linux.txt</code>,
<code>requirements_windows.txt</code> for each respective OS
and one extra file <code>requirements_universal.txt</code> if you prefer
a single file.
The <code>requirements.txt</code> file may be removed in the
future.</li>
<li>The rules_python version is now reported in
<code>//python/features.bzl#features.version</code></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/251eb3792218d5b26ee86a88babc591161ce3c0c"><code>251eb37</code></a>
chore: prepare CHANGELOG for 0.38.0 release (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2384">#2384</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/78e2071d526fc76876b485aa45361000dcbc1e10"><code>78e2071</code></a>
chore: move code out of WORKSPACE.bzlmod and into MODULE (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2380">#2380</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/00d352b9d3b8155a64a4a333366aeb44768a1181"><code>00d352b</code></a>
chore: cleanup and fix some bzl_library deps in //python/private (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2381">#2381</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/2d9a32190ee78a14d9ce1dfb59c7dec1023ecd66"><code>2d9a321</code></a>
tests: fix the job name for the debian bzlmod gazelle job (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2382">#2382</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/d66e55c920d50cc7b3c08a7589441ea366bcbc90"><code>d66e55c</code></a>
feat(bzlmod): cross-platform builds without experimental_index_url (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2325">#2325</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/203897526e6ff85bd51a84efb3227137ce366fe3"><code>2038975</code></a>
fix: make sphinxdocs support directory inputs (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2375">#2375</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/218f8e161830ccd4f731a6a8d2a6dd36efe4488a"><code>218f8e1</code></a>
fix(bzlmod): allow users to specify extra targets to be added to hub
repos (#...</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/ae0aeff673c89fbd6340cd0823d0325511aea40f"><code>ae0aeff</code></a>
fix(pypi): use local version specifiers for patched whl output (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2365">#2365</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/3367f82e9174edccbb093d2c3159ad6c16faf583"><code>3367f82</code></a>
fix(pypi): correctly pass <code>extra_pip_args</code> when building
sdists (<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2368">#2368</a>)</li>
<li><a
href="https://github.com/bazelbuild/rules_python/commit/4dc05182e69e197217244219ce4a9f64356f3141"><code>4dc0518</code></a>
docs: clarify that PyInfo.transitive_sources may not include py files
(<a
href="https://redirect.github.com/bazelbuild/rules_python/issues/2367">#2367</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/bazelbuild/rules_python/compare/0.37.2...0.38.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bazel-runfiles&package-manager=pip&previous-version=0.37.2&new-version=0.38.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Nov 12, 2024
1 parent e67c14f commit 5c775d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/requirements_lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#
# bazel run //tools:requirements.update
#
bazel-runfiles==0.37.2 \
--hash=sha256:99e2b4e90721b915a1270b291af7f0f625bb1fb0eccaa39aebb91d4a69d2641e
bazel-runfiles==0.38.0 \
--hash=sha256:f163dfb0b5eec0d2b6653777ae7a3420a8d88306be7c33a9261b6eecb7363d46
# via -r tools/requirements.in
click==8.1.7 \
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
Expand Down

0 comments on commit 5c775d3

Please sign in to comment.