feat: add version management and release workflow#82
Merged
RichardAtCT merged 9 commits intomainfrom Feb 21, 2026
Merged
Conversation
Add release.yml CI workflow for automated GitHub releases on version tags. Add Makefile targets for version bumping (bump-patch, bump-minor, bump-major) and release publishing. Update src/__init__.py with version reading.
Pre-release tags (-rc, -beta, -alpha) now only push a versioned image tag (e.g. :1.3.0-rc1) without updating :latest, matching the existing behavior for the rolling git latest tag. https://claude.ai/code/session_0123DikMoukrLNDZnCiX2KEt
importlib.metadata reads from installed package metadata, which goes stale when pyproject.toml changes without a `poetry install`. Switch to reading pyproject.toml directly with tomllib (stdlib in 3.11+) as the primary source, falling back to importlib.metadata for pip installs where pyproject.toml isn't on disk. https://claude.ai/code/session_0123DikMoukrLNDZnCiX2KEt
- README: add Docker/pip/source install options, version management section - docs/setup.md: add Docker deployment section, multiple install methods - docs/development.md: add version management section, updated make commands - CONTRIBUTING.md: fix Python version requirement to 3.11+ - CHANGELOG.md: add version management & distribution entry - SYSTEMD_SETUP.md: add Docker alternative callout https://claude.ai/code/session_0123DikMoukrLNDZnCiX2KEt
On each stable release (non-prerelease), the release workflow now force-updates a `latest` git tag so users can install with: pip install git+https://...@latest https://claude.ai/code/session_0123DikMoukrLNDZnCiX2KEt
When Claude SDK returns empty/whitespace content, the formatting pipeline
produced FormattedMessage("") that passed through all guards and hit
Telegram's API, causing "Message text is empty" 400 errors.
Added defense-in-depth: _split_message() rejects empty input,
format_claude_response() filters empty messages, and agentic_text()
skips empty messages at send time.
Strip Docker-specific content (Docker install option, docker-compose commands, GHCR image references, docker-build targets) from README, docs/setup.md, docs/development.md, CHANGELOG.md, and release.yml to keep this PR focused on version management only.
The PEP 621 migration moved version from [tool.poetry] to [project], but __init__.py still read from the old path, causing it to fall back to stale importlib.metadata returning 0.1.0 instead of 1.2.0.
- Replace $(eval)/$(shell) with shell variables in bump-* and release targets — $(eval) evaluates at parse time, causing the pre-bump version to be used for commit messages and tags - Merge push into bump-* targets so commit + tag reach the remote atomically (prevents orphan tags) - Change CI from `poetry lock && poetry install` to `poetry install --no-interaction` for reproducible builds - Remove unused "Generate release notes" step (softprops action handles this via generate_release_notes: true) - Update docs to reflect single-step bump+push workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v*tags — runs lint + tests, creates GitHub Release with auto-generated notes, maintains rollinglatestgit tagbump-patch,bump-minor,bump-major) that commit, tag, and push atomicallysrc/__init__.pyto read version frompyproject.tomlviatomllib/importlib.metadata(single source of truth)Test plan
git diff --stat main..HEADshows no Docker files (Dockerfile, docker-compose.yml, .dockerignore, docker-entrypoint.sh)git diff main..HEAD | grep -i dockerreturns zero matchesmake test— 375 tests passmake lint— mypy errors are pre-existing (461 errors on both main and this branch)make versionprints1.2.0python -c "from src import __version__; print(__version__)"prints1.2.0v1.2.1-rc1triggered release workflow successfully-rctag)latesttag not updated for pre-release (correct behavior)