-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-google-cloud-storage to version 2.3.0 / rev 13 via SR 9…
…70440 https://build.opensuse.org/request/show/970440 by user mcepl + dimstar_suse REQUIRES https://build.opensuse.org/request/show/970437 - Update to 2.3.0: - add dual region bucket support and sample - track invocation id for retry metrics - deps: drop pkg_resources - fix links in blob module - Add patches: - no-relative-imports.patch to allow running the test suite with pytest (gh#googleapis/python-storage#772) - demock.patch to remove dependency on the external package mock (gh#googleapis/python-storage#770)
- Loading branch information
1 parent
fdf5512
commit 43229cf
Showing
8 changed files
with
302 additions
and
31 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
--- | ||
tests/system/test_blob.py | 2 +- | ||
tests/unit/test__helpers.py | 5 +---- | ||
tests/unit/test__http.py | 3 +-- | ||
tests/unit/test__signing.py | 2 +- | ||
tests/unit/test_acl.py | 3 +-- | ||
tests/unit/test_batch.py | 2 +- | ||
tests/unit/test_blob.py | 2 +- | ||
tests/unit/test_bucket.py | 2 +- | ||
tests/unit/test_client.py | 4 ++-- | ||
tests/unit/test_fileio.py | 2 +- | ||
tests/unit/test_hmac_key.py | 3 +-- | ||
tests/unit/test_notification.py | 3 +-- | ||
tests/unit/test_retry.py | 3 +-- | ||
13 files changed, 14 insertions(+), 22 deletions(-) | ||
|
||
--- a/tests/system/test_blob.py | ||
+++ b/tests/system/test_blob.py | ||
@@ -18,9 +18,9 @@ import io | ||
import os | ||
import tempfile | ||
import warnings | ||
+from unittest import mock | ||
|
||
import pytest | ||
-import mock | ||
|
||
from google import resumable_media | ||
from google.api_core import exceptions | ||
--- a/tests/unit/test__helpers.py | ||
+++ b/tests/unit/test__helpers.py | ||
@@ -13,8 +13,7 @@ | ||
# limitations under the License. | ||
|
||
import unittest | ||
- | ||
-import mock | ||
+from unittest import mock | ||
|
||
from google.cloud.storage.retry import DEFAULT_RETRY | ||
from google.cloud.storage.retry import DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED | ||
@@ -556,8 +555,6 @@ class Test__base64_md5hash(unittest.Test | ||
self.assertEqual(SIGNED_CONTENT, b"kBiQqOnIz21aGlQrIp/r/w==") | ||
|
||
def test_it_with_stubs(self): | ||
- import mock | ||
- | ||
class _Buffer(object): | ||
def __init__(self, return_vals): | ||
self.return_vals = return_vals | ||
--- a/tests/unit/test__http.py | ||
+++ b/tests/unit/test__http.py | ||
@@ -16,8 +16,7 @@ import os.path | ||
import sys | ||
import unittest | ||
from unittest.mock import patch | ||
- | ||
-import mock | ||
+from unittest import mock | ||
|
||
from google.cloud.storage import _helpers | ||
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..', '..'))) | ||
--- a/tests/unit/test__signing.py | ||
+++ b/tests/unit/test__signing.py | ||
@@ -24,8 +24,8 @@ import sys | ||
import time | ||
import unittest | ||
import urllib.parse | ||
+from unittest import mock | ||
|
||
-import mock | ||
import pytest | ||
|
||
sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..'))) | ||
--- a/tests/unit/test_acl.py | ||
+++ b/tests/unit/test_acl.py | ||
@@ -13,8 +13,7 @@ | ||
# limitations under the License. | ||
|
||
import unittest | ||
- | ||
-import mock | ||
+from unittest import mock | ||
|
||
from google.cloud.storage.retry import ( | ||
DEFAULT_RETRY, | ||
--- a/tests/unit/test_batch.py | ||
+++ b/tests/unit/test_batch.py | ||
@@ -16,8 +16,8 @@ import http.client | ||
from http.client import SERVICE_UNAVAILABLE | ||
from http.client import NO_CONTENT | ||
import unittest | ||
+from unittest import mock | ||
|
||
-import mock | ||
import requests | ||
|
||
|
||
--- a/tests/unit/test_blob.py | ||
+++ b/tests/unit/test_blob.py | ||
@@ -23,9 +23,9 @@ import tempfile | ||
import unittest | ||
import http.client | ||
from unittest.mock import patch | ||
+from unittest import mock | ||
from urllib.parse import urlencode | ||
|
||
-import mock | ||
import pytest | ||
|
||
from google.cloud.storage import _helpers | ||
--- a/tests/unit/test_bucket.py | ||
+++ b/tests/unit/test_bucket.py | ||
@@ -14,8 +14,8 @@ | ||
|
||
import datetime | ||
import unittest | ||
+from unittest import mock | ||
|
||
-import mock | ||
import pytest | ||
|
||
from google.cloud.storage.retry import DEFAULT_RETRY | ||
--- a/tests/unit/test_client.py | ||
+++ b/tests/unit/test_client.py | ||
@@ -16,8 +16,6 @@ import base64 | ||
import http.client | ||
import io | ||
import json | ||
-from unittest.mock import patch | ||
-import mock | ||
import os.path | ||
import pytest | ||
import re | ||
@@ -25,6 +23,8 @@ import requests | ||
import sys | ||
import unittest | ||
import urllib | ||
+from unittest.mock import patch | ||
+from unittest import mock | ||
|
||
from google.api_core import exceptions | ||
from google.auth.credentials import AnonymousCredentials | ||
--- a/tests/unit/test_fileio.py | ||
+++ b/tests/unit/test_fileio.py | ||
@@ -17,8 +17,8 @@ | ||
import unittest | ||
import io | ||
import string | ||
+from unittest import mock | ||
|
||
-import mock | ||
|
||
from google.api_core.exceptions import RequestRangeNotSatisfiable | ||
from google.cloud.storage.retry import DEFAULT_RETRY | ||
--- a/tests/unit/test_hmac_key.py | ||
+++ b/tests/unit/test_hmac_key.py | ||
@@ -13,8 +13,7 @@ | ||
# limitations under the License. | ||
|
||
import unittest | ||
- | ||
-import mock | ||
+from unittest import mock | ||
|
||
from google.cloud.storage.retry import DEFAULT_RETRY | ||
from google.cloud.storage.retry import DEFAULT_RETRY_IF_ETAG_IN_JSON | ||
--- a/tests/unit/test_notification.py | ||
+++ b/tests/unit/test_notification.py | ||
@@ -13,8 +13,7 @@ | ||
# limitations under the License. | ||
|
||
import unittest | ||
- | ||
-import mock | ||
+from unittest import mock | ||
|
||
from google.cloud.storage.retry import DEFAULT_RETRY | ||
|
||
--- a/tests/unit/test_retry.py | ||
+++ b/tests/unit/test_retry.py | ||
@@ -13,11 +13,10 @@ | ||
# limitations under the License. | ||
|
||
import unittest | ||
+from unittest import mock | ||
|
||
from google.cloud.storage import _helpers | ||
|
||
-import mock | ||
- | ||
|
||
class Test_should_retry(unittest.TestCase): | ||
def _call_fut(self, exc): |
1 change: 0 additions & 1 deletion
1
packages/p/python-google-cloud-storage/google-cloud-storage-2.2.1.tar.gz
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
packages/p/python-google-cloud-storage/google-cloud-storage-2.3.0.tar.gz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/ipfs/bafybeihxiwnob4374h37olbby4ofpt2tof6qtzixukikwqro62zss5mao4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/p/python-google-cloud-storage/python-google-cloud-storage.changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters