Skip to content

Commit bf18811

Browse files
committed
add hash function for conda recipe
1 parent a9c4f4a commit bf18811

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

recipe/sha256.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import hashlib
2+
from pathlib import Path
3+
4+
FILE = Path(__file__).parent / "compas_occ-1.3.0.tar.gz"
5+
6+
with open(FILE, "rb") as f:
7+
data = f.read()
8+
h = hashlib.sha256(data).hexdigest()
9+
10+
print(h)

0 commit comments

Comments
 (0)