Moving version information to central location
This commit is contained in:
parent
1e790a0036
commit
ce5d0c6918
|
@ -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):
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
__version__ = '1.0.3'
|
5
setup.py
5
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue