Skip to content

Commit

Permalink
Updating imports (#12)
Browse files Browse the repository at this point in the history
* Updating imports
* Integration "__version__" directly in module
  • Loading branch information
tdegeus committed Nov 28, 2019
1 parent fd91dcc commit 0ad2a96
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions GooseHDF5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import re
import h5py

__version__ = '0.1.2'

# ==================================================================================================

def abspath(path):
Expand Down
7 changes: 3 additions & 4 deletions GooseHDF5/cli/G5check.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@
import re
import h5py
import docopt
import pkg_resources

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

from .. import *
from .. import __version__
from .. import getdatasets
from .. import verify

# ==================================================================================================

Expand Down
6 changes: 2 additions & 4 deletions GooseHDF5/cli/G5compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@
import re
import h5py
import docopt
import pkg_resources

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

from .. import *
from .. import __version__
from .. import getpaths

# ==================================================================================================

Expand Down
6 changes: 2 additions & 4 deletions GooseHDF5/cli/G5list.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@
import re
import h5py
import docopt
import pkg_resources

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

from .. import *
from .. import __version__
from .. import getpaths

# ==================================================================================================

Expand Down
8 changes: 4 additions & 4 deletions GooseHDF5/cli/G5repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
import re
import h5py
import docopt
import pkg_resources

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

from .. import *
from .. import __version__
from .. import verify
from .. import copydatasets
from .. import getdatasets

# ==================================================================================================

Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
from setuptools import setup
from setuptools import find_packages

import re

filepath = 'GooseHDF5/__init__.py'
__version__ = re.findall(r'__version__ = \'(.*)\'', open(filepath).read())[0]

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

0 comments on commit 0ad2a96

Please sign in to comment.