Skip to content

Commit

Permalink
🔨 Display spec version of OZI when tag history not found.
Browse files Browse the repository at this point in the history
This mainly applies when OZI is invoked as a wrapdb or subproject.

Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed May 26, 2024
1 parent bbfb9c5 commit 976d574
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ project(
'python3', # scm_version_snip
[
'-c',
'from setuptools_scm import get_version;print(get_version(normalize=False))',
'''from setuptools_scm import get_version
from packaging.version import Version
v = get_version(normalize=False)
if Version(v) < Version("0.1"):
print("0.4")
else:
print(v)
''',
],
check: true,
).stdout().strip(),
Expand Down

0 comments on commit 976d574

Please sign in to comment.