Skip to content

build: switch to hatch-vcs for automatic git-tag versioning#106

Merged
PythonFZ merged 1 commit intomainfrom
build/hatch-vcs
Apr 14, 2026
Merged

build: switch to hatch-vcs for automatic git-tag versioning#106
PythonFZ merged 1 commit intomainfrom
build/hatch-vcs

Conversation

@PythonFZ
Copy link
Copy Markdown
Member

Summary

  • Replace static version = "0.2.2" with dynamic versioning via hatch-vcs (git tags)
  • Add [tool.hatch.version] and [tool.hatch.build.hooks.vcs] config to pyproject.toml
  • Update publish workflow with separate build/upload jobs and fetch-depth: 0 for full git history
  • Add generated src/molify/_version.py to .gitignore

Same build system as zincware/asebytes#15.

Test plan

  • uv build produces correctly versioned wheel and sdist
  • All 439 tests pass
  • _version.py is generated and gitignored
  • Verify PyPI publish workflow on next release

🤖 Generated with Claude Code

Replace static version with dynamic version sourced from git tags via
hatch-vcs. Update publish workflow with separate build/upload jobs and
fetch-depth: 0 for full git history.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 14, 2026

Warning

Rate limit exceeded

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

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 57 minutes and 9 seconds.

⌛ 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: 76ea42dc-0bb3-4d15-8880-b3c3598f8e10

📥 Commits

Reviewing files that changed from the base of the PR and between a1d86eb and fc7b27e.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • .github/workflows/build-wheels.yaml
  • .gitignore
  • pyproject.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch build/hatch-vcs

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 8134873 into main Apr 14, 2026
22 checks passed
@PythonFZ PythonFZ deleted the build/hatch-vcs branch April 14, 2026 14:11
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