-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python packaging idl and yamltests (#24140)
* Initial attempt at modularizing python packages in scripts * Put packages into separate directories with stutter * hopefully fix codegen path to idl * Fix issue with building yamltests_distribution * Hopefully fix CI * Hopefully fix CI * Hopefully fix CI * Restyle * Hopefully fix CI * Restyle * Remove directory repitition and prepend matter to py package names * Restyle * Restyle
- Loading branch information
Showing
108 changed files
with
808 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) 2022 Project CHIP 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 | ||
# | ||
# http://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. | ||
[metadata] | ||
name = matter_yamltests | ||
version = 0.0.1 | ||
|
||
[options] | ||
zip_safe = False |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Copyright (c) 2022 Project CHIP 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 | ||
# | ||
# http://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/build.gni") | ||
import("//build_overrides/chip.gni") | ||
|
||
import("//build_overrides/pigweed.gni") | ||
import("$dir_pw_build/python.gni") | ||
|
||
import("${chip_root}/scripts/py_matter_idl/files.gni") | ||
|
||
pw_python_package("matter_idl") { | ||
setup = [ | ||
"setup.py", | ||
"setup.cfg", | ||
"pyproject.toml", | ||
] | ||
inputs = matter_idl_generator_templates | ||
inputs += [ | ||
# Dependency grammar | ||
"matter_idl/matter_grammar.lark", | ||
|
||
# Unit test data | ||
"matter_idl/tests/available_tests.yaml", | ||
"matter_idl/tests/inputs/cluster_struct_attribute.matter", | ||
"matter_idl/tests/inputs/global_struct_attribute.matter", | ||
"matter_idl/tests/inputs/optional_argument.matter", | ||
"matter_idl/tests/inputs/several_clusters.matter", | ||
"matter_idl/tests/inputs/simple_attribute.matter", | ||
"matter_idl/tests/outputs/cluster_struct_attribute/bridge/BridgeClustersImpl.h", | ||
"matter_idl/tests/outputs/cluster_struct_attribute/bridge/BridgeGlobalStructs.h", | ||
"matter_idl/tests/outputs/cluster_struct_attribute/bridge/DemoClusterServer.h", | ||
"matter_idl/tests/outputs/cluster_struct_attribute/jni/DemoClusterClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/cluster_struct_attribute/jni/DemoClusterClient-InvokeSubscribeImpl.cpp", | ||
"matter_idl/tests/outputs/global_struct_attribute/bridge/BridgeClustersImpl.h", | ||
"matter_idl/tests/outputs/global_struct_attribute/bridge/BridgeGlobalStructs.h", | ||
"matter_idl/tests/outputs/global_struct_attribute/bridge/DemoClusterServer.h", | ||
"matter_idl/tests/outputs/global_struct_attribute/jni/DemoClusterClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/global_struct_attribute/jni/DemoClusterClient-InvokeSubscribeImpl.cpp", | ||
"matter_idl/tests/outputs/optional_argument/jni/MyClusterClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/optional_argument/jni/MyClusterClient-InvokeSubscribeImpl.cpp", | ||
"matter_idl/tests/outputs/several_clusters/bridge/BridgeClustersImpl.h", | ||
"matter_idl/tests/outputs/several_clusters/bridge/BridgeGlobalStructs.h", | ||
"matter_idl/tests/outputs/several_clusters/bridge/FirstServer.h", | ||
"matter_idl/tests/outputs/several_clusters/bridge/SecondServer.h", | ||
"matter_idl/tests/outputs/several_clusters/bridge/Third.h", | ||
"matter_idl/tests/outputs/several_clusters/bridge/ThirdServer.h", | ||
"matter_idl/tests/outputs/several_clusters/jni/FirstClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/several_clusters/jni/SecondClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/several_clusters/jni/ThirdClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/several_clusters/jni/FirstClient-InvokeSubscribeImpl.cpp", | ||
"matter_idl/tests/outputs/several_clusters/jni/SecondClient-InvokeSubscribeImpl.cpp", | ||
"matter_idl/tests/outputs/several_clusters/jni/ThirdClient-InvokeSubscribeImpl.cpp", | ||
"matter_idl/tests/outputs/simple_attribute/bridge/BridgeClustersImpl.h", | ||
"matter_idl/tests/outputs/simple_attribute/bridge/BridgeGlobalStructs.h", | ||
"matter_idl/tests/outputs/simple_attribute/bridge/MyClusterServer.h", | ||
"matter_idl/tests/outputs/simple_attribute/jni/MyClusterClient-ReadImpl.cpp", | ||
"matter_idl/tests/outputs/simple_attribute/jni/MyClusterClient-InvokeSubscribeImpl.cpp", | ||
] | ||
|
||
sources = matter_idl_generator_sources | ||
|
||
tests = [ | ||
"matter_idl/test_matter_idl_parser.py", | ||
"matter_idl/test_generators.py", | ||
"matter_idl/test_xml_parser.py", | ||
] | ||
|
||
# TODO: at a future time consider enabling all (* or missing) here to get | ||
# pylint checking these files | ||
static_analysis = [] | ||
} |
Oops, something went wrong.