Commit graph

10 commits

Author SHA1 Message Date
Jie Luo
bbc9dd9e8a Drop Python 3.9 support
Python 3.9 reached its official End-of-Life (EOL) on October 31, 2025
https://devguide.python.org/versions/

PiperOrigin-RevId: 854341311
2026-01-09 14:20:23 -08:00
Mike Kruskal
fa9ceb3d4f Add bzlmod support for system_python.
#test-continuous

This creates a module extension for system python so that it can be used in bzlmod builds.  The pip_parse setup (dynamically building a new repo) doesn't work in the new bzlmod model, so we use the regular pip extension pointed at system_python's interpreter.

Remaining work to get off WORKSPACE:
* The pip extension quickly fails in the case where there's no python available, unlike our system_python setup
* Our windows upb tests were never actually running python, and system_python doesn't work (and breaks under bzlmod due to the above issue)
* Some of the upb wheel tests still don't work on bzlmod yet because they depend on some very custom http_archive dependencies.

Closes #18750
Closes #23313
Closes #23307

PiperOrigin-RevId: 810995270
2025-09-24 12:54:08 -07:00
Joshua Haberman
26cc90cd83 Load py_runtime_pair from rules_python for Bazel 8.
As suggested by @justinwon777 in https://github.com/protocolbuffers/protobuf/pull/20335

PiperOrigin-RevId: 757933716
2025-05-12 15:25:32 -07:00
Protobuf Team Bot
32838e8c2c Rename bazel "pip_deps" hub_name.
rules_python recommends not using "pip_deps" as a hub name unless the module is guaranteed to always be the root module, as the name must be unique between modules.

PiperOrigin-RevId: 715435028
2025-01-14 10:37:26 -08:00
Protobuf Team Bot
f5a293768f Drop Python 3.8 support
This was previously announced in https://engdoc.corp.google.com/eng/doc/devguide/proto/news/2024-10-02.md#dropping-python-38-support per our support policies.

#test-continuous

PiperOrigin-RevId: 698398370
2024-11-20 08:41:33 -08:00
Protobuf Team Bot
13cf397e1a upgrade test images to bazel 6.4
PiperOrigin-RevId: 673392132
2024-09-11 08:06:35 -07:00
Protobuf Team Bot
4a5660c889 Automated rollback of commit 4dc164884c.
PiperOrigin-RevId: 642058565
2024-06-10 16:32:18 -07:00
Mike Kruskal
4dc164884c Automated rollback of commit e1bf1f048e.
PiperOrigin-RevId: 640697358
2024-06-05 17:09:51 -07:00
Protobuf Team Bot
e1bf1f048e Update rules_python to 0.28.0
Closes #15849

PiperOrigin-RevId: 640633756
2024-06-05 13:42:55 -07:00
Protobuf Team Bot
d7f032ad15 Move private definitions out of //bazel
This is needed to make protobuf/bazel package minimal for other proto rules.

Keep 4 public bzl files in upb/bazel. They end up under protobuf/bazel, and they are legitimately used by other repositories.

Move upb_proto_library_internal/* under bazel/private. Those are utilities used in the rules. Moving them one level deeper makes protobuf/bazel package clean for other rules.

Move build_defs.bzl and amalgamation under /upb/bazel. Those are utilities used in the build.

Move lua.BUILD and python* uner /python/dist. Those are used in the WORKSPACE dependency setup.

PiperOrigin-RevId: 621442236
2024-04-03 01:37:51 -07:00
Renamed from bazel/system_python.bzl (Browse further)