Remove dirty flag

This commit is contained in:
enhuiz 2023-01-13 13:35:06 +08:00
parent 71c85e8a2b
commit 8355bc62bb

View File

@ -14,10 +14,7 @@ def write_version(version_core, pre_release=True):
time = shell("git", "log", "-1", "--format=%cd", "--date=iso")
time = datetime.strptime(time, "%Y-%m-%d %H:%M:%S %z")
time = time.strftime("%Y%m%d%H%M%S")
dirty = shell("git", "status", "--porcelain")
version = f"{version_core}-dev{time}"
if dirty:
version += ".dirty"
else:
version = version_core