Skip to content

Commit 456c87f

Browse files
authored
fix: include static frontend assets in wheel (1.2.0)
* fix: include static frontend assets in wheel The serve command requires index.html, css/, and js/ from the static/ directory, but setuptools only includes .py files by default. Add [tool.setuptools.package-data] so the frontend assets are included in both the wheel and sdist distributions. * chore: bump version to 1.2.0 Bump minor version for the static assets fix release. * chore: add release name "Whole Rye" for v1.2.0 * chore: update uv.lock for 1.2.0
1 parent 385ffcf commit 456c87f

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [v1.2.0] - Whole Rye - 2026-05-22
4+
5+
### Fixed
6+
7+
- **Missing static assets in wheel**: the `flowr serve` command crashed with `FileNotFoundError: static/index.html` because the frontend HTML, CSS, and JS files were not included in the PyPI wheel. Added `[tool.setuptools.package-data]` to `pyproject.toml` so setuptools includes all files in the `flowr/static/` package.
8+
39
## [v1.1.0] - Quartz Vein - 2026-05-19
410

511
### Added

flowr/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
"""Non-deterministic state machine specification to knead workflows."""
2+
3+
__version__ = "1.2.0"

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "flowr"
3-
version = "1.1.0"
3+
version = "1.2.0"
44
description = "non-deterministic state machine specification to knead workflows"
55
readme = "README.md"
66
requires-python = ">=3.13"
@@ -64,6 +64,9 @@ default_session = "default"
6464
[tool.setuptools.packages.find]
6565
include = ["flowr*"]
6666

67+
[tool.setuptools.package-data]
68+
"flowr.static" = ["*.html", "css/**", "js/**"]
69+
6770
[tool.ruff.lint]
6871
ignore = ["CPY001"]
6972
select = [

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)