Skip to content

Fix PyPI publish: bump pyproject.toml to 0.8.0, wire version from __init__.py#14

Merged
Siddhant-K-code merged 1 commit intomainfrom
fix/version-bump-0.8.0
Mar 28, 2026
Merged

Fix PyPI publish: bump pyproject.toml to 0.8.0, wire version from __init__.py#14
Siddhant-K-code merged 1 commit intomainfrom
fix/version-bump-0.8.0

Conversation

@Siddhant-K-code
Copy link
Copy Markdown
Owner

Problem

The publish CI failed with a 400 from PyPI:

error: Failed to publish agent_strace-0.5.0-py3-none-any.whl
Server says: 400 File already exists ('agent_strace-0.5.0-py3-none-any.whl')

uv build reads the version from pyproject.toml, which still had 0.5.0. The version bump in the release commit only updated src/agent_trace/__init__.py.

Fix

  • Set dynamic = ["version"] in pyproject.toml and 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:

  • Add explain to the quick start snippet (more useful first command than stats)
  • Deduplicate explain in the CLI reference table
  • Add CI one-liner to the audit section (agent-strace audit --policy ... || exit 1)
  • Clarify event number source in why section
  • Add motivation sentence to diff section

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>
@Siddhant-K-code Siddhant-K-code merged commit e1dbe18 into main Mar 28, 2026
4 checks passed
@Siddhant-K-code Siddhant-K-code deleted the fix/version-bump-0.8.0 branch March 28, 2026 17:15
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