| commit | 20ac9bc5b185cf7944727a60d65fd870de90ebef | [log] [tgz] |
|---|---|---|
| author | Richard Levasseur <rlevasseur@google.com> | Sat Mar 15 17:30:39 2025 -0700 |
| committer | GitHub <noreply@github.com> | Sun Mar 16 00:30:39 2025 +0000 |
| tree | 5b7fdea06e997d0ed8dfa0150aaa901221b788c6 | |
| parent | c0b5075df0e8f61f83bf55dcbaa5c2912d248c70 [diff] |
feat(rules): allow deriving custom rules from core rules (#2666) This exposes public functions for creating builders for py_binary, py_test, and py_library. It also adds some docs and examples for how to use them. I'm calling this a "volatile" API -- it's public, but the pieces that comprise it (e.g. all the rule args, attributes, the attribute args, etc) are likely to change in various ways, and not all modifications to them can be supported in a backward compatible way. Hence the "volatile" term: * hold it gently and its fine * shake it a bit and its probably fine * shake it moderately and something may or may not blow up * shake it a lot and something will certainly blow up. Work towards https://github.com/bazelbuild/rules_python/issues/1647 --------- Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
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.