Content-Length: 437256 | pFad | https://www.github.com/googleapis/python-cloud-core/commit/a97b9cae6d3b8f0c723dfa825f1b76efc2318f80

2E5 deps: require `six>=1.12.0` and `google-api-core>=1.21.0` (#46) · googleapis/python-cloud-core@a97b9ca · GitHub
Skip to content

Commit a97b9ca

Browse files
authored
deps: require six>=1.12.0 and google-api-core>=1.21.0 (#46)
* `six>=1.12.0` is to support legacy App Engine standard runtimes * `google-api-core>=1.21.0` is needed for `DuplicateCredentialArgs` exception
1 parent 61a42cb commit a97b9ca

8 files changed

+29
-4
lines changed

google/cloud/_http.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
"""Shared implementation of connections to API servers."""
1616

1717
import collections
18+
try:
19+
import collections.abc as collections_abc
20+
except ImportError:
21+
import collections as collections_abc
1822
import json
1923
import platform
2024
import warnings
2125

22-
from six.moves import collections_abc
2326
from six.moves.urllib.parse import urlencode
2427

2528
from google.api_core.client_info import ClientInfo

noxfile.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121

2222
DEFAULT_PYTHON_VERSION = "3.7"
23+
CURRENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
2324

2425

2526
def default(session):
@@ -29,10 +30,22 @@ def default(session):
2930
Python corresponding to the ``nox`` binary the ``PATH`` can
3031
run the tests.
3132
"""
33+
constraints_path = os.path.join(
34+
CURRENT_DIRECTORY,
35+
"testing",
36+
"constraints-{}.txt".format(session.python)
37+
)
3238

3339
# Install all test dependencies, then install local packages in-place.
34-
session.install("mock", "pytest", "pytest-cov", "grpcio >= 1.0.2")
35-
session.install("-e", ".")
40+
session.install(
41+
"mock",
42+
"pytest",
43+
"pytest-cov",
44+
"grpcio >= 1.0.2",
45+
"-c",
46+
constraints_path
47+
)
48+
session.install("-e", ".", "-c", constraints_path)
3649

3750
# Run py.test against the unit tests.
3851
session.run(

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
# 'Development Status :: 4 - Beta'
2828
# 'Development Status :: 5 - Production/Stable'
2929
release_status = "Development Status :: 5 - Production/Stable"
30-
dependencies = ["google-api-core >= 1.19.0, < 2.0.0dev"]
30+
dependencies = [
31+
"google-api-core >= 1.21.0, < 2.0.0dev",
32+
# Support six==1.12.0 due to App Engine standard runtime.
33+
# https://github.com/googleapis/python-cloud-core/issues/45
34+
"six >=1.12.0",
35+
]
3136
extras = {"grpc": "grpcio >= 1.8.2, < 2.0dev"}
3237

3338

testing/constraints-2.7.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
google-api-core==1.21.0
2+
six==1.12.0

testing/constraints-3.5.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
google-api-core==1.21.0
2+
six==1.12.0

testing/constraints-3.6.txt

Whitespace-only changes.

testing/constraints-3.7.txt

Whitespace-only changes.

testing/constraints-3.8.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://www.github.com/googleapis/python-cloud-core/commit/a97b9cae6d3b8f0c723dfa825f1b76efc2318f80

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy