From a1a3e91d5ac3d79871eae6461526e04659b5f5ca Mon Sep 17 00:00:00 2001 From: iprada Date: Mon, 26 Aug 2019 15:39:53 +0200 Subject: [PATCH] Circle-Map reports the correct version now --- circlemap/circle_map.py | 6 +++--- setup.py | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/circlemap/circle_map.py b/circlemap/circle_map.py index 2e6aaab..d20d6ad 100755 --- a/circlemap/circle_map.py +++ b/circlemap/circle_map.py @@ -38,7 +38,7 @@ import subprocess as sp import glob from tqdm import * - +from circlemap.__version__ import __version__ as cm_version class circle_map: @@ -52,7 +52,7 @@ def __init__(self): description='Circle-Map', usage='''Circle-Map [options] -version=1.0 +version=%s contact= https://github.com/iprada/Circle-Map/issues The Circle-Map suite @@ -64,7 +64,7 @@ def __init__(self): Repeats Identify circular DNA from repetitive regions Simulate Simulate circular DNA -''') +''' % cm_version) subparsers = self.parser.add_subparsers() self.readextractor = subparsers.add_parser( diff --git a/setup.py b/setup.py index 1d2e1e4..4ef47bb 100644 --- a/setup.py +++ b/setup.py @@ -21,12 +21,10 @@ #SOFTWARE. from setuptools import setup,find_packages - - - +from circlemap.__version__ import __version__ setup(name='Circle-Map', - version='1.0.4', + version=__version__, description='Circular DNA analysis tools', author='Inigo Prada-Luengo', url='https://github.com/iprada/Circle-Map',