commit | a2773de53c02ccaf242ed52f706a08a7f61b9186 | [log] [tgz] |
---|---|---|
author | kcon-stackav <168012427+kcon-stackav@users.noreply.github.com> | Mon Oct 07 19:33:26 2024 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 08 02:33:26 2024 +0000 |
tree | 1805ae0be32d22518624a06208de8c5f0af45115 | |
parent | d85a3925c5d32783b4ebbd652ce7acda109fa27f [diff] |
fix(py_wheel): Quote wheel RECORD file entry elements if needed (#2269) The `RECORD` file written when wheels are patched using `pip.override()` is not quoting filenames as needed, so wheels that (unfortunately) include files whose name contain commas would be written in such a way that https://pypi.org/project/installer/ would fail to parse them, resulting in an error like: ``` installer.records.InvalidRecordEntry: Row Index 360: expected 3 elements, got 5 ``` This PR fixes that by using `csv` to read and write `RECORD` file entries which takes care of quoting elements of record entries as needed. See PEP376 for more info about the `RECORD` file format here: https://peps.python.org/pep-0376/#record Fixes #2261
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.