From 4813fcac08dd348537dff640c9b1a6ece870cb17 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 10 May 2021 12:02:18 +0200 Subject: [PATCH] include version tuple in manifest --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index adac00d2..1c899402 100644 --- a/setup.py +++ b/setup.py @@ -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")