Package list ctdconverter / d76103f
correct file Michael R. Crusoe 3 years ago
3 changed file(s) with 25 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 ctdconverter (2.0-3) UNRELEASED; urgency=medium
0 ctdconverter (2.0-3) unstable; urgency=medium
11
22 * Add missing build-dep on 2to3
33 * Quiet 2to3 conversion
44
5 -- Michael R. Crusoe <michael.crusoe@gmail.com> Thu, 22 Feb 2018 02:08:21 -0800
5 -- Michael R. Crusoe <michael.crusoe@gmail.com> Thu, 22 Feb 2018 08:19:00 -0800
66
77 ctdconverter (2.0-2) unstable; urgency=medium
88
0 From: Michael R. Crusoe <michael.crusoe@gmail.com>
1 Subject: use `open` instead of `file`
2 --- ctdconverter.orig/cwl/converter.py
3 +++ ctdconverter/cwl/converter.py
4 @@ -72,7 +72,7 @@
5
6 logger.info("Writing to %s" % utils.get_filename(output_file), 1)
7
8 - stream = file(output_file, 'w')
9 + stream = open(output_file, 'w')
10 stream.write(CWL_SHEBANG + '\n\n')
11 stream.write("# This CWL file was automatically generated using CTDConverter.\n")
12 stream.write("# Visit https://github.com/WorkflowConversion/CTDConverter for more information.\n\n")
13 @@ -103,6 +103,8 @@
14 param_name = utils.extract_param_name(param)
15 cwl_fixed_param_name = fix_param_name(param_name)
16 hardcoded_value = args.parameter_hardcoder.get_hardcoded_value(param_name, ctd_model.name)
17 + if isinstance(param.default, map):
18 + param.default = list(param.default)
19 param_default = str(param.default) if param.default is not _Null and param.default is not None else None
20
21 if param.type is _OutFile:
00 add_setup.py.patch
11 upgrade_deprecated_strip
22 correct_name
3 py3_compat