feat: add git hash to development version

This commit is contained in:
Paul Gauthier 2024-08-30 11:39:59 -07:00 committed by Paul Gauthier (aider)
parent 61393017d2
commit aee501d128

View file

@ -1 +1,16 @@
__version__ = "0.54.8-dev"
"""
[[[cog
# TODO: write python to emit `git_hash = "X"`, where X is the latest 7-char git hash
# python goes here
]]]
"""
git_hash = "deadbee"
"""
[[[end]]]
"""
if '-dev' in __version__:
xyz = __version__.split("-")[0]
__version__ = xyz + "-dev+" + git_hash