Skip to content

Commit b9cc5e5

Browse files
enkiuszCopilot
andauthored
Harmonize minimum required Python version to 3.11 (project-chip#41845)
* Harmonize minimum required Python version to 3.11 Signed-off-by: Maciej Grela <[email protected]> * Update pyproject.toml Co-authored-by: Copilot <[email protected]> --------- Signed-off-by: Maciej Grela <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 7553b42 commit b9cc5e5

15 files changed

+19
-16
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[project]
2+
requires-python = ">=3.11"
3+
14
[tool.autopep8]
25
max_line_length = 132
36

@@ -7,7 +10,7 @@ known_first_party = "matter"
710

811
[tool.ruff]
912
line-length = 132
10-
target-version = "py310"
13+
target-version = "py311"
1114
exclude = [
1215
".environment",
1316
".git",

src/controller/python/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ matter_python_wheel_action("matter-core") {
378378

379379
public_deps = [ ":ChipDeviceCtrl" ]
380380

381-
output_name = "${py_package_name}-${chip_python_version}-cp37-abi3-${py_platform_tag}.whl"
381+
output_name = "${py_package_name}-${chip_python_version}-cp311-abi3-${py_platform_tag}.whl"
382382
}
383383

384384
matter_python_wheel_action("matter-clusters") {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def has_ext_modules(foo):
132132
"License :: OSI Approved :: Apache Software License",
133133
"Programming Language :: Python :: 3"
134134
],
135-
python_requires=">=3.7",
135+
python_requires=">=3.11",
136136
packages=packages,
137137
package_dir={
138138
# By default, look in the tmp directory for packages/modules to be included.
@@ -150,7 +150,7 @@ def has_ext_modules(foo):
150150
'universal': False,
151151
# Place the generated .whl in the dist directory.
152152
'dist_dir': distDir,
153-
'py_limited_api': 'cp37',
153+
'py_limited_api': 'cp311',
154154
'plat_name': args.plat_name,
155155
},
156156
'egg_info': {

src/test_driver/linux-cirque/CommissioningFailureOnReportTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run_controller_test(self):
9494
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9595
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
9696
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
97-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
97+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
9898
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
100100

src/test_driver/linux-cirque/CommissioningFailureTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run_controller_test(self):
9494
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9595
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
9696
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
97-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
97+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
9898
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
100100

src/test_driver/linux-cirque/CommissioningTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def run_controller_test(self):
135135
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
136136
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
137137
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
138-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
138+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
139139
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
140140
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
141141

src/test_driver/linux-cirque/CommissioningWindowTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def run_controller_test(self):
9898
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
100100
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
101-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
101+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
102102
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
103103
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
104104

src/test_driver/linux-cirque/FailsafeTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def run_controller_test(self):
9393
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9494
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
9595
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
96-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
96+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
9797
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9898
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
9999

src/test_driver/linux-cirque/IcdDeviceTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def run_controller_test(self):
9999
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
100100
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
101101
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
102-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
102+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
103103
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
104104
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
105105

src/test_driver/linux-cirque/MobileDeviceTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def run_controller_test(self):
9292
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9393
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_clusters-1.0.0-py3-none-any.whl")))
9494
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
95-
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp37-abi3-linux_x86_64.whl")))
95+
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_core-1.0.0-cp311-abi3-linux_x86_64.whl")))
9696
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9797
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/matter_repl-1.0.0-py3-none-any.whl")))
9898

0 commit comments

Comments
 (0)