From dff4b22635acb2718cc50509c2799f0b2b2184ec Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 27 Aug 2023 06:03:14 +0200 Subject: [PATCH] Use newer rules_py (other libraries is bringing it in) --- WORKSPACE | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index cb2de9a3..8967cb39 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,5 +1,52 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +# ------------------------------------------------------------------------------ +# rules_py +# ------------------------------------------------------------------------------ +http_archive( + name = "aspect_rules_py", + sha256 = "d87463035d7df79b79e9a03247c463bda3623f26b7a24dd1ebee9ced2be38f4e", + strip_prefix = "rules_py-0.3.0", + url = "https://github.com/aspect-build/rules_py/releases/download/v0.3.0/rules_py-v0.3.0.tar.gz", +) + +http_archive( + name = "rules_python", + patch_cmds = ["""\ +cat >> python/BUILD.bazel <