This should be straightforward to do automatically, using setuptools-scm. See [PR #9 in WallGoCollisions](https://github.com/Wall-Go/WallGoCollision/pull/9).