mirror of
https://github.com/open-webui/computer.git
synced 2026-11-16 19:01:55 +03:00
v0.1.9: fix PyPI wheel missing frontend build (force-include)
This commit is contained in:
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.1.9] - 2026-06-07
|
||||
|
||||
### Fixed
|
||||
|
||||
- 📦 **PyPI install actually works now.** Hatchling's `exclude` took precedence over `artifacts`, causing every published wheel to ship without the frontend build. The app returned `{"detail":"Not Found"}` on all non-API routes. Switched to `force-include` (matching open-webui's approach), which unconditionally bundles `cptr/frontend/build` into the wheel regardless of exclude rules.
|
||||
|
||||
## [0.1.7] - 2026-06-07
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"private": true,
|
||||
"version": "0.1.7",
|
||||
"version": "0.1.9",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "cptr"
|
||||
version = "0.1.7"
|
||||
version = "0.1.9"
|
||||
description = "Your computer, from anywhere. Code, manage, and control your machine from the web."
|
||||
license = {file = "LICENSE"}
|
||||
readme = "README.md"
|
||||
@@ -37,11 +37,11 @@ build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["cptr"]
|
||||
artifacts = ["cptr/frontend/build"]
|
||||
exclude = ["cptr/frontend"]
|
||||
|
||||
[tool.hatch.build.targets.wheel.force-include]
|
||||
"CHANGELOG.md" = "cptr/CHANGELOG.md"
|
||||
"cptr/frontend/build" = "cptr/frontend/build"
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
|
||||
Reference in New Issue
Block a user