Skip to content

build: switch to hatchling + hatch-vcs and add PyPI publish workflow#15

Merged
PythonFZ merged 2 commits intomainfrom
feat/hatch-vcs-publish
Mar 10, 2026
Merged

build: switch to hatchling + hatch-vcs and add PyPI publish workflow#15
PythonFZ merged 2 commits intomainfrom
feat/hatch-vcs-publish

Conversation

@PythonFZ
Copy link
Copy Markdown
Member

@PythonFZ PythonFZ commented Mar 10, 2026

Replace uv_build with hatchling/hatch-vcs for automatic git-tag versioning. Add GitHub Actions workflow for publishing to PyPI on release via trusted publishing.

Summary by CodeRabbit

  • Chores
    • Set up automated publishing to PyPI via GitHub Actions workflow triggered on releases and manual dispatch.
    • Migrated from fixed versioning to dynamic version management sourced from version control system.
    • Updated build system configuration to support automated release workflows.

PythonFZ and others added 2 commits March 10, 2026 15:24
Replace uv_build with hatchling/hatch-vcs for automatic git-tag versioning.
Add GitHub Actions workflow for publishing to PyPI on release via trusted publishing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 10, 2026

Warning

Rate limit exceeded

@PythonFZ has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 17 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0d38c914-072a-4240-99da-ec165afa705c

📥 Commits

Reviewing files that changed from the base of the PR and between 4ae859c and e1daf86.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .github/workflows/publish.yaml
  • .gitignore
  • pyproject.toml
📝 Walkthrough

Walkthrough

This pull request establishes automated CI/CD publishing infrastructure and implements dynamic versioning. It introduces a GitHub Actions workflow that builds and uploads packages to PyPI on release, switches to Hatch-based VCS versioning, and configures the build environment accordingly.

Changes

Cohort / File(s) Summary
Publishing and Versioning Infrastructure
.github/workflows/publish.yaml, .gitignore, pyproject.toml
Adds GitHub Actions workflow for building and publishing to PyPI with two jobs (build and upload). Implements dynamic VCS-based versioning using hatchling and hatch-vcs, replacing fixed versioning and the uv_build backend. Ignores generated version file in gitignore.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Hatchlings hatch and versions bloom,
From git's sweet soil they zoom and zoom,
To PyPI we hop with cheer,
Automation makes it clear!
One workflow script, one build divine,
All the versions now align! 📦✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/hatch-vcs-publish

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@PythonFZ PythonFZ merged commit cd81592 into main Mar 10, 2026
4 checks passed
@PythonFZ PythonFZ deleted the feat/hatch-vcs-publish branch March 10, 2026 14:31
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