fastapi_mcp
fastapi_mcp copied to clipboard
Use setuptools_scm for dynamic versioning via Git tags
This PR removes the hardcoded version from the repository and replaces it with automatic versioning using setuptools_scm. This approach treats Git tags as the single source of truth for the project version, improving maintainability and consistency.
Changes include:
Added and configured setuptools_scm in pyproject.toml
Removed hardcoded version from init.py and replaced it with dynamic retrieval
Updated GitHub Actions workflow to:
Build the package with dynamic versioning
Automatically upload releases to PyPI
Issue ticket number and link (if applicable)
#38
Screenshots of the feature / bugfix
Checklist before requesting a review
- [x] Added relevant tests
- [x] Run ruff & mypy
- [x] All tests pass
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
:loudspeaker: Thoughts on this report? Let us know!