Skip to content

Commit 6fb2969

Browse files
authored
Merge pull request #54 from common-workflow-language/newer-ruamel
switch to latest ruamel.yaml with native types
2 parents fefc957 + bc57aa0 commit 6fb2969

File tree

11 files changed

+7
-65
lines changed

11 files changed

+7
-65
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ list-author-emails:
170170
@git log --format='%aN,%aE' | sort -u | grep -v 'root'
171171

172172
mypy: ${PYSOURCES}
173+
rm -Rf typeshed/2.7/ruamel/yaml
174+
ln -s $(shell python -c 'from __future__ import print_function; import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))') \
175+
typeshed/2.7/ruamel/
173176
MYPYPATH=typeshed/2.7 mypy --py2 --disallow-untyped-calls \
174177
--fast-parser --warn-redundant-casts --warn-unused-ignores \
175178
schema_salad

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
requests
2-
ruamel.yaml==0.11.11
2+
ruamel.yaml==0.12.4
33
rdflib>=4.1.
44
rdflib-jsonld>=0.3.0
55
mistune

schema_salad/ref_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def fetch(self, url, inject_ids=True): # type: (unicode, bool) -> Any
650650
textIO = StringIO(text)
651651
textIO.name = url # type: ignore
652652
result = yaml.load(textIO, Loader=SafeLoader)
653-
except yaml.parser.ParserError as e: # type: ignore
653+
except yaml.parser.ParserError as e:
654654
raise validate.ValidationException("Syntax error %s" % (e))
655655
if isinstance(result, dict) and inject_ids and self.identifiers:
656656
for identifier in self.identifiers:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
install_requires = [
3131
'requests',
32-
'ruamel.yaml == 0.11.11',
32+
'ruamel.yaml == 0.12.4',
3333
'rdflib >= 4.1.0',
3434
'rdflib-jsonld >= 0.3.0',
3535
'mistune',

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ whitelist_externals = make
1616
deps =
1717
mypy-lang>=0.4
1818
typed-ast
19+
-rrequirements.txt
1920

2021
[testenv:py35-lint]
2122
commands = flake8 schema_salad setup.py

typeshed/2.7/ruamel/yaml/__init__.pyi

Lines changed: 0 additions & 7 deletions
This file was deleted.

typeshed/2.7/ruamel/yaml/cyaml.pyi

Lines changed: 0 additions & 8 deletions
This file was deleted.

typeshed/2.7/ruamel/yaml/error.pyi

Lines changed: 0 additions & 9 deletions
This file was deleted.

typeshed/2.7/ruamel/yaml/loader.pyi

Lines changed: 0 additions & 9 deletions
This file was deleted.

typeshed/2.7/ruamel/yaml/main.pyi

Lines changed: 0 additions & 21 deletions
This file was deleted.

typeshed/2.7/ruamel/yaml/parser.pyi

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)