Skip to content

0.29.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Jan 20:20
· 443 commits to main since this release
1fd2d7d

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.29.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 = "d71d2c67e0bce986e1c5a7731b4693226867c45bfe0b7c5e0067228a536fc580",
    strip_prefix = "rules_python-0.29.0",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.29.0/rules_python-0.29.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 = "d71d2c67e0bce986e1c5a7731b4693226867c45bfe0b7c5e0067228a536fc580",
    strip_prefix = "rules_python-0.29.0/gazelle",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.29.0/rules_python-0.29.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

For a human friendly description, see the changelog at: https://github.com/bazelbuild/rules_python/blob/main/CHANGELOG.md

Below is a list of commits

  • fix: Fix per-file config interaction with one py_binary per main by @adzenith in #1664
  • refactor(pip_install): make the API surface of deps parsing smaller by @aignas in #1657
  • feat(toolchain, pip.parse): introduce a new '_host' toolchain repo by @aignas in #1644
  • feat(runfiles): Add static methods to Runfiles class to simplify interface by @UebelAndre in #1656
  • chore!: remove incompatible_generate_aliases and related flags by @aignas in #1567
  • chore/fix!: remove incompatible whl packaging flags by @aignas in #1569
  • feat: add interpreter_version_info to py_runtime by @mattem in #1671
  • build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /examples/pip_parse by @dependabot in #1686
  • build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /docs/sphinx by @dependabot in #1688
  • chore: remove MODULE.bazel.lock and ignore it by @aignas in #1680
  • build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /examples/bzlmod by @dependabot in #1687
  • fix: ignore_root_user_error should be taken from root module only by @shabanzd in #1662
  • refactor(internal): simplify and cleanup dependency resolution by @aignas in #1691
  • test: don't force bzlmod example to use Bazel 6.0 by @rickeylev in #1695
  • feat(config_settings): allow matching minor version of python_version flag by @dizzy57 in #1555
  • build(deps): bump certifi from 2022.12.7 to 2023.7.22 in /examples/bzlmod by @dependabot in #1379
  • internal(pystar): Only respect RULES_PYTHON_ENABLE_PYSTAR env var for Bazel 7+ by @rickeylev in #1698
  • fix(bzlmod): use X.Y select for the hub repo by @aignas in #1696
  • internal: update native deps and linkstamp API updates to Bazel rolling APIs by @rickeylev in #1697
  • refactor: broaden visibility and use list() instead of keys() by @rickeylev in #1704
  • test: workaround cyclic dependency bzlmod bug by disabling lockfiles by @rickeylev in #1705
  • docs: Update gazelle/README.md to fix package_name formatting by @michael-christen in #1712
  • chore: update changelog for 0.29.0 release by @rickeylev in #1714

New Contributors

Full Changelog: 0.28.0...0.29.0