Accepting request 1075534 from home:glaubitz:branches:devel:languages:python
- Update to 2.8.0 * Add multiprocessing and chunked downloading to transfer manager (#1002) * Add trove classifier for python 3.11 (#971) * Remove use of deprecated cgi module (#1006) * Add clarifications to read timeout (#873) * Fix c.g.c structure (#982) * Update c.g.c docs and guides (#994) - Refresh patches for new upstream version * demock.patch OBS-URL: https://build.opensuse.org/request/show/1075534 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-storage?expand=0&rev=46
This commit is contained in:
parent
60e24e279f
commit
d69e04de52
122
demock.patch
122
demock.patch
@ -1,8 +1,7 @@
|
|||||||
Index: google-cloud-storage-2.7.0/tests/system/test_blob.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/system/test_blob.py google-cloud-storage-2.8.0/tests/system/test_blob.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/system/test_blob.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/system/test_blob.py
|
+++ google-cloud-storage-2.8.0/tests/system/test_blob.py 2023-03-30 12:03:21.658159496 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/system/test_blob.py
|
@@ -21,7 +21,7 @@
|
||||||
@@ -21,7 +21,7 @@ import uuid
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -11,10 +10,9 @@ Index: google-cloud-storage-2.7.0/tests/system/test_blob.py
|
|||||||
|
|
||||||
from google import resumable_media
|
from google import resumable_media
|
||||||
from google.api_core import exceptions
|
from google.api_core import exceptions
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_acl.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_acl.py google-cloud-storage-2.8.0/tests/unit/test_acl.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_acl.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_acl.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_acl.py 2023-03-30 12:03:21.714159988 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_acl.py
|
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
@ -24,11 +22,10 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_acl.py
|
|||||||
|
|
||||||
from google.cloud.storage.retry import (
|
from google.cloud.storage.retry import (
|
||||||
DEFAULT_RETRY,
|
DEFAULT_RETRY,
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_batch.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_batch.py google-cloud-storage-2.8.0/tests/unit/test_batch.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_batch.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_batch.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_batch.py 2023-03-30 12:03:21.706159918 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_batch.py
|
@@ -17,7 +17,7 @@
|
||||||
@@ -17,7 +17,7 @@ from http.client import SERVICE_UNAVAILA
|
|
||||||
from http.client import NO_CONTENT
|
from http.client import NO_CONTENT
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@ -37,11 +34,10 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_batch.py
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_blob.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_blob.py google-cloud-storage-2.8.0/tests/unit/test_blob.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_blob.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_blob.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_blob.py 2023-03-30 12:03:21.694159812 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_blob.py
|
@@ -24,7 +24,7 @@
|
||||||
@@ -24,7 +24,7 @@ import http.client
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
@ -50,10 +46,9 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_blob.py
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from google.cloud.storage import _helpers
|
from google.cloud.storage import _helpers
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_bucket.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_bucket.py google-cloud-storage-2.8.0/tests/unit/test_bucket.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_bucket.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_bucket.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_bucket.py 2023-03-30 12:03:21.714159988 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_bucket.py
|
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,7 +15,7 @@
|
||||||
import datetime
|
import datetime
|
||||||
import unittest
|
import unittest
|
||||||
@ -63,11 +58,10 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_bucket.py
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY
|
from google.cloud.storage.retry import DEFAULT_RETRY
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_client.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_client.py google-cloud-storage-2.8.0/tests/unit/test_client.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_client.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_client.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_client.py 2023-03-30 12:03:21.706159918 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_client.py
|
@@ -17,7 +17,7 @@
|
||||||
@@ -17,7 +17,7 @@ import http.client
|
|
||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
@ -76,11 +70,10 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_client.py
|
|||||||
import pytest
|
import pytest
|
||||||
import re
|
import re
|
||||||
import requests
|
import requests
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_fileio.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_fileio.py google-cloud-storage-2.8.0/tests/unit/test_fileio.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_fileio.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_fileio.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_fileio.py 2023-03-30 12:03:21.702159882 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_fileio.py
|
@@ -18,7 +18,7 @@
|
||||||
@@ -18,7 +18,7 @@ import unittest
|
|
||||||
import io
|
import io
|
||||||
import string
|
import string
|
||||||
|
|
||||||
@ -89,10 +82,9 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_fileio.py
|
|||||||
|
|
||||||
from google.api_core.exceptions import RequestRangeNotSatisfiable
|
from google.api_core.exceptions import RequestRangeNotSatisfiable
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY
|
from google.cloud.storage.retry import DEFAULT_RETRY
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test__helpers.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test__helpers.py google-cloud-storage-2.8.0/tests/unit/test__helpers.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test__helpers.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test__helpers.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test__helpers.py 2023-03-30 12:03:21.702159882 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test__helpers.py
|
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
@ -102,7 +94,7 @@ Index: google-cloud-storage-2.7.0/tests/unit/test__helpers.py
|
|||||||
|
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY
|
from google.cloud.storage.retry import DEFAULT_RETRY
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED
|
from google.cloud.storage.retry import DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED
|
||||||
@@ -556,7 +556,7 @@ class Test__base64_md5hash(unittest.Test
|
@@ -556,7 +556,7 @@
|
||||||
self.assertEqual(SIGNED_CONTENT, b"kBiQqOnIz21aGlQrIp/r/w==")
|
self.assertEqual(SIGNED_CONTENT, b"kBiQqOnIz21aGlQrIp/r/w==")
|
||||||
|
|
||||||
def test_it_with_stubs(self):
|
def test_it_with_stubs(self):
|
||||||
@ -111,10 +103,9 @@ Index: google-cloud-storage-2.7.0/tests/unit/test__helpers.py
|
|||||||
|
|
||||||
class _Buffer(object):
|
class _Buffer(object):
|
||||||
def __init__(self, return_vals):
|
def __init__(self, return_vals):
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_hmac_key.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_hmac_key.py google-cloud-storage-2.8.0/tests/unit/test_hmac_key.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_hmac_key.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_hmac_key.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_hmac_key.py 2023-03-30 12:03:21.714159988 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_hmac_key.py
|
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
@ -124,10 +115,9 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_hmac_key.py
|
|||||||
|
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY
|
from google.cloud.storage.retry import DEFAULT_RETRY
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY_IF_ETAG_IN_JSON
|
from google.cloud.storage.retry import DEFAULT_RETRY_IF_ETAG_IN_JSON
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test__http.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test__http.py google-cloud-storage-2.8.0/tests/unit/test__http.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test__http.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test__http.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test__http.py 2023-03-30 12:03:21.686159742 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test__http.py
|
|
||||||
@@ -15,7 +15,7 @@
|
@@ -15,7 +15,7 @@
|
||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
@ -137,10 +127,9 @@ Index: google-cloud-storage-2.7.0/tests/unit/test__http.py
|
|||||||
|
|
||||||
from google.cloud.storage import _helpers
|
from google.cloud.storage import _helpers
|
||||||
from tests.unit.test__helpers import GCCL_INVOCATION_TEST_CONST
|
from tests.unit.test__helpers import GCCL_INVOCATION_TEST_CONST
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_notification.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_notification.py google-cloud-storage-2.8.0/tests/unit/test_notification.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_notification.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_notification.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_notification.py 2023-03-30 12:03:21.690159777 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_notification.py
|
|
||||||
@@ -14,7 +14,7 @@
|
@@ -14,7 +14,7 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
@ -150,11 +139,10 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_notification.py
|
|||||||
|
|
||||||
from google.cloud.storage.retry import DEFAULT_RETRY
|
from google.cloud.storage.retry import DEFAULT_RETRY
|
||||||
|
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_retry.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_retry.py google-cloud-storage-2.8.0/tests/unit/test_retry.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_retry.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_retry.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_retry.py 2023-03-30 12:03:21.710159953 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_retry.py
|
@@ -16,7 +16,7 @@
|
||||||
@@ -16,7 +16,7 @@ import unittest
|
|
||||||
|
|
||||||
from google.cloud.storage import _helpers
|
from google.cloud.storage import _helpers
|
||||||
|
|
||||||
@ -163,11 +151,10 @@ Index: google-cloud-storage-2.7.0/tests/unit/test_retry.py
|
|||||||
|
|
||||||
|
|
||||||
class Test_should_retry(unittest.TestCase):
|
class Test_should_retry(unittest.TestCase):
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test__signing.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test__signing.py google-cloud-storage-2.8.0/tests/unit/test__signing.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test__signing.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test__signing.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test__signing.py 2023-03-30 12:03:21.698159847 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test__signing.py
|
@@ -23,7 +23,7 @@
|
||||||
@@ -23,7 +23,7 @@ import time
|
|
||||||
import unittest
|
import unittest
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
@ -176,16 +163,15 @@ Index: google-cloud-storage-2.7.0/tests/unit/test__signing.py
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from . import _read_local_json
|
from . import _read_local_json
|
||||||
Index: google-cloud-storage-2.7.0/tests/unit/test_transfer_manager.py
|
diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_transfer_manager.py google-cloud-storage-2.8.0/tests/unit/test_transfer_manager.py
|
||||||
===================================================================
|
--- google-cloud-storage-2.8.0.orig/tests/unit/test_transfer_manager.py 2023-03-29 23:18:24.000000000 +0200
|
||||||
--- google-cloud-storage-2.7.0.orig/tests/unit/test_transfer_manager.py
|
+++ google-cloud-storage-2.8.0/tests/unit/test_transfer_manager.py 2023-03-30 12:03:21.710159953 +0200
|
||||||
+++ google-cloud-storage-2.7.0/tests/unit/test_transfer_manager.py
|
@@ -23,7 +23,7 @@
|
||||||
@@ -22,7 +22,7 @@ from google.api_core import exceptions
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
|
||||||
-import mock
|
-import mock
|
||||||
+from unittest import mock
|
+from unittest import mock
|
||||||
|
import pickle
|
||||||
|
|
||||||
|
BLOB_TOKEN_STRING = "blob token"
|
||||||
class Test_Transfer_Manager(unittest.TestCase):
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1ac2d58d2d693cb1341ebc48659a3527be778d9e2d8989697a2746025928ff17
|
|
||||||
size 5490914
|
|
3
google-cloud-storage-2.8.0.tar.gz
Normal file
3
google-cloud-storage-2.8.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4388da1ff5bda6d729f26dbcaf1bfa020a2a52a7b91f0a8123edbda51660802c
|
||||||
|
size 5498652
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 30 10:04:38 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.8.0
|
||||||
|
* Add multiprocessing and chunked downloading to transfer manager (#1002)
|
||||||
|
* Add trove classifier for python 3.11 (#971)
|
||||||
|
* Remove use of deprecated cgi module (#1006)
|
||||||
|
* Add clarifications to read timeout (#873)
|
||||||
|
* Fix c.g.c structure (#982)
|
||||||
|
* Update c.g.c docs and guides (#994)
|
||||||
|
- Refresh patches for new upstream version
|
||||||
|
* demock.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 6 10:59:03 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Fri Jan 6 10:59:03 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-google-cloud-storage%{pkg_suffix}
|
Name: python-google-cloud-storage%{pkg_suffix}
|
||||||
Version: 2.7.0
|
Version: 2.8.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Google Cloud Storage API python client library
|
Summary: Google Cloud Storage API python client library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user