aboutsummaryrefslogtreecommitdiff
path: root/pw_arduino_build
diff options
context:
space:
mode:
authorTed Pudlik <tpudlik@google.com>2023-03-23 16:24:03 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-23 16:24:03 +0000
commitc073c947fba10523f42e6bb4634ec5e1cf538e59 (patch)
tree97ee3c97832184f2776b60d5f11975f59fad6330 /pw_arduino_build
parent0c151d81febcbc8b27233b13a95123e6ae89e844 (diff)
downloadpigweed-c073c947fba10523f42e6bb4634ec5e1cf538e59.tar.gz
bazel: Upgrade nanopb and rules_python
Upgrade to the latest nanopb instead of relying on an old off-branch commit (probably a squashed commit from https://github.com/nanopb/nanopb/pull/500 being reviewed). Upgrade rules_python to v0.8.0 which allows specifying what version of Python to use with python_register_toolchains. https://github.com/bazelbuild/rules_python/releases/tag/0.8.0 This will lock bazel into Python 3.10 for now and unblock using Python 3.11 for upstream Pigweed. For now this CL specifys the constraint.list as the pip_parse requirements file. This will likely change once we fully upgrade to the latest rules_python (0.19.0). Many BUILD.bazel were updated to add in missing 3p pip deps. For example this is a dep on parameterized: "@python_packages_parameterized//:pkg" As aside effect, the pw_env_setup bootstraped virtualenv is no longer used. This broke a few Python imports of py_proto_library targets. Manual tags and TODO(b/241456982) comments were added in each case. Bug: b/259121920 Change-Id: I3aaabbbd10b925192bbceb882112dc4ebe3fe0df Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/133430 Reviewed-by: Erik Gilling <konkers@google.com> Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Diffstat (limited to 'pw_arduino_build')
-rw-r--r--pw_arduino_build/py/BUILD.bazel2
1 files changed, 2 insertions, 0 deletions
diff --git a/pw_arduino_build/py/BUILD.bazel b/pw_arduino_build/py/BUILD.bazel
index d69fbb0e0..4f449563b 100644
--- a/pw_arduino_build/py/BUILD.bazel
+++ b/pw_arduino_build/py/BUILD.bazel
@@ -43,6 +43,7 @@ py_test(
],
deps = [
":pw_arduino_build",
+ "@python_packages_parameterized//:pkg",
],
)
@@ -54,5 +55,6 @@ py_test(
],
deps = [
":pw_arduino_build",
+ "@python_packages_parameterized//:pkg",
],
)