Skip to content

Commit 99362a4

Browse files
committed
Lock precise versions of Python dependencies for IDF 5
Using loose constraints proved to be unsafe (e.g. latest pyparsing update v3.1.0)
1 parent 574fe62 commit 99362a4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

builder/frameworks/espidf.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,17 +1097,13 @@ def _get_installed_pip_packages(python_exe_path):
10971097
# https://github.com/platformio/platformio-core/issues/4614
10981098
"urllib3": "<2",
10991099
# https://github.com/platformio/platform-espressif32/issues/635
1100-
"cryptography": ">=2.1.4,<35.0.0",
1101-
"future": ">=0.15.2",
1102-
"pyparsing": ">=2.0.3,<2.4.0",
1103-
"kconfiglib": "==13.7.1",
1104-
"idf-component-manager": "~=1.0",
1100+
"cryptography": "~=41.0.1" if IDF5 else ">=2.1.4,<35.0.0",
1101+
"future": ">=0.18.3",
1102+
"pyparsing": "~=3.0.9" if IDF5 else ">=2.0.3,<2.4.0",
1103+
"kconfiglib": "~=14.1.0" if IDF5 else "~=13.7.1",
1104+
"idf-component-manager": "~=1.2.3" if IDF5 else "~=1.0",
11051105
}
11061106

1107-
if IDF5:
1108-
# Remove specific versions for IDF5 as not required
1109-
deps = {dep: "" for dep in deps}
1110-
11111107
python_exe_path = get_python_exe()
11121108
installed_packages = _get_installed_pip_packages(python_exe_path)
11131109
packages_to_install = []

0 commit comments

Comments
 (0)