Skip to content

v0.8.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Sep 15:51
· 21 commits to main since this release
7a9e4b2

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "0.8.0")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "971e48f44e3a71430ddae340c262a71bccc604e4c43c5be827b8bb925ed43d19",
    strip_prefix = "rules_py-0.8.0",
    url = "https://github.com/aspect-build/rules_py/releases/download/v0.8.0/rules_py-v0.8.0.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")

rules_py_dependencies()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • chore(deps): update dependency urllib3 to v1.26.19 [security] by @renovate in #352
  • chore(deps): update softprops/action-gh-release action to v2 by @renovate in #322
  • chore(deps): update dependency bazel_gazelle to v0.36.0 by @renovate in #326
  • chore(deps): update dependency aspect_bazel_lib to v1.42.2 by @renovate in #321
  • chore(deps): update dependency typing-extensions to v4.12.2 by @renovate in #327
  • chore(deps): update dependency sqlparse to v0.5.1 [security] by @renovate in #330
  • chore: add smoke test to e2e/use_release by @mattem in #370
  • chore(deps): update dependency certifi to v2024.7.4 [security] by @renovate in #364
  • chore(deps): update dependency django to v4.2.14 [security] by @renovate in #366
  • chore(deps): update dependency django to v4.2.15 [security] by @renovate in #378
  • fix: mark a 'testing only' python toolchain as dev_dep by @alexeagle in #385
  • chore(deps): update dependency aspect_bazel_lib to v1.42.3 by @renovate in #379
  • feat: implement --build_python_zip pex by @thesayyn in #324

Full Changelog: v0.7.4...v0.8.0