Skip to content

Commit 9652bb9

Browse files
author
Peter Amstutz
committed
Accept v1.1 stable WIP
1 parent c37f6cf commit 9652bb9

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

cwltool/executors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def execute(self,
8181
raise WorkflowException(
8282
"`cwl:requirements` in the input object is not part of CWL "
8383
"v1.0. You can adjust to use `cwltool:overrides` instead; or you "
84-
"can set the cwlVersion to v1.1.0-dev1 or greater and re-run with "
85-
"--enable-dev.")
84+
"can set the cwlVersion to v1.1")
8685
job_reqs = job_order_object["https://w3id.org/cwl/cwl#requirements"]
8786
elif ("cwl:defaults" in process.metadata
8887
and "https://w3id.org/cwl/cwl#requirements"
@@ -91,8 +90,7 @@ def execute(self,
9190
raise WorkflowException(
9291
"`cwl:requirements` in the input object is not part of CWL "
9392
"v1.0. You can adjust to use `cwltool:overrides` instead; or you "
94-
"can set the cwlVersion to v1.1.0-dev1 or greater and re-run with "
95-
"--enable-dev.")
93+
"can set the cwlVersion to v1.1")
9694
job_reqs = process.metadata["cwl:defaults"]["https://w3id.org/cwl/cwl#requirements"]
9795
if job_reqs is not None:
9896
for req in job_reqs:

cwltool/load_tool.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,11 @@ def resolve_and_validate_document(loadingContext,
259259
del jobobj["http://commonwl.org/cwltool#overrides"]
260260

261261
if isinstance(jobobj, CommentedMap) and "https://w3id.org/cwl/cwl#requirements" in jobobj:
262-
if cwlVersion not in ("v1.1.0-dev1",):
262+
if cwlVersion not in ("v1.1.0-dev1","v1.1"):
263263
raise ValidationException(
264264
"`cwl:requirements` in the input object is not part of CWL "
265265
"v1.0. You can adjust to use `cwltool:overrides` instead; or you "
266-
"can set the cwlVersion to v1.1.0-dev1 or greater and re-run with "
267-
"--enable-dev.")
266+
"can set the cwlVersion to v1.1 or greater.")
268267
loadingContext.overrides_list.append({"overrideTarget": uri,
269268
"requirements": jobobj["https://w3id.org/cwl/cwl#requirements"]})
270269
del jobobj["https://w3id.org/cwl/cwl#requirements"]

cwltool/update.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
from .utils import visit_class, visit_field, aslist
2020

2121

22-
def v1_0to1_1_0dev1(doc, loader, baseuri): # pylint: disable=unused-argument
22+
def v1_0to1_1(doc, loader, baseuri): # pylint: disable=unused-argument
2323
# type: (Any, Loader, Text) -> Tuple[Any, Text]
24-
"""Public updater for v1.0 to v1.1.0-dev1."""
24+
"""Public updater for v1.0 to v1.1."""
2525

2626
doc = copy.deepcopy(doc)
2727

@@ -76,22 +76,26 @@ def fix_inputBinding(t):
7676
if "cwlVersion" in proc:
7777
del proc["cwlVersion"]
7878

79-
return (doc, "v1.1.0-dev1")
79+
return (doc, "v1.1")
8080

81+
def v1_1_0dev1to1_1(doc, loader, baseuri): # pylint: disable=unused-argument
82+
return (doc, "v1.1")
8183

8284
UPDATES = {
83-
u"v1.0": v1_0to1_1_0dev1
85+
u"v1.0": v1_0to1_1,
86+
u"v1.1": None
8487
} # type: Dict[Text, Optional[Callable[[Any, Loader, Text], Tuple[Any, Text]]]]
8588

8689
DEVUPDATES = {
87-
u"v1.0": v1_0to1_1_0dev1,
88-
u"v1.1.0-dev1": None
90+
u"v1.0": v1_0to1_1,
91+
u"v1.1.0-dev1": v1_1_0dev1to1_1,
92+
u"v1.1": None
8993
} # type: Dict[Text, Optional[Callable[[Any, Loader, Text], Tuple[Any, Text]]]]
9094

9195
ALLUPDATES = UPDATES.copy()
9296
ALLUPDATES.update(DEVUPDATES)
9397

94-
INTERNAL_VERSION = u"v1.1.0-dev1"
98+
INTERNAL_VERSION = u"v1.1"
9599

96100
def identity(doc, loader, baseuri): # pylint: disable=unused-argument
97101
# type: (Any, Loader, Text) -> Tuple[Any, Union[Text, Text]]

0 commit comments

Comments
 (0)