Skip to content

Commit

Permalink
Fixing version in command-line tools
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Nov 27, 2019
1 parent 0a77081 commit fd91dcc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
5 changes: 4 additions & 1 deletion GooseHDF5/cli/G5check.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
import re
import h5py
import docopt
import pkg_resources

__version__ = pkg_resources.require("GooseHDF5")[0].version

from .. import *

Expand Down Expand Up @@ -61,7 +64,7 @@ def read(filename, check):
def main():

# parse command-line options
args = docopt.docopt(__doc__,version='0.0.2')
args = docopt.docopt(__doc__, version=__version__)

# check that file exists
check_isfile(args['<source>'])
Expand Down
5 changes: 4 additions & 1 deletion GooseHDF5/cli/G5compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
import re
import h5py
import docopt
import pkg_resources

__version__ = pkg_resources.require("GooseHDF5")[0].version

from .. import *

Expand Down Expand Up @@ -152,7 +155,7 @@ def check_renamed(source, other, renamed):
def main():

# parse command-line options
args = docopt.docopt(__doc__,version='0.0.1')
args = docopt.docopt(__doc__, version=__version__)

# check that file exists
check_isfile(args['<source>'])
Expand Down
5 changes: 4 additions & 1 deletion GooseHDF5/cli/G5list.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
import re
import h5py
import docopt
import pkg_resources

__version__ = pkg_resources.require("GooseHDF5")[0].version

from .. import *

Expand Down Expand Up @@ -98,7 +101,7 @@ def print_info(source, paths):
def main():

# parse command-line options
args = docopt.docopt(__doc__,version='0.0.3')
args = docopt.docopt(__doc__, version=__version__)

# check that file exists
check_isfile(args['<source>'])
Expand Down
5 changes: 4 additions & 1 deletion GooseHDF5/cli/G5repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
import re
import h5py
import docopt
import pkg_resources

__version__ = pkg_resources.require("GooseHDF5")[0].version

from .. import *

Expand All @@ -46,7 +49,7 @@ def check_isfile(fname):
def main():

# parse command-line options
args = docopt.docopt(__doc__,version='0.0.2')
args = docopt.docopt(__doc__, version=__version__)

# check that file exists
check_isfile(args['<source>'])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name = 'GooseHDF5',
version = '0.1.0',
version = '0.1.1',
license = 'MIT',
author = 'Tom de Geus',
author_email = 'tom@geus.me',
Expand Down

0 comments on commit fd91dcc

Please sign in to comment.