Files
carbon-lang/github_tools/MODULE.bazel
T
Chandler Carruth b344f3af12 Switch a few stragglers to uv and update python to 3.12 (#7296)
Not sure how these got missed when moving other things to `uv`, but this
should clean them up.

The bump to Python 3.12 is so that we can use `@override` with the
simple import from `typing`. This is needed by the newest versions of
`ty` to do type checking. Added the relevant `@override` annotations.

Assisted-by: Antigravity with Gemini
2026-06-03 05:34:44 +00:00

31 lines
1.0 KiB
Python

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""Bazel modules.
This is set up as a separate bazel repo from the main Carbon directory in order
to split up the pip dependency, which makes MODULE.bazel.lock
platform-dependent. We don't commit the MODULE.bazel.lock for github_tools
because it's low-value, and would shift the platform dependence costs.
"""
module(name = "github_tools")
bazel_dep(name = "rules_python", version = "0.27.1")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
python_version = "3.12",
)
use_repo(python, "python_versions")
# Create a central repo that knows about the pip dependencies.
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "py_deps",
python_version = "3.12",
requirements_lock = "//:requirements.txt",
)
use_repo(pip, "py_deps")