Skip to content

Commit 49171c5

Browse files
authored
Merge branch 'master' into feature-js-console-output
2 parents 818cd57 + 74d7cd0 commit 49171c5

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ well)::
3131

3232
pip install cwlref-runner
3333

34-
If installling alongside another CWL implementation then::
34+
If installing alongside another CWL implementation then::
3535

3636
pip install cwltool
3737

@@ -77,7 +77,7 @@ the default cwl-runner use::
7777
Use with boot2docker
7878
--------------------
7979
boot2docker is running docker inside a virtual machine and it only mounts ``Users``
80-
on it. The default behavoir of CWL is to create temporary directories under e.g.
80+
on it. The default behavior of CWL is to create temporary directories under e.g.
8181
``/Var`` which is not accessible to Docker containers.
8282

8383
To run CWL successfully with boot2docker you need to set the ``--tmpdir-prefix``

cwltool/load_tool.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def validate_document(document_loader, # type: Loader
133133
enable_dev=False, # type: bool
134134
strict=True, # type: bool
135135
preprocess_only=False, # type: bool
136-
fetcher_constructor=None
136+
fetcher_constructor=None,
137+
skip_schemas=None
137138
# type: Callable[[Dict[unicode, unicode], requests.sessions.Session], Fetcher]
138139
):
139140
# type: (...) -> Tuple[Loader, Names, Union[Dict[Text, Any], List[Dict[Text, Any]]], Dict[Text, Any], Text]
@@ -180,9 +181,10 @@ def validate_document(document_loader, # type: Loader
180181
raise avsc_names
181182

182183
processobj = None # type: Union[CommentedMap, CommentedSeq, unicode]
184+
183185
document_loader = Loader(sch_document_loader.ctx, schemagraph=sch_document_loader.graph,
184186
idx=document_loader.idx, cache=sch_document_loader.cache,
185-
fetcher_constructor=fetcher_constructor)
187+
fetcher_constructor=fetcher_constructor, skip_schemas=skip_schemas)
186188

187189
_add_blank_ids(workflowobj)
188190

cwltool/main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
141141
exgroup.add_argument("--non-strict", action="store_false", help="Lenient validation (ignore unrecognized fields)",
142142
default=True, dest="strict")
143143

144+
parser.add_argument("--skip-schemas", action="store_true",
145+
help="Skip loading of schemas", default=True, dest="skip_schemas")
146+
144147
exgroup = parser.add_mutually_exclusive_group()
145148
exgroup.add_argument("--verbose", action="store_true", help="Default logging")
146149
exgroup.add_argument("--quiet", action="store_true", help="Only print warnings and errors.")
@@ -637,6 +640,7 @@ def main(argsl=None, # type: List[str]
637640
'enable_dev': False,
638641
'enable_ext': False,
639642
'strict': True,
643+
'skip_schemas': False,
640644
'rdf_serializer': None,
641645
'basedir': None,
642646
'tool_help': False,
@@ -704,7 +708,8 @@ def main(argsl=None, # type: List[str]
704708
= validate_document(document_loader, workflowobj, uri,
705709
enable_dev=args.enable_dev, strict=args.strict,
706710
preprocess_only=args.print_pre or args.pack,
707-
fetcher_constructor=fetcher_constructor)
711+
fetcher_constructor=fetcher_constructor,
712+
skip_schemas=args.skip_schemas)
708713

709714
if args.pack:
710715
stdout.write(print_pack(document_loader, processobj, uri, metadata))

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ ruamel.yaml==0.13.7
33
rdflib==4.2.2
44
rdflib-jsonld==0.4.0
55
shellescape==3.4.1
6-
schema-salad>=2.4.20170308171942,<3
6+
schema-salad>=2.5.20170623152720,<3
77
typing==3.5.2.2 ; python_version>="2.7"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
'ruamel.yaml >= 0.12.4',
5959
'rdflib >= 4.2.2, < 4.3.0',
6060
'shellescape >= 3.4.1, < 3.5',
61-
'schema-salad >= 2.4.20170308171942, < 3',
61+
'schema-salad >= 2.5.20170623152720, < 3',
6262
'typing >= 3.5.2, < 3.6',
6363
'six >= 1.8.0',
6464
],

0 commit comments

Comments
 (0)