Kaynağa Gözat

Pin gcp to latest and fix py3 compatibility

Nuwan Goonasekera 5 yıl önce
ebeveyn
işleme
0f47cad575
3 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 1 1
      cloudbridge/providers/gcp/helpers.py
  2. 2 2
      setup.py
  3. 2 1
      tox.ini

+ 1 - 1
cloudbridge/providers/gcp/helpers.py

@@ -169,7 +169,7 @@ def change_label(resource, key, value, res_att, request):
     # The casting needs to be done for all labels, as to support both
     # description and label setting
     labels[key] = str(value)
-    for k in labels.keys():
+    for k in list(labels):
         labels[str(k)] = str(labels.pop(k))
 
     request_body = {

+ 2 - 2
setup.py

@@ -45,8 +45,8 @@ REQS_AZURE = [
     'pysftp==0.2.9'
 ]
 REQS_GCP = [
-    'google-api-python-client<=1.7.8',
-    'oauth2client<=4.1.3'
+    'google-api-python-client>=1.7.8,<1.13',
+    'oauth2client<4.2'
 ]
 REQS_OPENSTACK = [
     'openstacksdk>=0.12.0',

+ 2 - 1
tox.ini

@@ -6,7 +6,7 @@
 # running the tests.
 
 [tox]
-envlist = {py27,py36,pypy}-{aws,azure,gcp,openstack,mock}
+envlist = {py38,pypy}-{aws,azure,gcp,openstack,mock}
 
 [testenv]
 commands = flake8 cloudbridge tests setup.py
@@ -31,3 +31,4 @@ passenv =
 deps =
     -rrequirements.txt
     coverage<5
+