From 20d8f078d919f81d041fc5169fa907d568f3243d Mon Sep 17 00:00:00 2001
From: MJB <mjb@it-innovation.soton.ac.uk>
Date: Sun, 25 Mar 2018 17:05:16 +0100
Subject: [PATCH] adding commit count

---
 setup.py | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/setup.py b/setup.py
index 843d5fa..1ce9a41 100644
--- a/setup.py
+++ b/setup.py
@@ -1,26 +1,12 @@
 import os
-import subprocess
-import time
 from setuptools import setup, find_packages
 
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read()
 
-def get_git_commit():
-    (out, err, return_code) = run_command('git rev-list --count integration')
-    print ("commit {0}".format(return_code))
-    exit
-    return out
-
-def run_command(cmd):
-    proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)
-    out, err = proc.communicate()
-    return_code = proc.returncode
-    return out, err, return_code
-
 setup(
     name = "clmctest",
-    version = get_git_commit(),
+    version = read('.build-config/git-commit-version'),
     author = "Michael Boniface",
     author_email = "mjb@it-innovation.soton.ac.uk",
     description = "FLAME CLMC Testing Module",
-- 
GitLab