From 149dcbae2d12587fb687b81e3a1a4631f04db4d7 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 5 Jun 2013 19:27:03 +0200 Subject: hostinfo: add -V and --version to get the version The version is generated from the git-tags during build (setup.py) or during run time, if executed from the git repository. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 5a238e4..44f74a8 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ #!/usr/bin/env python from distutils.core import setup +from version import * setup(name='hostinfo-tools', - version='0.1.0', + version=get_git_version(), description='Hostinfo database interface scripts', author='Alexander Sulfrian', author_email='alex@spline.inf.fu-berlin.de', -- cgit v1.2.3-1-g7c22