| commit | 9dcbabb3fafe847291850ff9a249e46f6fca5ef4 | [log] [tgz] |
|---|---|---|
| author | James Sharpe <mail@jsharpe.net> | Wed Feb 11 00:32:38 2026 +0000 |
| committer | GitHub <noreply@github.com> | Wed Feb 11 00:32:38 2026 +0000 |
| tree | b834b57e6b3183a172e75dbde64d032ec7e51bdf | |
| parent | 0f4ff60a1727300e1bace6233e566076736e9f15 [diff] |
fix(pip): preserve PEP 508 URL-based requirements when extract_url_srcs=False (#3582) pip_parse (via pip_repository) passes extract_url_srcs=False to parse_requirements. The _package_srcs() function silently dropped PEP 508 URL-based requirements (pkg @ https://...) in this mode because _add_dists() returns can_fallback=False for URL requirements, causing them to fall through to the `continue` statement. Fix the elif condition to also accept the case where extract_url_srcs is False but a valid URL dist exists, falling back to pip to handle the URL requirement directly. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This repository is the home of the core Python rules -- py_library, py_binary, py_test, 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.