Add to your MODULE.bazel file: bazel_dep(name = "rules_python", version = "1.3.0") python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( python_version = "3.13", ) pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")...
This branch is 884 commits behind bazelbuild/rules_python:main.Folders and files Latest commit Cannot retrieve latest commit at this time. History571 Commits .bazelci fix: windows on ci (bazelbuild#911) Dec 2, 2022 .bcr ci: add debian11 to the matrix (bazelbuild#910) Dec 2, 2022 .ci...
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "rules_python", remote = "https://github.com/bazelbuild/rules_python.git", # NOT VALID! Replace this with a Git commit SHA. commit = "{HEAD}", ) # This call should always be present....
Bazel Python Rules. Contribute to bazelbuild/rules_python development by creating an account on GitHub.
pytest support in rules_python is not provided out of the box, see bazelbuild/rules_python#240 and bazelbuild/rules_python#464. Progress on the feature request seems to have stagnated so I've gone ahead and put at least something in the public domain until rules_python offers it. Features...
2 changes: 1 addition & 1 deletion 2 ...n/pip_install/extract_wheels/lib/bazel.py → python/pip_install/extract_wheels/bazel.py Original file line numberDiff line numberDiff line change @@ -6,7 +6,7 @@ from pathlib import Path from typing import Dict, Iterable, List, Optional, Set...
.bazelrc .bazelversion .git-blame-ignore-revs .gitattributes .gitignore .pre-commit-config.yaml AUTHORS BUILD.bazel CONTRIBUTING.md CONTRIBUTORS DEVELOPING.md LICENSE MODULE.bazel README.md WORKSPACE go.mod go.sum internal_deps.bzl internal_setup.bzl ...
There are some use cases that folks want to cover here. They are discussed in this Slack thread. The high-level summary is: Users want to run the exact same interpreter that Bazel is running to mi...
aspect_rules_py is a layer on top of rules_python, the standard Python ruleset hosted at https://github.com/bazelbuild/rules_python. The lower layer of rules_python is currently reused, dealing with the toolchain and dependencies. However, this ruleset introduces a new implementation of py_li...
Running tests is particularly easy thanks to Bazel, simply run: bazel test //... And it will run all the tests it can find. The first time you do this, it will probably take long time because various dependencies will need to be downloaded and setup. Subsequent runs will be faster, ...