commit | 25a0a472013ef970880579c6794cbf3770bb55dd | [log] [tgz] |
---|---|---|
author | Mihai Dusmanu <mihai.dusmanu@gmail.com> | Fri Jul 05 08:35:38 2024 +0200 |
committer | GitHub <noreply@github.com> | Fri Jul 05 06:35:38 2024 +0000 |
tree | ac05a413f19a9afa9a9d34b11ffdb05ad1718b9a | |
parent | 2cfbe731332426bbbed31f4e02140290bbf86d16 [diff] |
fix: pypi parse_simpleapi_html.bzl is robust to metadata containing ">" sign (#2031) This PR modifies the logic for finding the end of the of the <a> tag metadata attributes in the pypi `parse_simpleapi_html` function. This was discovered after investigation of the following error: ``` Error in repository_rule: invalid user-provided repo name 'pypi_311_=2_7,!=3_0_*,!=3_1_*,!=3_2_*">six_py2_none_any_8abb2f1d': valid names may contain only A-Z, a-z, 0-9, '-', '_', '.', and must start with a letter ``` which was traced back to the to a `data-requires-python` attribute containing a `>` sign (instead of `>`) in the Azure Artifacts pypi feed, e.g.: `<a href="https://microsoft.pkgs.visualstudio.com/REDACTED_URL/six-1.16.0-py2.py3-none-any.whl#sha256=8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" data-requires-python=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*">six-1.16.0-py2.py3-none-any.whl</a><br/>` --------- Co-authored-by: Mihai Dusmanu <mihaidusmanu@microsoft.com> Co-authored-by: aignas <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.