include version tuple in manifest

This commit is contained in:
Fabian Dill 2021-05-10 12:02:18 +02:00
parent e50db61030
commit 4813fcac08
1 changed files with 3 additions and 1 deletions

View File

@ -48,8 +48,10 @@ def manifest_creation():
path = os.path.join(dirpath, filename)
hashes[os.path.relpath(path, start=buildfolder)] = pool.submit(_threaded_hash, path)
import json
from Utils import _version_tuple
manifest = {"buildtime": buildtime.isoformat(sep=" ", timespec="seconds"),
"hashes": {path: hash.result() for path, hash in hashes.items()}}
"hashes": {path: hash.result() for path, hash in hashes.items()},
"version": _version_tuple}
json.dump(manifest, open(manifestpath, "wt"), indent=4)
print("Created Manifest")