Skip to content

Commit 91a9d6b

Browse files
committed
Creating Namespace and Datatype parsers using XML and spec_parsing.py code from Cecille's PR #:
Namespace parser: - Created new TestSpecParsingNamespace.py unit test to test namespaces - Updated tests.yaml to include TestSpecParsingNamespace.py - Updated test_metadata.yaml to include TestSpecParsingNamespace.py and reasoning - Updated matter_testing support module to include new NamespacePathLocation function for Namespace file locations - Updated spec_parsing to include new functions build_xml_namespaces and parse_namespace, as well as XmlNamespaces and XmlTags dataclasses Datatype parser: - spec_parsing module changes: -- Enhanced XmlDataTypeComponent with fields for docs, types, and constraints -- Added support for detecting optional and nullable fields in XML -- Improved constraint parsing for min/max values and attribute references, basically used for dataTypes -- Improved some error reporting with specific diagnostic messages when parsing dataTypes - TestSpecParsingDataType unit test module: -- Added comprehensive test coverage using Matter 1.4.1 cluster XML files -- Enhanced test output with detailed statistics on XML field usage -- Added error reporting with specific diagnostic messages Additionally: - Removing unneccessary additions in scripts/tests/requirements.txt file - Adding change to scripts/setup/constraints.txt as was needed to build env Updates Cecille's PR project-chip#37527
1 parent c48da7d commit 91a9d6b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/setup/constraints.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,5 @@ setuptools==68.0.0
291291

292292
# Higher versions depend on proto-plus, which break
293293
# nanopb code generation (due to name conflict of the 'proto' module)
294-
google-api-core==2.17.0
294+
# google-api-core==2.17.0
295+
google-api-core==2.11.0

scripts/tests/requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ mypy==1.10.1
88
pyyaml
99
tabulate
1010
websockets
11-
gobject-introspection
12-
libgirepository1.0-dev

0 commit comments

Comments
 (0)