neuroinformatics-unit / python-cookiecutter

Utility to create a basic Python project structure with tests, CI etc.
BSD 3-Clause "New" or "Revised" License
22 stars 3 forks source link

Report version programmatically #18

Closed adamltyson closed 1 year ago

JoeZiminski commented 1 year ago

I just tested this and it seems to work well, i.e.

import hello_world
hello_world.__version__
'0.0.3.1.dev1+g72f0cde'
hello_world.version("hello_world")
'0.0.3.1.dev1+g72f0cde'

if uninstall, push a new tag in repo, then re-install from repo the new version is reported too. So I believe working as intended unless I have overlooked a case