Skip to content

Commit

Permalink
v1.2.7 bug fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmaxson committed Mar 31, 2020
1 parent 02407a8 commit ef5a40e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

6 changes: 1 addition & 5 deletions methylprep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
read_geo,
)
from .download import run_series, run_series_list, convert_miniml, build_composite_dataset

from .version import __version__

getLogger(__name__).addHandler(NullHandler())

Expand All @@ -27,7 +27,3 @@
'read_geo',
'build_composite_dataset',
]

from pathlib import Path
with open(Path(Path(__file__).parents[1],'VERSION')) as version_file:
__version__ = version_file.read().strip()
5 changes: 5 additions & 0 deletions methylprep/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__ = '1.2.7'
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Lib
from setuptools import setup, find_packages

with open('VERSION') as version_file:
__version__ = version_file.read().strip()
exec(open('legx_pipeline/version.py').read())

setup(
name='methylprep',
Expand Down

0 comments on commit ef5a40e

Please sign in to comment.