Skip to content

Commit 0071643

Browse files
committed
fix: resolve visualizer static files missing from PyPI package
- Add package data configuration to include visualizer/static/* files - Fix RuntimeError: Directory 'static' does not exist when running 'chunklet visualize' - Update version to 2.1.1 for critical bug fix release - Add changelog and documentation entries for the fix
1 parent e127147 commit 0071643

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [2.1.1] - 2025-12-20
11+
12+
### Fixed
13+
- **Visualizer Static Files:** Fixed critical issue where the Chunk Visualizer static files (CSS, JS, HTML) were not being included in the PyPI package distribution, causing `RuntimeError: Directory does not exist` when running `chunklet visualize`. Added proper package data configuration to include `visualizer/static/*` files in the distribution.
14+
15+
---
16+
1017
## [2.1.0] - 2025-12-19
1118

1219
### Added

docs/whats-new.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
!!! info "What's on This Page"
22
This page highlights the **big features and major changes** for each version. For all the nitty-gritty details, bug fixes, and technical improvements, check out our [full changelog](https://github.com/speedyk-005/chunklet-py/blob/main/CHANGELOG.md).
33

4+
## What's New in Chunklet v2.1.1! 🐛
5+
6+
### 🐛 Critical Bug Fix in v2.1.1
7+
8+
* **Visualizer Static Files Issue:** 🚨 **CRITICAL** - Fixed a breaking bug where the Chunk Visualizer static files (CSS, JS, HTML) were missing from the PyPI package distribution. This caused `RuntimeError: Directory does not exist` when running `chunklet visualize`. The visualizer now works correctly after installation!
9+
10+
---
11+
412
## What's New in Chunklet v2.1.0! 🎉
513

614
### ✨ Major Features in v2.1.0

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "chunklet-py"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
description = "Advanced text, code, and document chunking for LLM applications. Split content semantically, visualize chunks interactively, and process multiple file formats with flexible, context-aware segmentation."
55
authors = [
66
{ name = "speedyk_005", email = "[email protected]" }
@@ -132,6 +132,10 @@ packages = [
132132
"chunklet.sentence_splitter",
133133
"chunklet.visualizer",
134134
]
135+
include-package-data = true
136+
137+
[tool.setuptools.package-data]
138+
chunklet = ["visualizer/static/*", "visualizer/static/**/*"]
135139

136140
[tool.pytest.ini_options]
137141
minversion = "7.4"

src/chunklet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
CallbackError,
2525
)
2626

27-
__version__ = "2.1.0"
27+
__version__ = "2.1.1"
2828

2929
__all__ = [
3030
"ChunkletError",

0 commit comments

Comments
 (0)