Skip to content

Commit

Permalink
Merge pull request #47 from kaczmarj/fix-version
Browse files Browse the repository at this point in the history
Fix for version issue
  • Loading branch information
Jakub Kaczmarzyk committed Jul 7, 2017
2 parents 2de83ba + 89d8374 commit 791f42b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

BASE_PATH = os.path.dirname(os.path.realpath(__file__))

def _get_version():
def _get_version(filepath):
"""Return version string."""
with open(os.path.join(BASE_PATH, "neurodocker", "VERSION"), 'r') as fp:
with open(filepath, 'r') as fp:
return fp.read().strip()

__version__ = _get_version()
version_file = os.path.join(BASE_PATH, "neurodocker", "VERSION")
__version__ = _get_version(version_file)


setup(name='neurodocker',
Expand All @@ -19,6 +20,8 @@ def _get_version():
author='Jakub Kaczmarzyk',
author_email='[email protected]',
packages=find_packages(),
package_data={'': [version_file]},
include_package_data=True,
install_requires = [
'requests>=2.0',
'docker>=2.3'
Expand Down

0 comments on commit 791f42b

Please sign in to comment.