Skip to content

0.34.0

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Jul 05:12
· 235 commits to main since this release
084b877

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.34.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 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618",
    strip_prefix = "rules_python-0.34.0",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.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 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618",
    strip_prefix = "rules_python-0.34.0/gazelle",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.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

  • fix: Remove transitive legacy struct provider usage by @fmeum in #1957
  • docs: fix doc for how to use new bootstrap impl by @rickeylev in #1959
  • chore: various cleanups to make google imports/patching easier by @rickeylev in #1958
  • build(deps): bump idna from 3.4 to 3.7 in /tools/publish by @dependabot in #1849
  • build(deps): bump cryptography from 41.0.6 to 42.0.4 in /tools/publish by @dependabot in #1772
  • ci: add a custom dependabot file by @aignas in #1960
  • build(deps): bump pygments from 2.17.2 to 2.18.0 in /docs/sphinx by @dependabot in #1966
  • build(deps): bump actions/checkout from 2 to 4 by @dependabot in #1961
  • build(deps): bump actions/stale from 3 to 9 by @dependabot in #1962
  • build(deps): bump markupsafe from 2.1.3 to 2.1.5 in /docs/sphinx by @dependabot in #1964
  • build(deps): bump softprops/action-gh-release from 1 to 2 by @dependabot in #1963
  • build(deps): bump typing-extensions from 4.9.0 to 4.12.2 in /docs/sphinx by @dependabot in #1965
  • fix(bzlmod): use same target in requirement('foo') and all_requirements by @jvolkman in #1973
  • refactor(bzlmod): generate fewer targets for pip_config_settings by @aignas in #1974
  • chore: access ctx.version_file to inform Bazel stamping info is needed by @rickeylev in #1952
  • build(deps): bump urllib3 from 1.26.18 to 1.26.19 in /tools/publish by @dependabot in #1981
  • build(deps): bump babel from 2.13.1 to 2.15.0 in /docs/sphinx by @dependabot in #1983
  • docs: Fix a few typos in docs and function names by @rickeylev in #1978
  • fix: enable auto exec groups using attribute by @rickeylev in #1986
  • docs: Remove proposals by @groodt in #1990
  • chore: use ** globs instead of explcit BUILD.bazel reference in distribution filegroups by @rickeylev in #1991
  • refactor(internal): allow setting linking mode for internal cc_details APIs by @rickeylev in #1982
  • fix(toolchain): disable exec toolchain by default by @aignas in #1968
  • fix: Resolve the test manifest with the runfiles lib. by @lberki in #1993
  • fix: allow creating PyRuntimeInfo without specifying interpreter_version_info by @rickeylev in #1992
  • doc: Changelog updates for 0.33.2 by @aignas in #1995
  • refactor!: Remove entrypoint by @groodt in #1987
  • refactor: lookup exec interpreter using toolchain resolution by @rickeylev in #1997
  • fix: Add configure=True for internal_config_repo by @meteorcloudy in #1998
  • chore: remove dead code from whl_target_platforms by @aignas in #2001
  • fix(bzlmod): pass only non-default values to whl_library by @aignas in #2002
  • refactor: move PyPI related extension and repository_rule setup to its own dir by @aignas in #2003
  • docs: Removes dead link after docs were migrated to sphinx by @groodt in #2005
  • refactor: Remove unused template substitution by @groodt in #2004
  • refactor: move the remaining PyPI related functions to private/pypi by @aignas in #2006
  • chore: adjust CODEOWNERS by @aignas in #2008
  • fix: make first default output the executable again by @rickeylev in #2010
  • refactor: call a function to define internal pypi flags instead of listcomp by @rickeylev in #2011
  • chore: bump sphinxdocs deps by @aignas in #2013
  • fix(whl_library): correctly handle arch-specific deps in wheels by @aignas in #2007
  • fix(multiplatform): Add i386 Linux support by @nicbadiu in #1999
  • fix: Fix broken logger statement in parse_requirements.bzl by @mark-thm in #2017
  • feat: add runtime_env toolchain suite to replace "autodetecting" toolchain by @rickeylev in #2018
  • fix(bzlmod): only expose common packages via the requirements constants by @aignas in #1955
  • feat(gazelle): Add directives for label format & normalisation by @wingsofovnia in #1976
  • chore: Remove unused renovate.json by @groodt in #2021
  • (chore): Remove the extra indirection and bzlmod folder by @groodt in #2022

New Contributors

Full Changelog: 0.33.1...0.34.0