Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 3449645

Browse files
author
Anton Khodak
committed
Move version reference
1 parent d6527ee commit 3449645

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cmdline2cwl/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
logging.basicConfig(level=logging.INFO)
77
logger = logging.getLogger(__name__)
88

9+
__version__ = '0.3.1'
10+
911

1012
def load_argparse():
1113
ARGPARSE_NUMBER = 1

cmdline2cwl/cwl_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from jinja2 import Environment, FileSystemLoader
55

6+
from cmdline2cwl import __version__
67

78
class Param:
89
def __init__(self, id, type, position=None, description=None, default=None, prefix=None, optional=False, items_type=None, **kwargs):
@@ -59,7 +60,7 @@ def export(self):
5960
outputs = outputs_template.render(tool=self)
6061
import argparse
6162
return main_template.render(tool=self,
62-
version=argparse.__version__,
63+
version=__version__,
6364
formcommand=self.formcommand,
6465
stripped_options_command=re.sub('-.*', '', self.formcommand),
6566
basecommand=self.basecommands,

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
from setuptools import setup
55

6-
__version__ = '0.3.1'
7-
6+
from cmdline2cwl import __version__
87

98
if sys.argv[-1] == 'publish':
109
os.system("python setup.py sdist bdist_wheel upload; git push")

0 commit comments

Comments
 (0)