NabuCasa / sl-web-tools

Open source tools to allow working with USB-sticks containing SL chips in the browser
48 stars 6 forks source link

Fix import issues due to unpinned dependencies #12

Closed puddly closed 10 months ago

puddly commented 10 months ago

Fixes #11.

The stdlib ssl module is used by the latest version of zigpy at module initialization time but this breaks pyodide, as it requires you install this module explicitly (to save space).

To address this, dependency resolution has been completely disabled in micropip and all modules are instead pulled from a manually-generated requirements.txt file. I've mocked as many modules as possible to reduce the download size even futher.