From 0c561e7f121ff69ffad2986205e175f5c3f6e209 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 14 Sep 2017 20:47:35 +0300 Subject: [PATCH] google cloud: fix cloud settings and requirements These are to allow using OAuth with your dvc, as this is the recomended way to access gcp. Fixes #203 Signed-off-by: Ruslan Kuprieiev --- dvc/data_cloud.py | 2 +- requirements.txt | 1 + setup.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/data_cloud.py b/dvc/data_cloud.py index 5df1b28c8..ea7ef8532 100644 --- a/dvc/data_cloud.py +++ b/dvc/data_cloud.py @@ -579,7 +579,7 @@ class DataCloudGCP(DataCloudBase): """ DataCloud class for Google Cloud Platform """ @property def gc_project_name(self): - return self._cloud_config.get('ProjectName', None) + return self._cloud_settings.cloud_config.get('ProjectName', None) def sanity_check(self): project = self.gc_project_name diff --git a/requirements.txt b/requirements.txt index 8754dcc29..11f78e9b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -88,3 +88,4 @@ colorama==0.3.9 google-compute-engine==2.4.1 configobj==5.0.6 networkx==1.11 +gcs-oauth2-boto-plugin==1.14 diff --git a/setup.py b/setup.py index 28868597e..7c2099104 100644 --- a/setup.py +++ b/setup.py @@ -94,6 +94,7 @@ install_requires = [ 'google-compute-engine==2.4.1', 'configobj==5.0.6', 'networkx==1.11', + 'gcs-oauth2-boto-plugin==1.14', ] if platform.system() == 'Darwin':