Skip to content

Commit

Permalink
fix: use subprocess32 for python2
Browse files Browse the repository at this point in the history
Signed-off-by: Nao YONASHIRO <yonashiro@r.recruit.co.jp>
  • Loading branch information
orisano authored and ulyssessouza committed Aug 29, 2019
1 parent bbdb3ca commit 719a1b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compose/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import logging
import os
import re
import subprocess
import sys
import tempfile
from collections import namedtuple
Expand Down Expand Up @@ -62,6 +61,11 @@
from .utils import truncate_id
from .utils import unique_everseen

if six.PY2:
import subprocess32 as subprocess
else:
import subprocess

log = logging.getLogger(__name__)


Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def find_version(*file_paths):
tests_require.append('mock >= 1.0.1, < 4')

extras_require = {
':python_version < "3.2"': ['subprocess32 >= 3.5.4, < 4'],
':python_version < "3.4"': ['enum34 >= 1.0.4, < 2'],
':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5, < 4'],
':python_version < "3.3"': ['ipaddress >= 1.0.16, < 2'],
Expand Down

0 comments on commit 719a1b0

Please sign in to comment.