diff --git a/.gitignore b/.gitignore index 2facc5b..625ae2b 100644 --- a/.gitignore +++ b/.gitignore @@ -125,3 +125,6 @@ scripts/.idea/** generated *.3dm + +recipe/** +!recipe/sha256.py diff --git a/recipe/sha256.py b/recipe/sha256.py new file mode 100644 index 0000000..3c84a4c --- /dev/null +++ b/recipe/sha256.py @@ -0,0 +1,10 @@ +import hashlib +from pathlib import Path + +FILE = Path(__file__).parent / "compas_cgal-0.6.0.tar.gz" + +with open(FILE, "rb") as f: + data = f.read() + h = hashlib.sha256(data).hexdigest() + +print(h)