• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15import("//build_overrides/pigweed.gni")
16
17import("$dir_pw_build/python.gni")
18import("$dir_pw_build/python_action_test.gni")
19
20pw_python_package("py") {
21  setup = [
22    "pyproject.toml",
23    "setup.cfg",
24  ]
25  sources = [
26    "pw_cli/__init__.py",
27    "pw_cli/__main__.py",
28    "pw_cli/aliases.py",
29    "pw_cli/argument_types.py",
30    "pw_cli/arguments.py",
31    "pw_cli/branding.py",
32    "pw_cli/color.py",
33    "pw_cli/decorators.py",
34    "pw_cli/env.py",
35    "pw_cli/envparse.py",
36    "pw_cli/file_filter.py",
37    "pw_cli/git_repo.py",
38    "pw_cli/log.py",
39    "pw_cli/pigweed_aliases.py",
40    "pw_cli/plugins.py",
41    "pw_cli/plural.py",
42    "pw_cli/process.py",
43    "pw_cli/pw_command_plugins.py",
44    "pw_cli/requires.py",
45    "pw_cli/shell_completion/__init__.py",
46    "pw_cli/shell_completion/fish/__init__.py",
47    "pw_cli/shell_completion/zsh/__init__.py",
48    "pw_cli/shell_completion/zsh/pw/__init__.py",
49    "pw_cli/shell_completion/zsh/pw_build/__init__.py",
50    "pw_cli/status_reporter.py",
51    "pw_cli/tool_runner.py",
52  ]
53  tests = [
54    "decorators_test.py",
55    "envparse_test.py",
56    "git_repo_test.py",
57    "file_filter_test.py",
58    "plugins_test.py",
59    "plural_test.py",
60    "tool_runner_test.py",
61  ]
62  python_deps = [ "$dir_pw_env_setup/py" ]
63  pylintrc = "$dir_pigweed/.pylintrc"
64  mypy_ini = "$dir_pigweed/.mypy.ini"
65  inputs = [
66    "pw_cli/shell_completion/common.bash",
67    "pw_cli/shell_completion/fish/pw.fish",
68    "pw_cli/shell_completion/pw.bash",
69    "pw_cli/shell_completion/pw.fish",
70    "pw_cli/shell_completion/pw.zsh",
71    "pw_cli/shell_completion/pw_build.bash",
72    "pw_cli/shell_completion/pw_build.zsh",
73    "pw_cli/shell_completion/zsh/pw/_pw",
74    "pw_cli/shell_completion/zsh/pw_build/_pw_build",
75  ]
76}
77
78pw_python_action_test("process_integration_test") {
79  sources = [ "process_integration_test.py" ]
80  python_deps = [ ":py" ]
81  tags = [ "integration" ]
82}
83