Skip to content

Versioning and release automation#4

Merged
razeghi71 merged 4 commits intomainfrom
cursor/versioning-and-release-automation-bea7
Jan 7, 2026
Merged

Versioning and release automation#4
razeghi71 merged 4 commits intomainfrom
cursor/versioning-and-release-automation-bea7

Conversation

@razeghi71
Copy link
Owner

@razeghi71 razeghi71 commented Jan 7, 2026

Add GitHub Actions for automated semver tagging, GitHub releases, and PyPI publishing to streamline the release process.

This PR introduces two GitHub Actions workflows:

  • semver-tag-and-release.yml: On PR merge, it reads major/minor/patch labels to compute the next vX.Y.Z tag, pushes it, and creates a GitHub Release with auto-generated notes.
  • release-pypi.yml: On v* tag pushes, it builds the package and publishes it to PyPI using the secure OIDC "Trusted Publisher" method.

Additionally, the project's versioning has been switched to be tag-derived via hatch-vcs, removing the need for manual version updates in pyproject.toml and burf/__init__.py. The README.md has been updated with instructions on the new release process and PyPI Trusted Publisher setup.


Open in Cursor Open in Web


Note

Automates releases and shifts versioning to tags.

  • Adds semver-tag-and-release.yml to compute vX.Y.Z from PR labels on merge, push the tag, and create a GitHub Release (auto notes)
  • Adds release-pypi.yml to build with uv and publish to PyPI via Trusted Publishing (OIDC) on v* tags
  • Switches to VCS-derived versions: pyproject.toml now uses dynamic = ["version"], adds hatch-vcs to build-system, and configures [tool.hatch.version]
  • Updates burf/__init__.py to read __version__ from importlib.metadata with a fallback for source checkouts
  • Adds DEVELOPMENT.md with local setup and the new release process

Written by Cursor Bugbot for commit c761f56. This will update automatically on new commits. Configure here.

Co-authored-by: razeghi71 <razeghi71@gmail.com>
@cursor
Copy link

cursor bot commented Jan 7, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 3 commits January 7, 2026 12:41
Co-authored-by: razeghi71 <razeghi71@gmail.com>
Co-authored-by: razeghi71 <razeghi71@gmail.com>
Co-authored-by: razeghi71 <razeghi71@gmail.com>
@razeghi71 razeghi71 marked this pull request as ready for review January 7, 2026 12:55
@razeghi71 razeghi71 merged commit be99782 into main Jan 7, 2026
1 check passed
@razeghi71 razeghi71 deleted the cursor/versioning-and-release-automation-bea7 branch January 7, 2026 19:09
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.

2 participants