[PR #2366] [MERGED] refac: fetch pyodide deps at build time, not checked into git #92008

Closed
opened 2026-05-15 17:33:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2366
Author: @cheahjs
Created: 5/18/2024
Status: Merged
Merged: 5/18/2024
Merged by: @tjbck

Base: devHead: refac/pyscript-npm


📝 Commits (1)

  • 781c904 refac: fetch pyodide deps at build time, not checked into git

📊 Changes

44 files changed (+65 additions, -7970 deletions)

View changed files

📝 .gitignore (+4 -0)
📝 package.json (+4 -3)
pyodide.sh (+0 -3)
scripts/prepare-pyodide.js (+29 -0)
📝 src/lib/components/chat/Messages/CodeBlock.svelte (+4 -5)
📝 src/lib/workers/pyodide.worker.ts (+21 -10)
static/pyodide/cycler-0.12.1-py3-none-any.whl (+0 -0)
static/pyodide/cycler-0.12.1-py3-none-any.whl.metadata (+0 -78)
static/pyodide/fonttools-4.48.1-py3-none-any.whl (+0 -0)
static/pyodide/fonttools-4.48.1-py3-none-any.whl.metadata (+0 -3237)
static/pyodide/kiwisolver-1.4.5-cp312-cp312-emscripten_3_1_52_wasm32.whl (+0 -0)
static/pyodide/kiwisolver-1.4.5-cp312-cp312-emscripten_3_1_52_wasm32.whl.metadata (+0 -122)
static/pyodide/matplotlib-3.5.2-cp312-cp312-emscripten_3_1_52_wasm32.whl (+0 -0)
static/pyodide/matplotlib-3.5.2-cp312-cp312-emscripten_3_1_52_wasm32.whl.metadata (+0 -167)
static/pyodide/matplotlib_pyodide-0.2.1-py3-none-any.whl (+0 -0)
static/pyodide/matplotlib_pyodide-0.2.1-py3-none-any.whl.metadata (+0 -440)
static/pyodide/micropip-0.6.0-py3-none-any.whl (+0 -0)
static/pyodide/micropip-0.6.0-py3-none-any.whl.metadata (+0 -421)
static/pyodide/numpy-1.26.4-cp312-cp312-emscripten_3_1_52_wasm32.whl (+0 -0)
static/pyodide/numpy-1.26.4-cp312-cp312-emscripten_3_1_52_wasm32.whl.metadata (+0 -151)

...and 24 more files

📄 Description

Pull Request Checklist

  • Target branch: Pull requests should target the dev branch.
  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for the changes?
  • Code Review: Have you self-reviewed your code and addressed any coding standard issues?

Description

Refactor pyodide to fetch the wheels at build time instead of checked into the git repository.

Also switch to importing the worker instead of needing to have it in the static dir.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/2366 **Author:** [@cheahjs](https://github.com/cheahjs) **Created:** 5/18/2024 **Status:** ✅ Merged **Merged:** 5/18/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `refac/pyscript-npm` --- ### 📝 Commits (1) - [`781c904`](https://github.com/open-webui/open-webui/commit/781c904c9139664fc3ac3d3fff226f42664c510b) refac: fetch pyodide deps at build time, not checked into git ### 📊 Changes **44 files changed** (+65 additions, -7970 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+4 -0) 📝 `package.json` (+4 -3) ➖ `pyodide.sh` (+0 -3) ➕ `scripts/prepare-pyodide.js` (+29 -0) 📝 `src/lib/components/chat/Messages/CodeBlock.svelte` (+4 -5) 📝 `src/lib/workers/pyodide.worker.ts` (+21 -10) ➖ `static/pyodide/cycler-0.12.1-py3-none-any.whl` (+0 -0) ➖ `static/pyodide/cycler-0.12.1-py3-none-any.whl.metadata` (+0 -78) ➖ `static/pyodide/fonttools-4.48.1-py3-none-any.whl` (+0 -0) ➖ `static/pyodide/fonttools-4.48.1-py3-none-any.whl.metadata` (+0 -3237) ➖ `static/pyodide/kiwisolver-1.4.5-cp312-cp312-emscripten_3_1_52_wasm32.whl` (+0 -0) ➖ `static/pyodide/kiwisolver-1.4.5-cp312-cp312-emscripten_3_1_52_wasm32.whl.metadata` (+0 -122) ➖ `static/pyodide/matplotlib-3.5.2-cp312-cp312-emscripten_3_1_52_wasm32.whl` (+0 -0) ➖ `static/pyodide/matplotlib-3.5.2-cp312-cp312-emscripten_3_1_52_wasm32.whl.metadata` (+0 -167) ➖ `static/pyodide/matplotlib_pyodide-0.2.1-py3-none-any.whl` (+0 -0) ➖ `static/pyodide/matplotlib_pyodide-0.2.1-py3-none-any.whl.metadata` (+0 -440) ➖ `static/pyodide/micropip-0.6.0-py3-none-any.whl` (+0 -0) ➖ `static/pyodide/micropip-0.6.0-py3-none-any.whl.metadata` (+0 -421) ➖ `static/pyodide/numpy-1.26.4-cp312-cp312-emscripten_3_1_52_wasm32.whl` (+0 -0) ➖ `static/pyodide/numpy-1.26.4-cp312-cp312-emscripten_3_1_52_wasm32.whl.metadata` (+0 -151) _...and 24 more files_ </details> ### 📄 Description ## Pull Request Checklist - [x] **Target branch:** Pull requests should target the `dev` branch. - [x] **Description:** Briefly describe the changes in this pull request. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for the changes? - [x] **Code Review:** Have you self-reviewed your code and addressed any coding standard issues? --- ## Description Refactor pyodide to fetch the wheels at build time instead of checked into the git repository. Also switch to importing the worker instead of needing to have it in the static dir. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-15 17:33:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#92008