Skip to content

Commit 2f34976

Browse files
authored
Merge branch 'main' into feat/extension-eval-without-python
2 parents f7edb9e + 09145b9 commit 2f34976

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1361
-408
lines changed

.bazelci/presubmit.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,10 @@ buildifier:
7878
coverage_targets:
7979
- //tests:my_lib_3_10_test
8080
- //tests:my_lib_3_11_test
81-
- //tests:my_lib_3_8_test
8281
- //tests:my_lib_3_9_test
8382
- //tests:my_lib_default_test
8483
- //tests:version_3_10_test
8584
- //tests:version_3_11_test
86-
- //tests:version_3_8_test
8785
- //tests:version_3_9_test
8886
- //tests:version_default_test
8987
tasks:

CHANGELOG.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,42 @@ Unreleased changes template.
5353

5454
{#v0-0-0-changed}
5555
### Changed
56-
* Nothing changed.
56+
* (toolchain) The `exec` configuration toolchain now has the forwarded
57+
`exec_interpreter` now also forwards the `ToolchainInfo` provider. This is
58+
for increased compatibility with the `RBE` setups where access to the `exec`
59+
configuration interpreter is needed.
60+
* (toolchains) Use the latest astrahl-sh toolchain release [20250317] for Python versions:
61+
* 3.9.21
62+
* 3.10.16
63+
* 3.11.11
64+
* 3.12.9
65+
* 3.13.2
66+
* (pypi) Use `xcrun xcodebuild --showsdks` to find XCode root.
67+
* (toolchains) Remove all but `3.8.20` versions of the Python `3.8` interpreter who has
68+
reached EOL. If users still need other versions of the `3.8` interpreter, please supply
69+
the URLs manually {bzl:ob}`python.toolchain` or {bzl:obj}`python_register_toolchains` calls.
70+
71+
[20250317]: https://github.com/astral-sh/python-build-standalone/releases/tag/20250317
5772

5873
{#v0-0-0-fixed}
5974
### Fixed
60-
* Nothing fixed.
75+
* (runfiles) ({obj}`--bootstrap_impl=script`) Follow symlinks when searching for runfiles.
76+
* (toolchains) Do not try to run `chmod` when downloading non-windows hermetic toolchain
77+
repositories on Windows. Fixes
78+
[#2660](https://github.com/bazel-contrib/rules_python/issues/2660).
6179

6280
{#v0-0-0-added}
6381
### Added
64-
* Nothing added.
82+
* (uv) A {obj}`lock` rule that is the replacement for the
83+
{obj}`compile_pip_requirements`. This may still have rough corners
84+
so please report issues with it in the
85+
[#1975](https://github.com/bazel-contrib/rules_python/issues/1975).
86+
Main highlights - the locking can be done within a build action or outside
87+
it, there is no more automatic `test` target (but it can be added on the user
88+
side by using `native_test`). For customizing the `uv` version that is used,
89+
please check the {obj}`uv.configure` tag class.
90+
* Add support for riscv64 linux platform.
91+
* (toolchains) Add python 3.13.2 and 3.12.9 toolchains
6592

6693
{#v0-0-0-removed}
6794
### Removed

MODULE.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ dev_pip.parse(
131131
download_only = True,
132132
experimental_index_url = "https://pypi.org/simple",
133133
hub_name = "dev_pip",
134-
python_version = "3.13.0",
134+
python_version = "3.13",
135135
requirements_lock = "//docs:requirements.txt",
136136
)
137137
dev_pip.parse(
@@ -221,6 +221,13 @@ uv.default(
221221
],
222222
platform = "s390x-unknown-linux-gnu",
223223
)
224+
uv.default(
225+
compatible_with = [
226+
"@platforms//os:linux",
227+
"@platforms//cpu:riscv64",
228+
],
229+
platform = "riscv64-unknown-linux-gnu",
230+
)
224231
uv.default(
225232
compatible_with = [
226233
"@platforms//os:macos",

docs/BUILD.bazel

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,12 @@ lock(
176176
name = "requirements",
177177
srcs = ["pyproject.toml"],
178178
out = "requirements.txt",
179-
upgrade = True,
180-
visibility = ["//private:__pkg__"],
179+
args = [
180+
"--emit-index-url",
181+
"--universal",
182+
"--upgrade",
183+
],
184+
visibility = ["//:__subpackages__"],
181185
)
182186

183187
# Temporary compatibility aliases for some other projects depending on the old

docs/requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ astroid==3.3.6 \
1414
--hash=sha256:6aaea045f938c735ead292204afdb977a36e989522b7833ef6fea94de743f442 \
1515
--hash=sha256:db676dc4f3ae6bfe31cda227dc60e03438378d7a896aec57422c95634e8d722f
1616
# via sphinx-autodoc2
17-
babel==2.16.0 \
18-
--hash=sha256:368b5b98b37c06b7daf6696391c3240c938b37767d4584413e8438c5c435fa8b \
19-
--hash=sha256:d1f3554ca26605fe173f3de0c65f750f5a42f924499bf134de6423582298e316
17+
babel==2.17.0 \
18+
--hash=sha256:0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d \
19+
--hash=sha256:4d0b53093fdfb4b21c92b5213dba5a1b23885afa8383709427046b21c366e5f2
2020
# via sphinx
2121
certifi==2024.8.30 \
2222
--hash=sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8 \
@@ -370,7 +370,7 @@ typing-extensions==4.12.2 \
370370
# via
371371
# rules-python-docs (docs/pyproject.toml)
372372
# sphinx-autodoc2
373-
urllib3==2.2.3 \
374-
--hash=sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac \
375-
--hash=sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9
373+
urllib3==2.3.0 \
374+
--hash=sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df \
375+
--hash=sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d
376376
# via requests

examples/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ lock(
2121
name = "bzlmod_requirements_3_9",
2222
srcs = ["bzlmod/requirements.in"],
2323
out = "bzlmod/requirements_lock_3_9.txt",
24+
args = [
25+
"--emit-index-url",
26+
"--universal",
27+
"--python-version=3.9",
28+
],
2429
python_version = "3.9.19",
2530
)

examples/bzlmod/requirements_lock_3_9.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ imagesize==1.4.1 \
4646
--hash=sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b \
4747
--hash=sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a
4848
# via sphinx
49-
importlib-metadata==8.4.0 ; python_version < '3.10' \
49+
importlib-metadata==8.4.0 ; python_full_version < '3.10' \
5050
--hash=sha256:66f342cc6ac9818fc6ff340576acd24d65ba0b3efabb2b4ac08b598965a4a2f1 \
5151
--hash=sha256:9a547d3bc3608b025f93d403fdd1aae741c24fbb8314df4b155675742ce303c5
5252
# via sphinx
@@ -316,15 +316,15 @@ tabulate==0.9.0 \
316316
--hash=sha256:0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c \
317317
--hash=sha256:024ca478df22e9340661486f85298cff5f6dcdba14f3813e8830015b9ed1948f
318318
# via -r examples/bzlmod/requirements.in
319-
tomli==2.0.1 ; python_version < '3.11' \
319+
tomli==2.0.1 ; python_full_version < '3.11' \
320320
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
321321
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
322322
# via pylint
323323
tomlkit==0.11.6 \
324324
--hash=sha256:07de26b0d8cfc18f871aec595fda24d95b08fef89d147caa861939f37230bf4b \
325325
--hash=sha256:71b952e5721688937fb02cf9d354dbcf0785066149d2855e44531ebdd2b65d73
326326
# via pylint
327-
typing-extensions==4.12.2 ; python_version < '3.10' \
327+
typing-extensions==4.12.2 ; python_full_version < '3.10' \
328328
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
329329
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
330330
# via
@@ -480,7 +480,7 @@ yamllint==1.28.0 \
480480
--hash=sha256:89bb5b5ac33b1ade059743cf227de73daa34d5e5a474b06a5e17fc16583b0cf2 \
481481
--hash=sha256:9e3d8ddd16d0583214c5fdffe806c9344086721f107435f68bad990e5a88826b
482482
# via -r examples/bzlmod/requirements.in
483-
zipp==3.20.0 ; python_version < '3.10' \
483+
zipp==3.20.0 ; python_full_version < '3.10' \
484484
--hash=sha256:0145e43d89664cfe1a2e533adc75adafed82fe2da404b4bbb6b026c0157bdb31 \
485485
--hash=sha256:58da6168be89f0be59beb194da1250516fdaa062ccebd30127ac65d30045e10d
486486
# via importlib-metadata

examples/bzlmod_build_file_generation/requirements_lock.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ dill==0.3.6 \
2626
--hash=sha256:a07ffd2351b8c678dfc4a856a3005f8067aea51d6ba6c700796a4d9e280f39f0 \
2727
--hash=sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373
2828
# via pylint
29-
django==4.2.17 \
30-
--hash=sha256:3a93350214ba25f178d4045c0786c61573e7dbfa3c509b3551374f1e11ba8de0 \
31-
--hash=sha256:6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc
29+
django==4.2.20 \
30+
--hash=sha256:213381b6e4405f5c8703fffc29cd719efdf189dec60c67c04f76272b3dc845b9 \
31+
--hash=sha256:92bac5b4432a64532abb73b2ac27203f485e40225d2640a7fbef2b62b876e789
3232
# via
3333
# -r requirements.in
3434
# django-stubs

examples/bzlmod_build_file_generation/requirements_windows.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ dill==0.3.6 \
3030
--hash=sha256:a07ffd2351b8c678dfc4a856a3005f8067aea51d6ba6c700796a4d9e280f39f0 \
3131
--hash=sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373
3232
# via pylint
33-
django==4.2.17 \
34-
--hash=sha256:3a93350214ba25f178d4045c0786c61573e7dbfa3c509b3551374f1e11ba8de0 \
35-
--hash=sha256:6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc
33+
django==4.2.20 \
34+
--hash=sha256:213381b6e4405f5c8703fffc29cd719efdf189dec60c67c04f76272b3dc845b9 \
35+
--hash=sha256:92bac5b4432a64532abb73b2ac27203f485e40225d2640a7fbef2b62b876e789
3636
# via
3737
# -r requirements.in
3838
# django-stubs

examples/multi_python_versions/MODULE.bazel

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ local_path_override(
1010
)
1111

1212
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
13-
python.toolchain(
14-
configure_coverage_tool = True,
15-
python_version = "3.8",
16-
)
1713
python.toolchain(
1814
configure_coverage_tool = True,
1915
# Only set when you have mulitple toolchain versions.
@@ -36,11 +32,6 @@ use_repo(
3632

3733
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
3834
use_repo(pip, "pypi")
39-
pip.parse(
40-
hub_name = "pypi",
41-
python_version = "3.8",
42-
requirements_lock = "//requirements:requirements_lock_3_8.txt",
43-
)
4435
pip.parse(
4536
hub_name = "pypi",
4637
python_version = "3.9",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy