mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
Fix webapp for Shinylive deployment by separating requirements
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/
This commit is contained in:
parent
b547bfb1f3
commit
42bca7d140
5 changed files with 111 additions and 108 deletions
2
.github/workflows/deploy-webapp.yml
vendored
2
.github/workflows/deploy-webapp.yml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install -r webapp/requirements.txt
|
||||
pip install -r webapp/requirements-dev.txt
|
||||
pip install shinylive
|
||||
|
||||
- name: Build the WebAssembly app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue