• 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")
18
19pw_python_package("py") {
20  setup = [
21    "pyproject.toml",
22    "setup.cfg",
23    "setup.py",
24  ]
25  sources = [
26    "pw_build/__init__.py",
27    "pw_build/build_recipe.py",
28    "pw_build/collect_wheels.py",
29    "pw_build/copy_from_cipd.py",
30    "pw_build/create_gn_venv.py",
31    "pw_build/create_python_tree.py",
32    "pw_build/error.py",
33    "pw_build/exec.py",
34    "pw_build/file_prefix_map.py",
35    "pw_build/generate_cc_blob_library.py",
36    "pw_build/generate_modules_lists.py",
37    "pw_build/generate_python_package.py",
38    "pw_build/generate_python_package_gn.py",
39    "pw_build/generate_python_requirements.py",
40    "pw_build/generated_tests.py",
41    "pw_build/gn_resolver.py",
42    "pw_build/host_tool.py",
43    "pw_build/mirror_tree.py",
44    "pw_build/nop.py",
45    "pw_build/pip_install_python_deps.py",
46    "pw_build/project_builder.py",
47    "pw_build/project_builder_argparse.py",
48    "pw_build/project_builder_context.py",
49    "pw_build/project_builder_prefs.py",
50    "pw_build/python_package.py",
51    "pw_build/python_runner.py",
52    "pw_build/python_wheels.py",
53    "pw_build/wrap_ninja.py",
54    "pw_build/zip.py",
55  ]
56  tests = [
57    "build_recipe_test.py",
58    "create_python_tree_test.py",
59    "file_prefix_map_test.py",
60    "generate_cc_blob_library_test.py",
61    "project_builder_prefs_test.py",
62    "python_runner_test.py",
63    "zip_test.py",
64  ]
65  python_deps = [
66    "$dir_pw_cli/py",
67    "$dir_pw_env_setup/py",
68    "$dir_pw_presubmit/py",
69  ]
70  pylintrc = "$dir_pigweed/.pylintrc"
71  mypy_ini = "$dir_pigweed/.mypy.ini"
72}
73