| commit | 779623cef5cf17cb05df6204df13557999f4f24c | [log] [tgz] |
|---|---|---|
| author | Richard Levasseur <richardlev@gmail.com> | Sat Jan 17 16:29:25 2026 -0800 |
| committer | GitHub <noreply@github.com> | Sun Jan 18 00:29:25 2026 +0000 |
| tree | 252ae0bbb979c2e213ee66c1b862340c2e20d95f | |
| parent | c6acbfcef924c576d55ad7fa9ee82625763504dd [diff] |
chore: make builtin build_python_zip flag optional for tests (bazel 10 compatibility) (#3507) Starting in bazel 10, the build_python_zip flag is removed. This means using the flag in e.g. transitions no longer works, which breaks some of the tests that set the flag for testing. To fix, don't set the flags or add them to transitions when running under bazel 10. Fixes https://github.com/bazel-contrib/rules_python/issues/3496
This repository is the home of the core Python rules -- py_library, py_binary, py_test, py_proto_library, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.