Skip to content

Commit

Permalink
Switch to the universal Twisted
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Jan 2, 2022
1 parent f3c7d71 commit 6081f9f
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions platformio/package/manager/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def build_contrib_pysite_package(target_dir, with_metadata=True):


def get_contrib_pysite_deps():
twisted_version = "20.3.0"
twisted_version = "21.7.0"
result = [
# twisted[tls], see setup.py for %twisted_version%
"twisted == %s" % twisted_version,
Expand All @@ -221,21 +221,6 @@ def get_contrib_pysite_deps():
"pyopenssl >= 16.0.0, <= 21.0.0",
"service_identity >= 18.1.0, <= 21.1.0",
]

sys_type = util.get_systype()
py_version = "%d%d" % (sys.version_info.major, sys.version_info.minor)
if "windows" in sys_type:
result.append("pypiwin32 == 223")
# workaround for twisted wheels
twisted_wheel = (
"https://download.lfd.uci.edu/pythonlibs/x2tqcw5k/Twisted-"
"%s-cp%s-cp%s-win%s.whl"
% (
twisted_version,
py_version,
py_version,
"_amd64" if "amd64" in sys_type else "32",
)
)
result[0] = twisted_wheel
if "windows" in util.get_systype():
result.append("pywin32 != 226")
return result

0 comments on commit 6081f9f

Please sign in to comment.