From 6e828de79d2e60d2bc370e6fa0151e2bb53612e9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 7 Jun 2026 08:51:39 +0100 Subject: [PATCH] v0.1.9: fix PyPI wheel missing frontend build (force-include) --- CHANGELOG.md | 6 ++++++ cptr/frontend/package.json | 2 +- pyproject.toml | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 710096c..3765eb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cptr/frontend/package.json b/cptr/frontend/package.json index 4e2cb2b..bdb0d47 100644 --- a/cptr/frontend/package.json +++ b/cptr/frontend/package.json @@ -1,7 +1,7 @@ { "name": "frontend", "private": true, - "version": "0.1.7", + "version": "0.1.9", "type": "module", "scripts": { "dev": "vite dev", diff --git a/pyproject.toml b/pyproject.toml index 3e12edd..c717af9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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