Robert Schweikert fcb37d9ae2 Accepting request 1128593 from home:glaubitz:branches:devel:languages:python
- Update to 2.13.0
  * Add Autoclass v2.1 support (#1117)
  * Add support for custom headers (#1121)
  * Blob.from_string parse storage uri with regex (#1170)
  * Bucket.delete(force=True) now works with version-enabled buckets (#1172)
  * Fix typo in Bucket.clear_lifecycle_rules() (#1169)
  * Fix exception field in tm reference docs (#1164)
- from version 2.12.0
  * Add additional_blob_attributes to upload_many_from_filenames (#1162)
  * Add crc32c_checksum argument to download_chunks_concurrently (#1138)
  * Add skip_if_exists to download_many (#1161)
  * Launch transfer manager to GA (#1159)
  * Bump python-auth version to fix issue and remove workaround (#1158)
  * Mark _deprecate_threads_param as a wrapper to unblock introspection and docs (#1122)
  * Add snippets for upload_chunks_concurrently and add chunk_size (#1135)
  * Update formatting and wording in transfer_manager docstrings (#1163)
- from version 2.11.0
  * Add gccl-gcs-cmd field to X-Goog-API-Client header for Transfer Manager calls (#1119)
  * Add transfer_manager.upload_chunks_concurrently using the XML MPU API (#1115)
  * Support configurable retries in upload_chunks_concurrently (#1120)
  * Split retention period tests due to caching change (#1068)
  * Add Transfer Manager documentation in c.g.c (#1109)
- Refresh patches for new version
  * demock.patch
- Update BuildRequires and Require from setup.py

OBS-URL: https://build.opensuse.org/request/show/1128593
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-storage?expand=0&rev=50
2023-11-26 11:19:51 +00:00

169 lines
6.6 KiB
Diff

diff -Nru google-cloud-storage-2.13.0.orig/tests/system/test_blob.py google-cloud-storage-2.13.0/tests/system/test_blob.py
--- google-cloud-storage-2.13.0.orig/tests/system/test_blob.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/system/test_blob.py 2023-11-24 14:24:31.800639129 +0100
@@ -21,7 +21,7 @@
import warnings
import pytest
-import mock
+from unittest import mock
from google import resumable_media
from google.api_core import exceptions
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_acl.py google-cloud-storage-2.13.0/tests/unit/test_acl.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_acl.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_acl.py 2023-11-24 14:24:31.910639470 +0100
@@ -14,7 +14,7 @@
import unittest
-import mock
+from unittest import mock
from google.cloud.storage.retry import (
DEFAULT_RETRY,
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_batch.py google-cloud-storage-2.13.0/tests/unit/test_batch.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_batch.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_batch.py 2023-11-24 14:24:31.880639377 +0100
@@ -17,7 +17,7 @@
from http.client import NO_CONTENT
import unittest
-import mock
+from unittest import mock
import requests
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_blob.py google-cloud-storage-2.13.0/tests/unit/test_blob.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_blob.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_blob.py 2023-11-24 14:24:31.863972659 +0100
@@ -24,7 +24,7 @@
from unittest.mock import patch
from urllib.parse import urlencode
-import mock
+from unittest import mock
import pytest
from google.cloud.storage import _helpers
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_bucket.py google-cloud-storage-2.13.0/tests/unit/test_bucket.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_bucket.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_bucket.py 2023-11-24 14:24:31.903972782 +0100
@@ -15,7 +15,7 @@
import datetime
import unittest
-import mock
+from unittest import mock
import pytest
from google.cloud.storage.retry import DEFAULT_RETRY
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_client.py google-cloud-storage-2.13.0/tests/unit/test_client.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_client.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_client.py 2023-11-24 14:24:31.877306033 +0100
@@ -17,7 +17,7 @@
import io
import json
from unittest.mock import patch
-import mock
+from unittest import mock
import pytest
import re
import requests
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_fileio.py google-cloud-storage-2.13.0/tests/unit/test_fileio.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_fileio.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_fileio.py 2023-11-24 14:24:31.873972690 +0100
@@ -18,7 +18,7 @@
import io
import string
-import mock
+from unittest import mock
from google.api_core.exceptions import RequestRangeNotSatisfiable
from google.cloud.storage.retry import DEFAULT_RETRY
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test__helpers.py google-cloud-storage-2.13.0/tests/unit/test__helpers.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test__helpers.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test__helpers.py 2023-11-24 14:24:31.870639346 +0100
@@ -14,7 +14,7 @@
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
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_hmac_key.py google-cloud-storage-2.13.0/tests/unit/test_hmac_key.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_hmac_key.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_hmac_key.py 2023-11-24 14:24:31.897306095 +0100
@@ -14,7 +14,7 @@
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
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test__http.py google-cloud-storage-2.13.0/tests/unit/test__http.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test__http.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test__http.py 2023-11-24 14:24:31.853972628 +0100
@@ -15,7 +15,7 @@
import unittest
from unittest.mock import patch
-import mock
+from unittest import mock
from google.cloud.storage import _helpers
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_notification.py google-cloud-storage-2.13.0/tests/unit/test_notification.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_notification.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_notification.py 2023-11-24 14:24:31.857305971 +0100
@@ -14,7 +14,7 @@
import unittest
-import mock
+from unittest import mock
from google.cloud.storage.retry import DEFAULT_RETRY
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_retry.py google-cloud-storage-2.13.0/tests/unit/test_retry.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_retry.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_retry.py 2023-11-24 14:24:31.890639408 +0100
@@ -16,7 +16,7 @@
from google.cloud.storage import _helpers
-import mock
+from unittest import mock
class Test_should_retry(unittest.TestCase):
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test__signing.py google-cloud-storage-2.13.0/tests/unit/test__signing.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test__signing.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test__signing.py 2023-11-24 14:24:31.867306002 +0100
@@ -23,7 +23,7 @@
import unittest
import urllib.parse
-import mock
+from unittest import mock
import pytest
from . import _read_local_json
diff -Nru google-cloud-storage-2.13.0.orig/tests/unit/test_transfer_manager.py google-cloud-storage-2.13.0/tests/unit/test_transfer_manager.py
--- google-cloud-storage-2.13.0.orig/tests/unit/test_transfer_manager.py 2023-10-31 18:39:05.000000000 +0100
+++ google-cloud-storage-2.13.0/tests/unit/test_transfer_manager.py 2023-11-24 14:24:31.883972721 +0100
@@ -24,7 +24,7 @@
import os
import tempfile
-import mock
+from unittest import mock
import pickle
BLOB_TOKEN_STRING = "blob token"