From 089b22bb23ce57f6d257bee9ef01868f5dc29996 Mon Sep 17 00:00:00 2001 From: Andrew Tritt Date: Tue, 23 Mar 2021 12:06:00 -0700 Subject: [PATCH] add code to extract schema SHA --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index f90291e75..6edc26d32 100755 --- a/setup.py +++ b/setup.py @@ -19,6 +19,16 @@ print(reqs) + +### get schema SHA ### +import subprocess +import os +import sys +cwd = os.path.join(os.path.dirname(sys.argv[0]), "src/hdmf/common/hdmf-common-schema") +SHA = subprocess.check_output("git rev-parse HEAD".split(), cwd=cwd)[:-1].decode('utf-8') +print(SHA) + + setup_args = { 'name': 'hdmf', 'version': versioneer.get_version(),