Skip to content

Commit 823f378

Browse files
committed
Merge remote-tracking branch 'origin/master' into check-file-support-http
2 parents b1d7b69 + 98a5bea commit 823f378

File tree

12 files changed

+17
-72
lines changed

12 files changed

+17
-72
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
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
@@ -182,6 +185,8 @@ jenkins:
182185
sloccount.sc pep8_report.txt pylint_report.txt
183186
if ! test -d env3 ; then virtualenv -p python3 env3 ; fi
184187
. env3/bin/activate ; \
185-
pip install -U mypy-lang typed-ast; ${MAKE} mypy
188+
pip install -U setuptools pip wheel ; \
189+
${MAKE} install-dep ; \
190+
pip install -U mypy-lang typed-ast ; ${MAKE} mypy
186191

187192
FORCE:

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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
6-
typing ; python_version>="2.7"
6+
typing>=3.5.2 ; python_version>="2.7"
77
avro ; python_version<"3"
88
avro-python3 ; python_version>="3"
9-
9+
CacheControl
10+
lockfile

schema_salad/makedoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import copy
66
import re
77
import sys
8-
import StringIO
8+
from StringIO import StringIO
99
import logging
1010
import urlparse
1111
from .aslist import aslist
@@ -153,7 +153,7 @@ class RenderType(object):
153153

154154
def __init__(self, toc, j, renderlist, redirects):
155155
# type: (ToC, List[Dict], str, Dict) -> None
156-
self.typedoc = StringIO.StringIO()
156+
self.typedoc = StringIO()
157157
self.toc = toc
158158
self.subs = {} # type: Dict[str, str]
159159
self.docParent = {} # type: Dict[str, List]

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
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',
36-
'typing',
36+
'typing >= 3.5.2',
3737
'CacheControl',
3838
'lockfile']
3939

@@ -46,7 +46,7 @@
4646
extras_require = {} # TODO: to be removed when the above is added
4747

4848
setup(name='schema-salad',
49-
version='1.16',
49+
version='1.17',
5050
description='Schema Annotations for Linked Avro Data (SALAD)',
5151
long_description=open(README).read(),
5252
author='Common workflow language working group',

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)