diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e0bb7..a8e487a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. +## 0.68.0 (2024-08-21) + + +### Features + +* **deps:** Split python deps and registering toolchains +* **deps:** Update rules_python to 0.35.0 + ## 0.67.0 (2024-07-31) diff --git a/bazel/deps.bzl b/bazel/deps.bzl index 0fe6743..7587409 100644 --- a/bazel/deps.bzl +++ b/bazel/deps.bzl @@ -14,22 +14,24 @@ """Load definitions for use in WORKSPACE files.""" -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "maybe") -def python_deps(bazel_package): - """Load rules_python and register container-based python toolchain +def python_deps(): + """Load rules_python. Use python_register_toolchains to also resgister container-based python toolchain.""" + maybe( + http_archive, + name = "rules_python", + sha256 = "be04b635c7be4604be1ef20542e9870af3c49778ce841ee2d92fcb42f9d9516a", + strip_prefix = "rules_python-0.35.0", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.35.0/rules_python-0.35.0.tar.gz", + ) + +def python_register_toolchains(bazel_package): + """Register container-based python toolchain. Note: the bazel_package arg will depend on the import/submodule location in your workspace Args: bazel_package: repo-relative bazel package to builders/bazel/BUILD eg. "//builders/bazel" """ - http_archive( - name = "rules_python", - sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578", - strip_prefix = "rules_python-0.24.0", - urls = [ - "https://github.com/bazelbuild/rules_python/releases/download/0.24.0/rules_python-0.24.0.tar.gz", - ], - ) native.register_toolchains("{}:py_toolchain".format(bazel_package)) diff --git a/version.txt b/version.txt index 24c41e0..c657195 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.67.0 \ No newline at end of file +0.68.0 \ No newline at end of file