-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Followup from #16.
Things to include:
- Time estimate of what's necessary to achieve the following
- Expand the Python code from a single file into a folder that can be packaged and e.g. uploaded to PyPI. We don't necessarily want to actually upload the template package to PyPI, but someone using the template might want to.
- Set up infrastructure to build the wheel so that it can then be imported with micropip.
- Not done: See next comment
- Document how to ensure compatibility with pyodide's dependencies https://pyodide.org/en/stable/usage/packages-in-pyodide.html
If it's helpful, our previous work on DemoLand:
- The Python package is its own repo, https://github.com/Urban-Analytics-Technology-Platform/demoland-engine
- The wheel can be built on GitHub Actions (it can in principle be done locally too; I just found it easier to build the wheel online because each version of Pyodide requires a very specific Python version and I didn't want to have to install it locally) https://github.com/Urban-Analytics-Technology-Platform/demoland-engine/blob/main/.github/workflows/build_wasm_wheel.yaml
- The TypeScript code that imports the Python package is here: https://github.com/Urban-Analytics-Technology-Platform/demoland-web/tree/main/src/lib/python
Metadata
Metadata
Assignees
Labels
No labels