Skip to content

Commit 98ca3c9

Browse files
author
Peter Amstutz
authored
Merge pull request #95 from common-workflow-language/valid_package_data
package_data must be a lists of strings
2 parents 683f8d7 + 13cb151 commit 98ca3c9

File tree

9 files changed

+220
-19
lines changed

9 files changed

+220
-19
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ matrix:
99
script:
1010
- tox
1111
- RELEASE_SKIP=head PYVER=2.7 ${TRAVIS_BUILD_DIR}/release-test.sh
12-
- os: linux
13-
language: python
14-
python: 3.4
15-
script:
16-
- tox
17-
- RELEASE_SKIP=head PYVER=3 ${TRAVIS_BUILD_DIR}/release-test.sh
1812
- os: linux
1913
language: python
2014
python: 3.5
@@ -38,9 +32,6 @@ matrix:
3832
- os: osx
3933
language: generic
4034
env: TRAVIS_PYTHON_VERSION=2.7 PYENV_VERSION=2.7.15
41-
- os: osx
42-
language: generic
43-
env: TRAVIS_PYTHON_VERSION=3.4 PYENV_VERSION=3.4.7
4435
- os: osx
4536
language: generic
4637
env: TRAVIS_PYTHON_VERSION=3.5 PYENV_VERSION=3.5.4

appveyor.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ environment:
1111
PYTHON_VERSION: "2.7.x"
1212
PYTHON_ARCH: "64"
1313

14-
- PYTHON: "C:\\Python34-x64"
15-
PYTHON_VERSION: "3.4.x"
16-
PYTHON_ARCH: "64"
17-
1814
- PYTHON: "C:\\Python35-x64"
1915
PYTHON_VERSION: "3.5.x"
2016
PYTHON_ARCH: "64"

release-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ rm lib/python-wheels/setuptools* \
6666
&& pip install --force-reinstall -U pip==${pipver} \
6767
&& pip install setuptools==${setupver} wheel
6868
pip install ${package}*tar.gz
69-
pip install pytest
69+
pip install 'pytest<5'
7070
mkdir out
7171
tar --extract --directory=out -z -f ${package}*.tar.gz
7272
pushd out/${package}*
@@ -86,7 +86,7 @@ rm lib/python-wheels/setuptools* \
8686
&& pip install --force-reinstall -U pip==${pipver} \
8787
&& pip install setuptools==${setupver} wheel
8888
pip install ${package}*.whl
89-
pip install pytest
89+
pip install 'pytest<5'
9090
mkdir not-${module}
9191
pushd not-${module} ; ../bin/${run_tests}; popd
9292
popd

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
schema-salad >= 1.14
2-
typing>=3.6,<3.7; python_version < '3.5'
2+
typing==3.7.4 ; python_version < '3.5'
33
futures >= 3.0.5; python_version == '2.7'
44
subprocess32 >= 3.5.0; python_version < '3'
55
junit-xml >= 1.8
6+
pytest < 5

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
]
2424

2525
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
26-
pytest_runner = ['pytest-runner'] if needs_pytest else []
26+
pytest_runner = ['pytest < 5', 'pytest-runner < 5'] if needs_pytest else []
2727

2828
setup(name='cwltest',
2929
version='1.0',
@@ -36,12 +36,12 @@
3636
download_url="https://github.com/common-workflow-language/cwltest",
3737
license='Apache 2.0',
3838
packages=["cwltest", "cwltest.tests"],
39-
package_data={'cwltest.tests': 'test-data/*'},
39+
package_data={'cwltest.tests': ['test-data/*']},
4040
include_package_data=True,
4141
install_requires=install_requires,
4242
test_suite='tests',
4343
setup_requires=[] + pytest_runner,
44-
tests_require=['pytest'],
44+
tests_require=['pytest<5'],
4545
entry_points={
4646
'console_scripts': ["cwltest=cwltest:main",
4747
"mock-cwl-runner=cwltest.tests.mock_cwl_runner:main"]

typeshed/2and3/future/__init__.pyi

Whitespace-only changes.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Stubs for future.utils (Python 3)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any, Optional
6+
7+
PY3: Any
8+
PY2: Any
9+
PY26: Any
10+
PYPY: Any
11+
12+
def python_2_unicode_compatible(cls): ...
13+
def with_metaclass(meta: Any, *bases: Any): ...
14+
def bstr(s: Any): ...
15+
def bord(s: Any): ...
16+
17+
def tobytes(s: Any): ...
18+
def native_str_to_bytes(s: Any, encoding: str = ...): ...
19+
def bytes_to_native_str(b: Any, encoding: str = ...): ...
20+
def text_to_native_str(t: Any, encoding: Optional[Any] = ...): ...
21+
def lrange(*args: Any, **kwargs: Any): ...
22+
def lzip(*args: Any, **kwargs: Any): ...
23+
def lmap(*args: Any, **kwargs: Any): ...
24+
def lfilter(*args: Any, **kwargs: Any): ...
25+
26+
def isidentifier(s: Any, dotted: bool = ...): ...
27+
def viewitems(obj: Any, **kwargs: Any): ...
28+
def viewkeys(obj: Any, **kwargs: Any): ...
29+
def viewvalues(obj: Any, **kwargs: Any): ...
30+
def iteritems(obj: Any, **kwargs: Any): ...
31+
def iterkeys(obj: Any, **kwargs: Any): ...
32+
def itervalues(obj: Any, **kwargs: Any): ...
33+
def bind_method(cls, name: Any, func: Any) -> None: ...
34+
def getexception(): ...
35+
def raise_(tp: Any, value: Optional[Any] = ..., tb: Optional[Any] = ...) -> None: ...
36+
def raise_from(exc: Any, cause: Any) -> None: ...
37+
def raise_with_traceback(exc: Any, traceback: Any = ...) -> None: ...
38+
reraise = raise_
39+
40+
def implements_iterator(cls): ...
41+
42+
get_next: Any
43+
44+
def encode_filename(filename: Any): ...
45+
def is_new_style(cls): ...
46+
native_str = str
47+
native_bytes = bytes
48+
49+
def istext(obj: Any): ...
50+
def isbytes(obj: Any): ...
51+
def isnewbytes(obj: Any): ...
52+
def isint(obj: Any): ...
53+
def native(obj: Any): ...
54+
55+
exec_: Any
56+
57+
def old_div(a: Any, b: Any): ...
58+
def as_native_str(encoding: str = ...): ...
59+
def listvalues(d: Any): ...
60+
def listitems(d: Any): ...
61+
def ensure_new_type(obj: Any): ...

typeshed/3/urllib/__init__.py

Whitespace-only changes.

typeshed/3/urllib/parse.pyi

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# Stubs for urllib.parse
2+
from typing import Any, List, Dict, Tuple, AnyStr, Generic, Iterator, overload, Sequence, Mapping, Union, NamedTuple, Callable, Optional
3+
import sys
4+
5+
_Str = Union[bytes, str]
6+
7+
8+
uses_relative: List[str]
9+
uses_netloc: List[str]
10+
uses_params: List[str]
11+
non_hierarchical: List[str]
12+
uses_query: List[str]
13+
uses_fragment: List[str]
14+
scheme_chars: str
15+
MAX_CACHE_SIZE = 0
16+
17+
class _ResultMixinBase(Generic[AnyStr]):
18+
def geturl(self) -> AnyStr: ...
19+
20+
class _ResultMixinStr(_ResultMixinBase[str]):
21+
def encode(self, encoding: str = ..., errors: str = ...) -> _ResultMixinBytes: ...
22+
23+
24+
class _ResultMixinBytes(_ResultMixinBase[str]):
25+
def decode(self, encoding: str = ..., errors: str = ...) -> _ResultMixinStr: ...
26+
27+
28+
class _NetlocResultMixinBase(Generic[AnyStr]):
29+
username: AnyStr
30+
password: AnyStr
31+
hostname: AnyStr
32+
port: int
33+
34+
class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ...
35+
36+
class _NetlocResultMixinBytes(_NetlocResultMixinBase[bytes], _ResultMixinBytes): ...
37+
38+
class _DefragResultBase(Generic[AnyStr]):
39+
url: AnyStr
40+
fragment: AnyStr
41+
@overload
42+
def __getitem__(self, x: slice) -> AnyStr: ...
43+
@overload
44+
def __getitem__(self, x: int) -> AnyStr: ...
45+
def __iter__(self) -> Iterator[AnyStr]: ...
46+
47+
48+
49+
_SplitResultBase = NamedTuple(
50+
'_SplitResultBase',
51+
[
52+
('scheme', str), ('netloc', str), ('path', str), ('query', str), ('fragment', str)
53+
]
54+
)
55+
_SplitResultBytesBase = NamedTuple(
56+
'_SplitResultBytesBase',
57+
[
58+
('scheme', bytes), ('netloc', bytes), ('path', bytes), ('query', bytes), ('fragment', bytes)
59+
]
60+
)
61+
62+
_ParseResultBase = NamedTuple(
63+
'_ParseResultBase',
64+
[
65+
('scheme', str), ('netloc', str), ('path', str), ('params', str), ('query', str), ('fragment', str)
66+
]
67+
)
68+
_ParseResultBytesBase = NamedTuple(
69+
'_ParseResultBytesBase',
70+
[
71+
('scheme', bytes), ('netloc', bytes), ('path', bytes), ('params', bytes), ('query', bytes), ('fragment', bytes)
72+
]
73+
)
74+
75+
# Structured result objects for string data
76+
class DefragResult(_DefragResultBase[str], _ResultMixinStr): ...
77+
78+
class SplitResult(_SplitResultBase, _NetlocResultMixinStr): ...
79+
80+
class ParseResult(_ParseResultBase, _NetlocResultMixinStr): ...
81+
82+
# Structured result objects for bytes data
83+
class DefragResultBytes(_DefragResultBase[bytes], _ResultMixinBytes): ...
84+
85+
class SplitResultBytes(_SplitResultBytesBase, _NetlocResultMixinBytes): ...
86+
87+
class ParseResultBytes(_ParseResultBytesBase, _NetlocResultMixinBytes): ...
88+
89+
90+
def parse_qs(qs: AnyStr, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> Dict[AnyStr, List[AnyStr]]: ...
91+
92+
def parse_qsl(qs: AnyStr, keep_blank_values: bool = ..., strict_parsing: bool = ..., encoding: str = ..., errors: str = ...) -> List[Tuple[AnyStr, AnyStr]]: ...
93+
94+
95+
@overload
96+
def quote(string: str, safe: _Str = ..., encoding: str = ..., errors: str = ...) -> str: ...
97+
@overload
98+
def quote(string: bytes, safe: _Str = ...) -> str: ...
99+
100+
def quote_from_bytes(bs: bytes, safe: _Str = ...) -> str: ...
101+
102+
@overload
103+
def quote_plus(string: str, safe: _Str = ..., encoding: str = ..., errors: str = ...) -> str: ...
104+
@overload
105+
def quote_plus(string: bytes, safe: _Str = ...) -> str: ...
106+
107+
def unquote(string: str, encoding: str = ..., errors: str = ...) -> str: ...
108+
109+
def unquote_to_bytes(string: _Str) -> bytes: ...
110+
111+
def unquote_plus(string: str, encoding: str = ..., errors: str = ...) -> str: ...
112+
113+
@overload
114+
def urldefrag(url: str) -> DefragResult: ...
115+
@overload
116+
def urldefrag(url: bytes) -> DefragResultBytes: ...
117+
118+
if sys.version_info >= (3, 5):
119+
def urlencode(query: Union[Mapping[Any, Any],
120+
Mapping[Any, Sequence[Any]],
121+
Sequence[Tuple[Any, Any]],
122+
Sequence[Tuple[Any, Sequence[Any]]]],
123+
doseq: bool = ..., safe: AnyStr = ..., encoding: str = ..., errors: str = ...,
124+
quote_via: Callable[[str, AnyStr, str, str], str] = ...) -> str: ...
125+
else:
126+
def urlencode(query: Union[Mapping[Any, Any],
127+
Mapping[Any, Sequence[Any]],
128+
Sequence[Tuple[Any, Any]],
129+
Sequence[Tuple[Any, Sequence[Any]]]],
130+
doseq: bool = ..., safe: AnyStr = ..., encoding: str = ..., errors: str = ...) -> str: ...
131+
132+
def urljoin(base: Optional[AnyStr], url: Optional[AnyStr], allow_fragments: bool = ...) -> AnyStr: ...
133+
134+
@overload
135+
def urlparse(url: str, scheme: str = ..., allow_fragments: bool = ...) -> ParseResult: ...
136+
@overload
137+
def urlparse(url: bytes, scheme: bytes = ..., allow_fragments: bool = ...) -> ParseResultBytes: ...
138+
139+
@overload
140+
def urlsplit(url: Optional[str], scheme: str = ..., allow_fragments: bool = ...) -> SplitResult: ...
141+
@overload
142+
def urlsplit(url: bytes, scheme: bytes = ..., allow_fragments: bool = ...) -> SplitResultBytes: ...
143+
144+
@overload
145+
def urlunparse(components: Tuple[AnyStr, AnyStr, AnyStr, AnyStr, AnyStr, AnyStr]) -> AnyStr: ...
146+
@overload
147+
def urlunparse(components: Sequence[AnyStr]) -> AnyStr: ...
148+
149+
@overload
150+
def urlunsplit(components: Tuple[AnyStr, AnyStr, AnyStr, AnyStr, AnyStr]) -> AnyStr: ...
151+
@overload
152+
def urlunsplit(components: Sequence[AnyStr]) -> AnyStr: ...

0 commit comments

Comments
 (0)