setuptools-scm

the blessed package to manage your versions by scm tags

Here are some FAQ’s about setuptools-scm

What is setuptools-scm the blessed package to manage your versions by scm tags