diff options
author | George Kraft <george.kraft@calxeda.com> | 2012-09-14 14:39:36 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2012-09-14 14:39:36 -0500 |
commit | 00108381e60bd081f4c69da553737148eeb221a6 (patch) | |
tree | b83874c2e85cf9183822ae1c28bf9728d20de4c6 | |
parent | 67b26c2d8d40cd991ddbfe06a5db63dbacf76284 (diff) | |
download | cxmanage-00108381e60bd081f4c69da553737148eeb221a6.tar.gz |
bump to version 0.5.0
Also bump pyipmi requirement to 0.4.0
-rwxr-xr-x | scripts/cxmanage | 16 | ||||
-rwxr-xr-x | setup.py | 4 |
2 files changed, 11 insertions, 9 deletions
diff --git a/scripts/cxmanage b/scripts/cxmanage index 606a85f..0535408 100755 --- a/scripts/cxmanage +++ b/scripts/cxmanage @@ -42,6 +42,8 @@ import pkg_resources from cxmanage.controller import Controller +PYIPMI_VERSION = '0.4.0' + # Load plugins PREFIX = 'cxmanage_plugin' PLUGINS = [__import__(x[1]) for x in pkgutil.iter_modules() @@ -283,19 +285,19 @@ def main(): def check_versions(): """Check versions of dependencies""" # Check pyipmi version - required_pyipmi_version = '0.3.0' try: - pyipmi_version = pkg_resources.require('pyipmi')[0].version - if pyipmi_version != required_pyipmi_version: - print 'ERROR: cxmanage requires pyipmi version %s'\ - % required_pyipmi_version - print 'Current pyipmi version is %s' % pyipmi_version - sys.exit(1) + pkg_resources.require('pyipmi>=%s' % PYIPMI_VERSION) except pkg_resources.DistributionNotFound: print 'ERROR: cxmanage requires pyipmi version %s'\ % required_pyipmi_version print 'No existing version was found.' sys.exit(1) + except pkg_resources.VersionConflict: + version = pkg_resources.require('pyipmi')[0].version + print 'ERROR: cxmanage requires pyipmi version %s' % PYIPMI_VERSION + print 'Current pyipmi version is %s' % version + sys.exit(1) + # Check ipmitool version if 'IPMITOOL_PATH' in os.environ: @@ -33,14 +33,14 @@ from setuptools import setup setup( name='cxmanage', - version='0.4.0', + version='0.5.0', packages=['cxmanage'], scripts=['scripts/cxmanage', 'scripts/cxpackage'], package_data={'cxmanage': ['data/cids', 'data/registers']}, description='Calxeda Management Utility', # NOTE: As of right now, the pyipmi version requirement needs to be updated # in the scripts/cxmanage check_versions() function as well. - install_requires=['tftpy', 'pyipmi>=0.3.0', 'argparse'], + install_requires=['tftpy', 'pyipmi>=0.4.0', 'argparse'], classifiers=[ 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7'] |