v0.1.9: fix PyPI wheel missing frontend build (force-include)

This commit is contained in:
Timothy Jaeryang Baek
2026-06-07 08:51:39 +01:00
Unverified
parent d11988c3d0
commit 6e828de79d
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -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 -1
View File
@@ -1,7 +1,7 @@
{
"name": "frontend",
"private": true,
"version": "0.1.7",
"version": "0.1.9",
"type": "module",
"scripts": {
"dev": "vite dev",
+2 -2
View File
@@ -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