diff --git a/CHANGELOG.md b/CHANGELOG.md index ef1af52..02ca062 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,26 @@ 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.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.4] - 2026-02-22 + +### Fixed + +- **PyPI wheel packaging**: Fixed project build file to remove web includes/excludes that were breaking CI/CD + +### Changed + +- **`Makefile`**: Simplified `build-release` target to remove `.gitkeep` preservation logic since the placeholder is not needed in distribution builds. + + ## [1.3.3] - 2026-02-22 ### Fixed -- **PyPI wheel packaging**: Fixed duplicate `.gitkeep` file in wheel that caused PyPI upload rejection. Changed wheel build configuration to use `only-include` for Python files, preventing the `.gitkeep` placeholder from being included via the `packages` directive while still allowing it through `force-include`. +- **PyPI wheel packaging**: Fixed duplicate `.gitkeep` file in wheel that caused PyPI upload rejection. Modified `build-release` Makefile target to not preserve the `.gitkeep` placeholder file when copying web UI build artifacts, as it's only needed for development and editable installs. + +### Changed + +- **`Makefile`**: Simplified `build-release` target to remove `.gitkeep` preservation logic since the placeholder is not needed in distribution builds. ## [1.3.2] - 2026-02-22 diff --git a/Makefile b/Makefile index 7fd4692..1df5e04 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ build-web: ## Build Next.js static export into web-ui/out/ (required before svg2 cd web-ui && npm run build build-release: build-web ## Build Next.js UI and copy into the Python package for distribution - uv run python -c "import shutil,pathlib; w=pathlib.Path('src/SVG2DrawIOLib/web'); gitkeep=w/'.gitkeep'; gitkeep_content=gitkeep.read_text() if gitkeep.exists() else ''; shutil.rmtree(w,ignore_errors=True); shutil.copytree('web-ui/out',w); [(p.rename(p.parent.parent/(p.parent.name+'.__PAGE__.txt')),p.parent.rmdir()) for p in list(w.rglob('__PAGE__.txt')) if p.parent.name.startswith('__next.')]; w.mkdir(exist_ok=True); gitkeep.write_text(gitkeep_content) if gitkeep_content else None" + uv run python -c "import shutil,pathlib; w=pathlib.Path('src/SVG2DrawIOLib/web'); shutil.rmtree(w,ignore_errors=True); shutil.copytree('web-ui/out',w); [(p.rename(p.parent.parent/(p.parent.name+'.__PAGE__.txt')),p.parent.rmdir()) for p in list(w.rglob('__PAGE__.txt')) if p.parent.name.startswith('__next.')]" start-web: build-web ## Build then launch the web UI via the CLI (opens browser) svg2drawio web diff --git a/pyproject.toml b/pyproject.toml index 17f676d..89292ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,11 +73,6 @@ path = "src/SVG2DrawIOLib/__about__.py" [tool.hatch.build.targets.wheel] packages = ["src/SVG2DrawIOLib"] -only-include = [ - "SVG2DrawIOLib/**/*.py", - "SVG2DrawIOLib/**/*.typed", - "SVG2DrawIOLib/py.typed", -] [tool.hatch.build.targets.wheel.force-include] "src/SVG2DrawIOLib/web" = "SVG2DrawIOLib/web" diff --git a/src/SVG2DrawIOLib/__about__.py b/src/SVG2DrawIOLib/__about__.py index 45dcfb8..389a118 100644 --- a/src/SVG2DrawIOLib/__about__.py +++ b/src/SVG2DrawIOLib/__about__.py @@ -1,3 +1,3 @@ """Package version information.""" -__version__ = "1.3.3" +__version__ = "1.3.4" diff --git a/src/SVG2DrawIOLib/web/.gitkeep b/src/SVG2DrawIOLib/web/.gitkeep index 8d03576..e69de29 100644 --- a/src/SVG2DrawIOLib/web/.gitkeep +++ b/src/SVG2DrawIOLib/web/.gitkeep @@ -1,2 +0,0 @@ -# Placeholder for web UI build artifacts -# The actual web UI is built from web-ui/ and copied here during release builds