fastapi_mcp icon indicating copy to clipboard operation
fastapi_mcp copied to clipboard

Use setuptools_scm for dynamic versioning via Git tags

Open AnnaRevutsky opened this issue 9 months ago • 1 comments

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

AnnaRevutsky avatar May 02 '25 19:05 AnnaRevutsky

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar May 18 '25 14:05 codecov[bot]