Skip to content

Commit c5560d5

Browse files
committed
Revert "[python] mark chip cluster library as type checking ready"
This reverts commit dac7abf.
1 parent ac1e5a1 commit c5560d5

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

build/chip/python_wheel.gni

-7
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,11 @@ template("chip_python_wheel_action") {
5252
_py_scripts = []
5353
}
5454

55-
if (defined(invoker.py_typed_packages)) {
56-
_py_typed_packages = py_typed_packages
57-
} else {
58-
_py_typed_packages = []
59-
}
60-
6155
_py_manifest = {
6256
files = _py_manifest_files_rebased
6357
packages = py_packages
6458
scripts = _py_scripts
6559
package_reqs = py_package_reqs
66-
typed_packages = _py_typed_packages
6760
}
6861

6962
write_file(_py_manifest_file, _py_manifest, "json")

src/controller/python/BUILD.gn

-3
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ chip_python_wheel_action("chip-clusters") {
321321
"chip/clusters/TestObjects.py",
322322
"chip/clusters/Types.py",
323323
"chip/clusters/enum.py",
324-
"chip/clusters/py.typed",
325324
"chip/tlv/__init__.py",
326325
"chip/tlv/tlvlist.py",
327326
]
@@ -332,8 +331,6 @@ chip_python_wheel_action("chip-clusters") {
332331
},
333332
]
334333

335-
py_typed_packages = [ "chip.clusters" ]
336-
337334
inputs = []
338335

339336
py_packages = [

src/controller/python/build-chip-wheel.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ def has_ext_modules(foo):
115115
# Build the chip package...
116116
#
117117
packages = manifest['packages']
118-
package_data = {}
119-
for package in manifest['typed_packages']:
120-
package_data[package] = ["py.typed"]
121-
122-
if libName:
123-
package_data[packages[0]] = [libName]
124118

125119
print("packageName: {}".format(packageName))
126120
print("libName: {}".format(libName))
@@ -146,7 +140,11 @@ def has_ext_modules(foo):
146140
# By default, look in the tmp directory for packages/modules to be included.
147141
'': tmpDir,
148142
},
149-
package_data=package_data,
143+
package_data={
144+
packages[0]: [
145+
libName
146+
]
147+
} if libName else {},
150148
scripts=[name for name in map(
151149
lambda script: os.path.join(tmpDir, script.installName),
152150
installScripts

src/controller/python/chip/clusters/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)