Fix PyPI publish: bump pyproject.toml to 0.8.0, wire version from __init__.py#14
Merged
Siddhant-K-code merged 1 commit intomainfrom Mar 28, 2026
Merged
Conversation
pyproject.toml had version = 0.5.0 while __init__.py was bumped to 0.8.0. uv build reads pyproject.toml, so the published wheel was 0.5.0 which already exists on PyPI — causing the 400 rejection. - Set dynamic = ["version"] and [tool.hatch.version] path so hatchling reads the version from src/agent_trace/__init__.py. Single source of truth; version drift between the two files is no longer possible. README: - Add explain to quick start snippet - Deduplicate explain in CLI reference table - Add CI one-liner to audit section (exits 1 on violations) - Clarify event number source in why section - Add motivation sentence to diff section Co-authored-by: Ona <no-reply@ona.com>
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.
Problem
The publish CI failed with a 400 from PyPI:
uv buildreads the version frompyproject.toml, which still had0.5.0. The version bump in the release commit only updatedsrc/agent_trace/__init__.py.Fix
dynamic = ["version"]inpyproject.tomland add[tool.hatch.version] path = "src/agent_trace/__init__.py"so hatchling reads the version from__init__.py. Single source of truth — this drift can't happen again.Also in this PR
README docs improvements:
explainto the quick start snippet (more useful first command thanstats)explainin the CLI reference tableagent-strace audit --policy ... || exit 1)whysectiondiffsection