Skip to content

Commit 37f1275

Browse files
authored
relax subprocess dependency (#73)
1 parent 6226d05 commit 37f1275

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ environment:
2424
PYTHON_ARCH: "64"
2525

2626
install:
27+
- "%PYTHON%\\python.exe -m pip install -U setuptools^>=20.3"
2728
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
29+
# Note the use of a `^` to escape the `>`
2830

2931
build_script:
3032
- |

cwltest/tests/util.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
from __future__ import absolute_import
22
import os
3+
import sys
4+
5+
if sys.version_info < (3, 0):
6+
import subprocess32 as subprocess
7+
else:
8+
import subprocess
39

4-
import subprocess
510
from pkg_resources import (Requirement, ResolutionError, # type: ignore
611
resource_filename)
712

requirements.txt

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
cmdclass={'egg_info': tagger},
5050
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4',
5151
extras_require={':python_version<"3"': [
52-
'futures >= 3.0.5', 'subprocess32 == 3.5.0rc1'],
52+
'futures >= 3.0.5', 'subprocess32 >= 3.5.0'],
5353
':python_version<"3.5"': ['typing >= 3.5.2'] }
5454
)

0 commit comments

Comments
 (0)