Skip to content

Commit

Permalink
Merge branch 'master' of github.com:barnybug/cli53
Browse files Browse the repository at this point in the history
* 'master' of github.com:barnybug/cli53:
  0.3.3
  check boto version
  • Loading branch information
barnybug committed Sep 13, 2012
2 parents 2778ff1 + 8927c33 commit d330525
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.markdown
Expand Up @@ -110,6 +110,10 @@ inconsistent. You have been warned!

Changelog
---------
0.3.3

- Check boto version

0.3.2

- Added functionality to rrlist, rrcreate, import and export so that
Expand Down
13 changes: 11 additions & 2 deletions scripts/cli53
Expand Up @@ -9,8 +9,6 @@ import itertools
from cStringIO import StringIO
from time import sleep

# needs latest boto from github: http://github.com/boto/boto
# git clone git://github.com/boto/boto
try:
import boto.route53, boto.jsonresponse, boto.exception
except ImportError, ex:
Expand All @@ -19,6 +17,17 @@ except ImportError, ex:
print "(error was: %s)" % ex
sys.exit(-1)

# check boto version
m = re.match('(\d+)\.(\d+)(?:\.(\d+)|b\d+)', boto.__version__)
if m:
major, minor, other = m.groups()
major = int(major)
minor = int(minor)
if major < 2 or minor < 1:
print "Please update boto %s >= 2.1.0" % boto.__version__
print "pip install --upgrade boto"
sys.exit(-1)

import argparse
from argparse import ArgumentTypeError
from types import StringTypes
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,6 +1,6 @@
from setuptools import setup

__version__ = '0.3.2'
__version__ = '0.3.3'
long_description = file('README','r').read()

setup(name='cli53',
Expand Down

0 comments on commit d330525

Please sign in to comment.