Skip to content

chore: release 0.4.2#12

Merged
maish merged 2 commits into
mainfrom
release-0.4.2
Jun 8, 2026
Merged

chore: release 0.4.2#12
maish merged 2 commits into
mainfrom
release-0.4.2

Conversation

@maish

@maish maish commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Patch release: fix stale __version__.

Fix

table_stitcher.__version__ was a hardcoded literal ("0.2.0") in __init__.py that was never bumped through releases — so import table_stitcher; print(__version__) reported 0.2.0 on every install since 0.2.0, including fresh pip install of later versions. Nothing tied it to pyproject.toml.

It is now derived from the installed distribution metadata via importlib.metadata.version("table-stitcher") (stdlib, ≥3.8), falling back to "0.0.0+unknown" when imported from an uninstalled source tree. Single source of truth — it can no longer drift from the published version.

The release gate (scripts/release_gate.sh) now also asserts __version__ == <pyproject version> in the clean-wheel smoke test, so this class of drift is caught before publish.

Tests

  • 106 passing; ruff clean.
  • Verified locally: after pip install -e ., __version__ reports the real version.

🤖 Generated with Claude Code

maish and others added 2 commits June 8, 2026 22:00
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@maish maish merged commit 8a85068 into main Jun 8, 2026
7 checks passed
@maish maish deleted the release-0.4.2 branch June 8, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant