From 0f8f682a6b843089ab403999ec01aefc38eb02f2 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 17 May 2018 16:32:55 +0300 Subject: [PATCH] build: remove uneeded deps of boto Signed-off-by: Ruslan Kuprieiev --- dvc/cloud/aws.py | 9 --------- requirements.txt | 1 - ...te_engine.py => hook-google_compute_engine.logger.py} | 0 setup.py | 3 +-- 4 files changed, 1 insertion(+), 12 deletions(-) rename scripts/hooks/{hook-google_compute_engine.py => hook-google_compute_engine.logger.py} (100%) diff --git a/dvc/cloud/aws.py b/dvc/cloud/aws.py index 697c7be02..b2d942524 100644 --- a/dvc/cloud/aws.py +++ b/dvc/cloud/aws.py @@ -4,15 +4,6 @@ import threading import boto3 import botocore -try: - import httplib -except ImportError: - # Python3 workaround for ResumableDownloadHandler. - # See https://github.com/boto/boto/pull/3755. - import sys - import http.client as httplib - sys.modules['httplib'] = httplib -from boto.s3.resumable_download_handler import ResumableDownloadHandler from dvc.config import Config from dvc.logger import Logger diff --git a/requirements.txt b/requirements.txt index b9efa766b..8a13e1a22 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ boto3==1.7.4 ply==3.8 # required by google-gax -google-compute-engine==2.4.1 #required by boto configparser>=3.5.0 zc.lockfile>=1.2.1 future>=0.16.0 diff --git a/scripts/hooks/hook-google_compute_engine.py b/scripts/hooks/hook-google_compute_engine.logger.py similarity index 100% rename from scripts/hooks/hook-google_compute_engine.py rename to scripts/hooks/hook-google_compute_engine.logger.py diff --git a/setup.py b/setup.py index 51474956a..118f0d910 100644 --- a/setup.py +++ b/setup.py @@ -6,8 +6,7 @@ from dvc import VERSION install_requires = [ "boto3==1.7.4", - "ply==3.8", #required by google-gax - "google-compute-engine==2.4.1", #required by boto + "ply==3.8", # required by google-gax "configparser>=3.5.0", "zc.lockfile>=1.2.1", "future>=0.16.0",