Only lint/test Python libraries from this project
Adjusts the Python build configuration slightly so downstream Pigweed
Python libraries are not linted/tested. Now, only the Python code that
lives in the sample project is linted/tested by the build.
Bug: b/300320741
Change-Id: I0bcd836cfa826d61541c0308f10ffeb92d1efe42
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/sample_project/+/186199
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index af1c7eb..931b0b2 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -69,18 +69,14 @@
deps = [ ":run_tests(${_testing_toolchain})" ]
}
-# This group is built during bootstrap to setup the interactive Python
-# environment.
-pw_python_group("python") {
- python_deps = [
- # Generate and pip install _all_python_packages
- ":pip_install_sample_project_tools",
- ]
-}
-
# In-tree Python packages
_sample_project_python_packages = [ "//tools:tools" ]
+# This group contains all the python packages that should be tested and linted.
+pw_python_group("python") {
+ python_deps = _sample_project_python_packages
+}
+
# Pigweed Python packages to include
_pigweed_python_packages = [
"$dir_pw_env_setup:core_pigweed_python_packages",
diff --git a/pigweed.json b/pigweed.json
index 022c7e8..4491c88 100644
--- a/pigweed.json
+++ b/pigweed.json
@@ -59,7 +59,7 @@
"virtualenv": {
"gn_root": ".",
"gn_targets": [
- ":python.install"
+ ":pip_install_sample_project_tools.install"
]
},
"required_submodules": [