Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ tasks:
name: "Default: Ubuntu, upcoming Bazel"
platform: ubuntu2204
bazel: last_rc
# RCs may have regressions, so don't fail our CI on them
soft_fail:
- exit_status: 1
- exit_status: 3
ubuntu_rolling:
name: "Default: Ubuntu, rolling Bazel"
platform: ubuntu2204
Expand Down Expand Up @@ -262,7 +266,7 @@ tasks:
<<: *minimum_supported_version
<<: *reusable_config
name: "RBE: Ubuntu, minimum Bazel"
platform: rbe_ubuntu2204
platform: rbe_ubuntu2404
build_flags:
# BazelCI sets --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1,
# which prevents cc toolchain autodetection from working correctly
Expand All @@ -280,7 +284,7 @@ tasks:
rbe:
<<: *reusable_config
name: "RBE: Ubuntu"
platform: rbe_ubuntu2204
platform: rbe_ubuntu2404
# TODO @aignas 2024-12-11: get the RBE working in CI for bazel 8.0
# See https://github.com/bazelbuild/rules_python/issues/2499
bazel: 8.x
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ jobs:
- uses: actions/checkout@v6
- uses: jpetrucciani/mypy-check@master
with:
requirements: 1.6.0
python_version: 3.9
path: 'python/runfiles'
- uses: jpetrucciani/mypy-check@master
with:
requirements: 1.6.0
python_version: 3.9
path: 'tests/runfiles'
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,20 @@ BEGIN_UNRELEASED_TEMPLATE
END_UNRELEASED_TEMPLATE
-->

{#v1-9-1}
## [1.9.1] - 2026-05-14

[1.9.1]: https://github.com/bazel-contrib/rules_python/releases/tag/1.9.1

{#v1-9-1-added}
### Added
* (toolchains) `3.13.12`, `3.14.3` Python toolchain from [20260325] release.
* (toolchains) `3.10.20`, `3.11.15`, `3.12.13`, `3.13.13` `3.14.4`, `3.15.0a8`
* Python toolchain from [20260414] release.

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

{#v1-9-0}
## [1.9.0] - 2026-02-21

Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module(

bazel_dep(name = "bazel_features", version = "1.21.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_cc", version = "0.1.5")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "platforms", version = "0.0.11")

# Those are loaded only when using py_proto_library
Expand Down
2 changes: 1 addition & 1 deletion examples/wheel/requirements_server.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This is for running publishing tests
pypiserver
pypiserver>=2.2.0
14 changes: 11 additions & 3 deletions examples/wheel/requirements_server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@
#
# bazel run //examples/wheel:requirements_server.update
#
pypiserver==2.0.1 \
--hash=sha256:1dd98fb99d2da4199fb44c7284e57d69a9f7fda2c6c8dc01975c151c592677bf \
--hash=sha256:7b58fbd54468235f79e4de07c4f7a9ff829e7ac6869bef47ec11e0710138e162
importlib-resources==7.1.0 \
--hash=sha256:0722d4c6212489c530f2a145a34c0a7a3b4721bc96a15fada5930e2a0b760708 \
--hash=sha256:1bd7b48b4088eddb2cd16382150bb515af0bd2c70128194392725f82ad2c96a1
# via pypiserver
packaging==26.1 \
--hash=sha256:5d9c0669c6285e491e0ced2eee587eaf67b670d94a19e94e3984a481aba6802f \
--hash=sha256:f042152b681c4bfac5cae2742a55e103d27ab2ec0f3d88037136b6bfe7c9c5de
# via pypiserver
pypiserver==2.4.1 \
--hash=sha256:156540f87ecfd6db06ae2c16e25ae5afe4fda6f510bd1c34e46fbb0c491bcd9e \
--hash=sha256:45f116d0bff6aafcaed002cfad48a6832e62a82393e3a9b447d5c41a0e310fff
# via -r examples/wheel/requirements_server.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
22 changes: 12 additions & 10 deletions examples/wheel/test_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import unittest
from contextlib import closing
from pathlib import Path
from urllib.error import URLError
from urllib.request import urlopen


Expand Down Expand Up @@ -50,17 +51,16 @@ def setUp(self):
],
)

line = "Hit Ctrl-C to quit"
interval = 0.1
wait_seconds = 40
for _ in range(int(wait_seconds / interval)): # 40 second timeout
current_logs = self.log_file.read_text()
if line in current_logs:
print(current_logs.strip())
print("...")
break

time.sleep(0.1)
try:
with urlopen(self.url, timeout=1) as response:
if response.status == 200:
break
except (URLError, OSError):
pass
time.sleep(interval)
else:
raise RuntimeError(
f"Could not get the server running fast enough, waited for {wait_seconds}s"
Expand Down Expand Up @@ -98,13 +98,15 @@ def test_upload_and_query_simple_api(self):
got_content = response.read().decode("utf-8")
want_content = """
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Links for example-minimal-library</title>
</head>
<body>
<h1>Links for example-minimal-library</h1>
<a href="/packages/example_minimal_library-0.0.1-py3-none-any.whl#sha256=ef5afd9f6c3ff569ef7e5b2799d3a2ec9675d029414f341e0abd7254d6b9a25d">example_minimal_library-0.0.1-py3-none-any.whl</a><br>
<a href="/packages/example_minimal_library-0.0.1-py3-none-any.whl#sha256=ef5afd9f6c3ff569ef7e5b2799d3a2ec9675d029414f341e0abd7254d6b9a25d">example_minimal_library-0.0.1-py3-none-any.whl</a><br>
</body>
</html>"""
self.assertEqual(
Expand Down
2 changes: 1 addition & 1 deletion python/private/internal_dev_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _internal_dev_deps_impl(mctx):
# otherwise refer to RBE docs.
rbe_preconfig(
name = "buildkite_config",
toolchain = "ubuntu2204",
toolchain = "ubuntu2404",
)
runtime_env_repo(name = "rules_python_runtime_env_tc_info")

Expand Down
Loading