Skip to content

Commit c8f5848

Browse files
mr-ctetron
authored andcommitted
test of switch to ruamel.yaml (#108)
1 parent f2d756f commit c8f5848

File tree

7 files changed

+5
-10
lines changed

7 files changed

+5
-10
lines changed

cwltool/cwltest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import sys
88
import shutil
99
import tempfile
10-
import yaml
11-
import yaml.scanner
10+
import ruamel.yaml as yaml
11+
import ruamel.yaml.scanner as yamlscanner
1212
import pipes
1313
import logging
1414
import schema_salad.ref_resolver
@@ -92,7 +92,7 @@ def run_test(args, i, t): # type: (argparse.Namespace, Any, Dict[str,str]) -> i
9292
_logger.error(t.get("doc"))
9393
_logger.error("Returned non-zero")
9494
return 1
95-
except (yaml.scanner.ScannerError, TypeError) as e:
95+
except (yamlscanner.ScannerError, TypeError) as e:
9696
_logger.error(u"""Test failed: %s""", " ".join([pipes.quote(tc) for tc in test_command]))
9797
_logger.error(outstr)
9898
_logger.error(u"Parse error %s", str(e))

cwltool/draft2tool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import os
77
from .pathmapper import PathMapper, DockerPathMapper
88
from .job import CommandLineJob
9-
import yaml
109
import glob
1110
import logging
1211
import hashlib

cwltool/expression.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import logging
66
import os
77
from .errors import WorkflowException
8-
import yaml
98
import schema_salad.validate as validate
109
import schema_salad.ref_resolver
1110
from . import sandboxjs

cwltool/job.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import tempfile
55
import glob
66
import json
7-
import yaml
87
import logging
98
import sys
109
import requests

cwltool/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import tempfile
2020
import schema_salad.jsonld_context
2121
import schema_salad.makedoc
22-
import yaml
22+
import ruamel.yaml as yaml
2323
import urlparse
2424
import pkg_resources # part of setuptools
2525
import rdflib

cwltool/process.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import json
55
import schema_salad.validate as validate
66
import copy
7-
import yaml
8-
import copy
97
import logging
108
import pprint
119
from .utils import aslist, get_feature

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'schemas/draft-4/salad/schema_salad/metaschema/*.md']},
3838
install_requires=[
3939
'requests',
40-
'PyYAML',
40+
'ruamel.yaml',
4141
'rdflib >= 4.1.0',
4242
'rdflib-jsonld >= 0.3.0',
4343
'shellescape',

0 commit comments

Comments
 (0)