Moving version information to central location

This commit is contained in:
gary-hessler 2014-05-23 14:58:38 -06:00
parent 1e790a0036
commit ce5d0c6918
3 changed files with 7 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import re
import imp
from optparse import OptionParser, Values
from cStringIO import StringIO
from version import __version__
import yaml
@ -56,7 +57,7 @@ def get_parsed_args():
def get_version():
return "1.0.3"
return __version__
def skip_leading_wsp(f):

View File

@ -0,0 +1 @@
__version__ = '1.0.3'

View File

@ -3,6 +3,9 @@ import sys
from setuptools import setup, find_packages
# Read in the version
exec(open('monagent/common/version.py').read())
# Prereqs of the build. Won't get installed when deploying the egg.
setup_requires = [
]
@ -112,7 +115,7 @@ setup(
name='mon-agent',
maintainer="Tim Kuhlman",
maintainer_email="tim.kuhlman@hp.com",
version='1.0.3',
version=__version__,
description="Collects metrics from the host it is installed on and sends to the monitroing api",
classifiers=[
"Development Status :: 5 - Production/Stable",