Skip to content
Permalink
Browse files

fix: use subprocess32 for python2

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 719a1b05818cc0dcb4515dc3a704e468061b2455
Showing with 6 additions and 1 deletion.
  1. +5 −1 compose/service.py
  2. +1 −0 setup.py
@@ -6,7 +6,6 @@
import logging
import os
import re
import subprocess
import sys
import tempfile
from collections import namedtuple
@@ -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__)


@@ -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'],

0 comments on commit 719a1b0

Please sign in to comment.
You can’t perform that action at this time.