From f2fbdafe6461e8e4e2c081cedb8475f8a90ca1ae Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 22 Feb 2022 13:36:11 +0200 Subject: [PATCH] Use the latest PIO Remote dependencies on non-ARM platforms // Issue #3865 --- platformio/package/manager/core.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/platformio/package/manager/core.py b/platformio/package/manager/core.py index 31f85fcc1c..f554dd6acb 100644 --- a/platformio/package/manager/core.py +++ b/platformio/package/manager/core.py @@ -212,15 +212,19 @@ def build_contrib_pysite_package(target_dir, with_metadata=True): def get_contrib_pysite_deps(): - twisted_version = "21.7.0" - result = [ - # twisted[tls], see setup.py for %twisted_version% - "twisted == %s" % twisted_version, - # pyopenssl depends on it, use RUST-less version - "cryptography >= 3.3, < 35.0.0", - "pyopenssl >= 16.0.0, <= 21.0.0", - "service_identity >= 18.1.0, <= 21.1.0", - ] - if "windows" in util.get_systype(): + systype = util.get_systype() + twisted_version = "22.1.0" + if "linux_arm" in systype: + result = [ + # twisted[tls], see setup.py for %twisted_version% + "twisted == %s" % twisted_version, + # pyopenssl depends on it, use RUST-less version + "cryptography >= 3.3, < 35.0.0", + "pyopenssl >= 16.0.0, <= 21.0.0", + "service_identity >= 18.1.0, <= 21.1.0", + ] + else: + result = ["twisted[tls] == %s" % twisted_version] + if "windows" in systype: result.append("pywin32 != 226") return result