| commit | 1090b6cbf3a1ce2261e8ab2ef2f61df072245dbf | [log] [tgz] |
|---|---|---|
| author | Richard Levasseur <richardlev@gmail.com> | Sun Dec 14 17:29:41 2025 -0800 |
| committer | GitHub <noreply@github.com> | Mon Dec 15 01:29:41 2025 +0000 |
| tree | ce292166d93c4db6c971971881d9bacc2bbd5d00 | |
| parent | b8d2e9b6f6286bf9a6f295bca532fb1504d3c61d [diff] |
fix: allow pypi packages with empty data attribute (#3463) An empty glob under site-packages (after excluding code and pyi files) is a bit strange, but not actually incorrect. If such a situation occurs, it would cause a failure because Bazel has since changed to disallow empty globs by default. To fix, just set allow_empty=True on the data glob.
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.