Skip to content

Tags: lpulley/rules_python

Tags

0.21.0

Toggle 0.21.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

0.20.0

Toggle 0.20.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: Include filename when parsing imports for gazelle (bazel-contrib…

…#1133)

0.19.0

Toggle 0.19.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

0.18.1

Toggle 0.18.1's commit message
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

0.18.0

Toggle 0.18.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(release): wrong replacement for $(location) during code review (b…

…azel-contrib#1051)

0.17.3

Toggle 0.17.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
chore: revert publish wheel on releases (bazel-contrib#1022)

our 0.17 release is stuck on this step.
Partially reverts bazel-contrib#995

0.17.2

Toggle 0.17.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

0.17.1

Toggle 0.17.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

0.17.0

Toggle 0.17.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

0.16.2

Toggle 0.16.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Refactor and separate concerns of external python package handling co…

…de (bazel-contrib#953)