Skip to content

Dynamic versioning from git tag#6

Merged
taddyb merged 1 commit intomasterfrom
hatchversion
Apr 5, 2026
Merged

Dynamic versioning from git tag#6
taddyb merged 1 commit intomasterfrom
hatchversion

Conversation

@taddyb
Copy link
Copy Markdown
Contributor

@taddyb taddyb commented Apr 5, 2026

Summary

  • Remove hardcoded version from pyproject.toml, use dynamic = ["version"] (maturin reads from Cargo.toml)
  • CI extracts version from release tag, updates workspace Cargo.toml and writes _version.py before building wheels
  • License: MIT → Apache-2.0 to match repo
  • _version.py gitignored (generated at build time)

Test plan

  • Merge, then force-push tag v0.1.1 to the merge commit
  • Verify release workflow builds 0.1.1 wheels

- pyproject.toml: use dynamic version (maturin reads from Cargo.toml)
- CI: extract version from release tag, update Cargo.toml + write _version.py
- license: MIT -> Apache-2.0
@taddyb taddyb merged commit 41c8405 into master Apr 5, 2026
2 checks passed
@taddyb taddyb deleted the hatchversion branch April 6, 2026 01:39
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