Skip to content

Commit

Permalink
Keep version in one place only
Browse files Browse the repository at this point in the history
  • Loading branch information
di committed Jul 31, 2015
1 parent a5dbfd9 commit 845c8e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions vladiate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from vladiate.vlad import Vlad

version = "0.0.1"
3 changes: 2 additions & 1 deletion vladiate/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import inspect
import logging
from optparse import OptionParser
from pkg_resources import get_distribution

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("vlad_logger")
Expand Down Expand Up @@ -143,7 +144,7 @@ def main():
parser, options, arguments = parse_options()

if options.show_version:
print "Vladiate %s" % (vladiate.version, )
print "Vladiate %s" % (get_distribution('vladiate').version, )
sys.exit(0)

vladfile = find_vladfile(options.vladfile)
Expand Down

0 comments on commit 845c8e9

Please sign in to comment.