Skip to content
Snippets Groups Projects
Commit 20d8f078 authored by MJB's avatar MJB
Browse files

adding commit count

parent 9ab8967a
No related branches found
No related tags found
No related merge requests found
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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment