alan-turing-institute / python-project-template

15 stars 3 forks source link

Dynamic versioning for setuptools #17

Closed phinate closed 9 months ago

phinate commented 9 months ago

Makes the project version dynamic, and grabs it from __version__ in __init__.py, giving consistent behaviour between hatch and setuptools.

Thanks @yongrenjie for suggesting this in #12, worked basically out of the box!