Shinylive/Pyodide was failing because it tried to install packages that
are already pre-built in Pyodide (like matplotlib and its C-extension
dependencies).
Changes:
- Split requirements into two files:
- requirements.txt: Minimal deps for Shinylive (only astral, shiny, shinyswatch)
- requirements-dev.txt: Full deps for local development (includes matplotlib)
- Update README to use requirements-dev.txt for local development
- Update GitHub workflow to use requirements-dev.txt
- Remove matplotlib version pinning as Pyodide provides it
This fixes the "Can't find a pure Python 3 wheel for 'contourpy'" error
when loading the webapp at https://basnijholt.github.io/adaptive-lighting/
* Fix webapp README: correct pip install command
The README had incorrect syntax for pip install. Changed from
`pip install requirements.txt` to `pip install -r requirements.txt`.
* Fix webapp Pyodide compatibility: pin matplotlib and contourpy versions
The webapp uses Shinylive which runs Python in the browser via Pyodide.
Pyodide only supports specific versions of packages that have C extensions.
Pin matplotlib to 3.8.4 and contourpy to 1.3.1 to match Pyodide's available versions.
This fixes the "Can't find a pure Python 3 wheel for 'contourpy==1.3.2'" error
when loading the webapp.