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

Commit 17e5e87

Browse files
committed
fix tests for new version with multiline handling of doc
1 parent e6a8378 commit 17e5e87

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

cwlgen/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, tool_id=None, base_command=None, label=None, doc=None,
8080
self.outputs = [] # List of [CommandOutputParameter] objects
8181
self.baseCommand = base_command
8282
self.arguments = [] # List of [CommandLineBinding] objects
83-
self.doc = literal(doc)
83+
self.doc = doc
8484
self.stdin = stdin
8585
self.stderr = stderr
8686
self.stdout = stdout
@@ -98,9 +98,9 @@ def export(self, outfile=None):
9898
cwl_tool = {k: v for k, v in vars(self).items() if v is not None and\
9999
type(v) is str}
100100
cwl_tool['class'] = self.__CLASS__
101-
# Add doc
101+
# Treat doc for multiline writting
102102
if self.doc:
103-
cwl_tool['doc'] = self.doc
103+
cwl_tool['doc'] = literal(self.doc)
104104
# Add Inputs
105105
if self.inputs:
106106
cwl_tool['inputs'] = {}

cwlgen/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version_info = (0,2,4)
1+
version_info = (0,2,3)
22
__version__ = '.'.join(str(c) for c in version_info)

doc/source/changelogs.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ Summary of developments of Python-cwlgen library.
1111
v0.2
1212
====
1313

14-
v0.2.4
15-
------
16-
17-
* Bug fix: fix dumping in out_file
18-
1914
v0.2.3
2015
------
2116

17+
* Bug fix: fix dumping in out_file
2218
* Handle multiline for doc in CWL tool
2319

2420
v0.2.2

0 commit comments

Comments
 (0)