fpgmaas / cookiecutter-poetry

A modern cookiecutter template for Python projects that use Poetry for dependency management
https://fpgmaas.github.io/cookiecutter-poetry/
MIT License
362 stars 55 forks source link

Manage versions by scm tags #71

Open J535D165 opened 1 year ago

J535D165 commented 1 year ago

Using scm tags for versioning would be very useful imo. For example by implementing https://github.com/pypa/setuptools_scm

fpgmaas commented 1 year ago

Thanks for the suggestion. Can you explain why this would be useful or what problem this solves? I am trying to understand it from their documentation, but I find it a bit vague. Would this be a replacement for this line?:

poetry version $RELEASE_VERSION
J535D165 commented 1 year ago

It is not my lack of experience with poetry, hopefully, but the version is hardcoded in the pyproject.toml file. See

https://github.com/fpgmaas/cookiecutter-poetry/blob/92d382c04ea53729a5d84616c7de06d5135390ec/%7B%7Bcookiecutter.project_name%7D%7D/pyproject.toml#L3

Or is this completely ignored?