You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of hardcoding the version into the repo, use git tags as the single source of truth for project's version, eliminating human error on releases.
To do this we can use setuptools_scm.
The text was updated successfully, but these errors were encountered:
What's the current release process you want to automate versioning for, if I understood correctly?
Assuming you want the version to be determined by a git tag, which part of which flow (a github action presumably?) will produce the version artifact and where (github releases, pypi, the repo itself, etc)?
Hey @AnnaRevutsky , sure! I'd be happy to guide you.
So basically right now, when releasing a version you have to do this in order:
bump the package's version in pyproject.toml
run uv sync
commit the pyproject.toml and uv.lock files
create a new tag + release via Github (only maintainers can do that)
the Github Action will run and publish it to PyPi
So, instead it would be better if pyproject.toml, and the package's init.py are not hardcoding any version, and are taking it from the git tag when a release is created.
setuptools_scm is supposed to allow this kind of CI workflow.
Instead of hardcoding the version into the repo, use git tags as the single source of truth for project's version, eliminating human error on releases.
To do this we can use setuptools_scm.
The text was updated successfully, but these errors were encountered: