From 65e67b64bd8d2e06e7fd9b922bb815789f46dd74 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 22 Jan 2021 22:55:45 +0200 Subject: [PATCH] Remove unnecessary dependencies from contrib-pysite --- platformio/package/manager/core.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/platformio/package/manager/core.py b/platformio/package/manager/core.py index f31a8767..af51f91a 100644 --- a/platformio/package/manager/core.py +++ b/platformio/package/manager/core.py @@ -162,7 +162,6 @@ def build_contrib_pysite_package(target_dir, with_metadata=True): pkg.dump_meta() # remove unused files - shutil.rmtree(os.path.join(target_dir, "autobahn", "xbr", "contracts")) for root, dirs, files in os.walk(target_dir): for t in ("_test", "test", "tests"): if t in dirs: @@ -171,19 +170,6 @@ def build_contrib_pysite_package(target_dir, with_metadata=True): if name.endswith((".chm", ".pyc")): os.remove(os.path.join(root, name)) - # apply patches - with open( - os.path.join(target_dir, "autobahn", "twisted", "__init__.py"), "r+" - ) as fp: - contents = fp.read() - contents = contents.replace( - "from autobahn.twisted.wamp import ApplicationSession", - "# from autobahn.twisted.wamp import ApplicationSession", - ) - fp.seek(0) - fp.truncate() - fp.write(contents) - return target_dir @@ -194,8 +180,6 @@ def get_contrib_pysite_deps(): twisted_version = "19.10.0" if PY2 else "20.3.0" result = [ "twisted == %s" % twisted_version, - "autobahn == %s" % ("19.11.2" if PY2 else "20.7.1"), - "json-rpc == 1.13.0", ] # twisted[tls], see setup.py for %twisted_version% @@ -203,14 +187,6 @@ def get_contrib_pysite_deps(): ["pyopenssl >= 16.0.0", "service_identity >= 18.1.0", "idna >= 0.6, != 2.3"] ) - # zeroconf - if PY2: - result.append( - "https://github.com/ivankravets/python-zeroconf/" "archive/pio-py27.zip" - ) - else: - result.append("zeroconf == 0.26.0") - if "windows" in sys_type: result.append("pypiwin32 == 223") # workaround for twisted wheels