Skip to content

Commit

Permalink
Moved version.txt back to the root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Oct 19, 2018
1 parent d70ed9a commit d487559
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bidscoin/bids.py
Expand Up @@ -31,7 +31,7 @@ def version():
:rtype float
"""

with open(os.path.join(os.path.dirname(__file__),'version.txt')) as fid:
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)),'version.txt')) as fid:
version = fid.read().strip()

return float(version)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -5,7 +5,7 @@
from setuptools import setup, find_packages

# Read the version from bids.py
with open(path.join(path.dirname(__file__), 'bidscoin', 'version.txt')) as fid:
with open(path.join(path.dirname(__file__), 'version.txt')) as fid:
version = fid.read().strip()

# Read the contents of the README file
Expand All @@ -23,7 +23,7 @@
version = version, # Required
packages = find_packages(), # Required
install_requires = requirements,
package_data = {'bidscoin': ['version.txt'],
package_data = {'bidscoin': ['../version.txt'],
'heuristics': sample_files,
'': ['*.yaml']},
include_package_data = True,
Expand Down
File renamed without changes.

0 comments on commit d487559

Please sign in to comment.