| commit | 9f291c3c3c2860159b1942ed233f5a71cf29dc94 | [log] [tgz] |
|---|---|---|
| author | Richard Levasseur <rlevasseur@google.com> | Mon Jun 24 16:35:58 2024 -0700 |
| committer | GitHub <noreply@github.com> | Mon Jun 24 23:35:58 2024 +0000 |
| tree | 8fb5bea0129a6ef233838b6c8bc72fd4dc0b73c4 | |
| parent | 5b2564a5bc06ec9724fb59f6bee0c74b7f16118d [diff] |
refactor: call a function to define internal pypi flags instead of listcomp (#2011) This is updated so tooling can more automatically process the files. In particular, it helps tools, like buildozer, process the files, which makes it easier to import the code into Google. This is because there is a named target that buildozer can be told to process, whereas, with a list comprehension, it's an arbitrary chunk of code that has to be patched, without an identifiable label.
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.