diff options
author | Wyatt Hepler <hepler@google.com> | 2020-10-22 08:32:13 -0700 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2020-10-22 21:12:11 +0000 |
commit | 01a85d6b0edfd976203920607f62ee338f3599b8 (patch) | |
tree | 5d1bb693af8fbaca47da3d484bdf51773f292ebe /pw_cli | |
parent | 0b6a5021623988f7720c266a5344de5aff0a6618 (diff) | |
download | pigweed-01a85d6b0edfd976203920607f62ee338f3599b8.tar.gz |
Python: Generate BUILD.gn files for Python packages
- Generate BUILD.gn files with pw_python_packages using
pw_build.generate_python_package_gn.
- Add the new pw_python_package targets to the default build.
- Remove the unncecessary "python_packages" group.
- Fix some Windows path issues in Python tests.
Change-Id: I50c9b1f650652554f0836cbdc1781a00ec7e8e56
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/22203
Commit-Queue: Wyatt Hepler <hepler@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
Diffstat (limited to 'pw_cli')
-rw-r--r-- | pw_cli/py/BUILD.gn | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pw_cli/py/BUILD.gn b/pw_cli/py/BUILD.gn new file mode 100644 index 000000000..46e803e16 --- /dev/null +++ b/pw_cli/py/BUILD.gn @@ -0,0 +1,34 @@ +# Copyright 2020 The Pigweed Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. + +import("//build_overrides/pigweed.gni") + +import("$dir_pw_build/python.gni") + +pw_python_package("py") { + setup = [ "setup.py" ] + sources = [ + "pw_cli/__init__.py", + "pw_cli/__main__.py", + "pw_cli/arguments.py", + "pw_cli/branding.py", + "pw_cli/color.py", + "pw_cli/env.py", + "pw_cli/envparse.py", + "pw_cli/envparse_test.py", + "pw_cli/log.py", + "pw_cli/plugins.py", + "pw_cli/process.py", + ] +} |