Skip to content

0.37.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Oct 18:41
· 144 commits to main since this release
0c0492d

Using Bzlmod with Bazel 6

NOTE: bzlmod support is still beta. APIs subject to change.

Add to your MODULE.bazel file:

bazel_dep(name = "rules_python", version = "0.37.0")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

pip.parse(
    hub_name = "pip",
    python_version = "3.11",
    requirements_lock = "//:requirements_lock.txt",
)

use_repo(pip, "pip")

Using WORKSPACE

Paste this snippet into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_python",
    sha256 = "0cc05ddb27614baecace068986931e2a6e9f69114e6115fc5dc58250faf56e0f",
    strip_prefix = "rules_python-0.37.0",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.37.0/rules_python-0.37.0.tar.gz",
)

load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()

Gazelle plugin

Paste this snippet into your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_python_gazelle_plugin",
    sha256 = "0cc05ddb27614baecace068986931e2a6e9f69114e6115fc5dc58250faf56e0f",
    strip_prefix = "rules_python-0.37.0/gazelle",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.37.0/rules_python-0.37.0.tar.gz",
)

# To compile the rules_python gazelle extension from source,
# we must fetch some third-party go dependencies that it uses.

load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps")

_py_gazelle_deps()

What's Changed

  • refactor: move PyInfo into separate file by @rickeylev in #2249
  • Remove absolute path from libpython.dylib by @keith in #2256
  • chore: don't add migration tag if Starlark implementation is enabled by @rickeylev in #2257
  • fix(whl_filegroup): Make RECORD from wheel available by @TimotheusBachinger in #2238
  • refactor: add builders to make creating PyInfo/depset/runfiles easier by @rickeylev in #2251
  • feat: add py_wheel.compress to control using compression by @keith in #2260
  • chore: delete stale bot by @alexeagle in #2264
  • fix(bzlmod): correctly wire the extra_pip_args by @aignas in #2258
  • build(deps): bump idna from 3.8 to 3.10 in /docs by @dependabot in #2227
  • feat(toolchains): default py_runtime.implementation_name to cpython by @rickeylev in #2272
  • fix(bzlmod): set the default_version to the python_version flag by @aignas in #2253
  • feat(toolchains): expose the //python/config_settings:python_version_major_minor by @aignas in #2275
  • feat: add public API for analysis-phase logic by @rickeylev in #2252
  • fix(py_wheel): Quote wheel RECORD file entry elements if needed by @kcon-stackav in #2269
  • chore: support removal of builtin providers by @comius in #2274
  • fix(whl_library): avoid excessive report_progress() messages by @mattnworb in #2280
  • docs: clarify that the runtime env toolchains don't provide build info by @rickeylev in #2279
  • feat(toolchain): add python 3.13.0, updated other versions and bumped coverage to 7.6.1 by @vfdev-5 in #2265
  • fix: pass kwargs env to both update and test targets by @lpulley in #2277
  • build(deps): bump zipp from 3.17.0 to 3.19.1 in /examples/pip_parse by @dependabot in #2266
  • build(deps): bump idna from 3.7 to 3.10 in /tools/publish by @dependabot in #2228
  • build(deps): bump docutils from 0.19 to 0.21.2 in /tools/publish by @dependabot in #2159
  • build(deps): bump certifi from 2024.7.4 to 2024.8.30 in /tools/publish by @dependabot in #2211
  • fix(bzlmod): let workspace-invoked python_register_toolchains to register toolchains by @rickeylev in #2289
  • build(deps): bump certifi from 2023.7.22 to 2024.7.4 in /examples/bzlmod_build_file_generation by @dependabot in #2287
  • build(deps): bump certifi from 2023.7.22 to 2024.7.4 in /examples/pip_parse by @dependabot in #2291
  • feat(bzlmod): enable download_only for experimental_index_url by @aignas in #2290
  • fix(precompiling)!: make binary-level precompile opt-in/opt-opt work by @rickeylev in #2243
  • fix(pip): skip wheel patching with empty patches by @keith in #2294
  • build(deps): bump urllib3 from 2.2.2 to 2.2.3 in /docs by @dependabot in #2301
  • build(deps): bump markupsafe from 2.1.5 to 3.0.1 in /docs by @dependabot in #2302
  • build(deps): bump sphinx-rtd-theme from 2.0.0 to 3.0.1 in /docs by @dependabot in #2303
  • fix(sphinxdocs),deps: allow using sphinx_stardoc with bzlmod; add stardoc 0.6.2 as dependency by @rickeylev in #2295
  • chore: move files out of private/common by @rickeylev in #2285
  • fix(precompiling): only add pyc to default outputs if precompiling explicitly enabled for target by @rickeylev in #2307
  • chore: use rules_shell by @aignas in #2305
  • sphinxdocs: add typedef directive for documenting user-defined types by @rickeylev in #2300
  • chore: enable exec tools toolchain by default by @rickeylev in #2308
  • docs: add stubs so Bazel docs link to a valid file by @rickeylev in #2309
  • sphinxdocs: fix rendering of args in directives with empty doc by @rickeylev in #2313
  • docs: fix rendering of python extension by @rickeylev in #2312
  • chore: update changelog for 0.37.0 by @rickeylev in #2311

New Contributors

Full Changelog: 0.36.0...0.37.0