Skip to content

Commit 58fca55

Browse files
authored
Merge pull request #26 from illusional/update-parsers-and-schema-salad
Update parsers + schema salad (>=7 <8)
2 parents 0f1a446 + efb5bd7 commit 58fca55

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cwl_utils/parser_v1_0.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ruamel import yaml
2727
from ruamel.yaml.comments import CommentedMap
2828
from schema_salad.exceptions import SchemaSaladException, ValidationException
29-
from schema_salad.ref_resolver import Fetcher
29+
from schema_salad.fetcher import DefaultFetcher, Fetcher
3030
from schema_salad.sourceline import SourceLine, add_lc_filename
3131

3232
_vocab = {} # type: Dict[str, str]
@@ -70,7 +70,6 @@ def __init__(
7070
import requests
7171
from cachecontrol.wrapper import CacheControl
7272
from cachecontrol.caches import FileCache
73-
from schema_salad.ref_resolver import DefaultFetcher
7473

7574
if "HOME" in os.environ:
7675
session = CacheControl(

cwl_utils/parser_v1_1.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from ruamel import yaml
2727
from ruamel.yaml.comments import CommentedMap
2828
from schema_salad.exceptions import SchemaSaladException, ValidationException
29-
from schema_salad.ref_resolver import Fetcher
29+
from schema_salad.fetcher import DefaultFetcher, Fetcher
3030
from schema_salad.sourceline import SourceLine, add_lc_filename
3131

3232
_vocab = {} # type: Dict[str, str]
@@ -70,7 +70,6 @@ def __init__(
7070
import requests
7171
from cachecontrol.wrapper import CacheControl
7272
from cachecontrol.caches import FileCache
73-
from schema_salad.ref_resolver import DefaultFetcher
7473

7574
if "HOME" in os.environ:
7675
session = CacheControl(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'ruamel.yaml',
1515
'six',
1616
'requests',
17-
'schema_salad <7',
17+
'schema-salad >= 7, < 8',
1818
'typing_extensions',
1919
],
2020
setup_requires=['pytest-runner'],

0 commit comments

Comments
 (0)