Tags: lpulley/rules_python
Tags
feat: Support specifying multiple download URLs in tool_versions. (ba… …zel-contrib#1145) The interface of `repository_ctx.download` and `repository_ctx.download_and_extract` supports string lists as well as strings as the value of the `url` argument. This is the ultimate destination of the `url` attribute in the `tool_versions` dictionary, so it makes sense for it to support lists as well. It is often useful to provide multiple download URLs, e.g. when vendoring deps through a mirror (to guard against issues like [git archive checksums changing](https://github.blog/changelog/2023-01-30-git-archive-checksums-may-change/) while still keeping the canonical download URL) or in an airgapped setting (to support internal URLs alongside external URLs). This is also pretty common around Bazel repository rules that download things, e.g. [http_archive](https://bazel.build/rules/lib/repo/http#http_archive-urls), so it can be expected to work with `tool_versions` too.
test(core): Add analysis tests for base Python rules. (bazel-contrib#… …1102) This is to provide some regression tests for the Starlark rewrite. These tests are approximately the same as Bazel's Java-implemented tests. Work towards bazel-contrib#1069
Only set `py_runtime.coverage_tool` for Bazel 6 and higher. (bazel-co… …ntrib#1061) Only set `py_runtime.coverage_tool` for Bazel 6 and higher. Avoid setting it in earlier version by checking `native.bazel_version` in the repository rule and disabling it if less than Bazel 6 is detected. A warning is also printed if coverage was requested, but the Bazel version check is ignoring it. Fixes bazel-contrib#1056
chore: revert publish wheel on releases (bazel-contrib#1022) our 0.17 release is stuck on this step. Partially reverts bazel-contrib#995
fix(release): use correct GH workflows syntax (bazel-contrib#1020) See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
feat: produce publishable distribution archives (bazel-contrib#1019) * feat: produce publishable distribution archives Fixes bazel-contrib#741 * fix: give unique names to dist/ folders by default
python_repository: Exclude pycache files (bazel-contrib#907) python_repository: Exclude pycache files when root Some of these are missing from the upstream python distributions, and when they are, if running as root, this causes the files to be generated the first time their associated .py file is evaluated, causing analysis and execution cache misses due to extra files matching the repository glob.
Refactor and separate concerns of external python package handling co… …de (bazel-contrib#953)
PreviousNext