From dcb41c02ea38ed95d38ef2bfde8ccd6f431e3b03d3f255e25c30ff5069d2ed7c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 17 Dec 2023 20:02:52 +0000 Subject: [PATCH] fetch updates from devel package devel:languages:python/python-google-cloud-storage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=2 --- demock.patch | 122 ++++++++++++++++------------ google-cloud-storage-2.14.0.tar.gz | 3 + google-cloud-storage-2.8.0.tar.gz | 3 - python-google-cloud-storage.changes | 77 ++++++++++++++++-- python-google-cloud-storage.spec | 22 +++-- 5 files changed, 149 insertions(+), 78 deletions(-) create mode 100644 google-cloud-storage-2.14.0.tar.gz delete mode 100644 google-cloud-storage-2.8.0.tar.gz diff --git a/demock.patch b/demock.patch index be8572f..7c4ea56 100644 --- a/demock.patch +++ b/demock.patch @@ -1,7 +1,8 @@ -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.8.0/tests/system/test_blob.py 2023-03-30 12:03:21.658159496 +0200 -@@ -21,7 +21,7 @@ +Index: google-cloud-storage-2.14.0/tests/system/test_blob.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/system/test_blob.py ++++ google-cloud-storage-2.14.0/tests/system/test_blob.py +@@ -21,7 +21,7 @@ import uuid import warnings import pytest @@ -10,9 +11,10 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/system/test_blob.py google-cloud from google import resumable_media from google.api_core import exceptions -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.8.0/tests/unit/test_acl.py 2023-03-30 12:03:21.714159988 +0200 +Index: google-cloud-storage-2.14.0/tests/unit/test_acl.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_acl.py ++++ google-cloud-storage-2.14.0/tests/unit/test_acl.py @@ -14,7 +14,7 @@ import unittest @@ -22,10 +24,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_acl.py google-cloud-st from google.cloud.storage.retry import ( DEFAULT_RETRY, -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.8.0/tests/unit/test_batch.py 2023-03-30 12:03:21.706159918 +0200 -@@ -17,7 +17,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test_batch.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_batch.py ++++ google-cloud-storage-2.14.0/tests/unit/test_batch.py +@@ -17,7 +17,7 @@ from http.client import SERVICE_UNAVAILA from http.client import NO_CONTENT import unittest @@ -34,10 +37,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_batch.py google-cloud- import requests -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.8.0/tests/unit/test_blob.py 2023-03-30 12:03:21.694159812 +0200 -@@ -24,7 +24,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test_blob.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_blob.py ++++ google-cloud-storage-2.14.0/tests/unit/test_blob.py +@@ -24,7 +24,7 @@ import http.client from unittest.mock import patch from urllib.parse import urlencode @@ -46,9 +50,10 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_blob.py google-cloud-s import pytest from google.cloud.storage import _helpers -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.8.0/tests/unit/test_bucket.py 2023-03-30 12:03:21.714159988 +0200 +Index: google-cloud-storage-2.14.0/tests/unit/test_bucket.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_bucket.py ++++ google-cloud-storage-2.14.0/tests/unit/test_bucket.py @@ -15,7 +15,7 @@ import datetime import unittest @@ -58,10 +63,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_bucket.py google-cloud import pytest from google.cloud.storage.retry import DEFAULT_RETRY -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.8.0/tests/unit/test_client.py 2023-03-30 12:03:21.706159918 +0200 -@@ -17,7 +17,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test_client.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_client.py ++++ google-cloud-storage-2.14.0/tests/unit/test_client.py +@@ -17,7 +17,7 @@ import http.client import io import json from unittest.mock import patch @@ -70,10 +76,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_client.py google-cloud import pytest import re import requests -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.8.0/tests/unit/test_fileio.py 2023-03-30 12:03:21.702159882 +0200 -@@ -18,7 +18,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test_fileio.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_fileio.py ++++ google-cloud-storage-2.14.0/tests/unit/test_fileio.py +@@ -18,7 +18,7 @@ import unittest import io import string @@ -82,9 +89,10 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_fileio.py google-cloud from google.api_core.exceptions import RequestRangeNotSatisfiable from google.cloud.storage.retry import DEFAULT_RETRY -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.8.0/tests/unit/test__helpers.py 2023-03-30 12:03:21.702159882 +0200 +Index: google-cloud-storage-2.14.0/tests/unit/test__helpers.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test__helpers.py ++++ google-cloud-storage-2.14.0/tests/unit/test__helpers.py @@ -14,7 +14,7 @@ import unittest @@ -94,18 +102,19 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test__helpers.py google-clo from google.cloud.storage.retry import DEFAULT_RETRY from google.cloud.storage.retry import DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED -@@ -556,7 +556,7 @@ +@@ -561,8 +561,6 @@ class Test__base64_md5hash(unittest.Test self.assertEqual(SIGNED_CONTENT, b"kBiQqOnIz21aGlQrIp/r/w==") def test_it_with_stubs(self): - import mock -+ from unittest import mock - +- class _Buffer(object): def __init__(self, return_vals): -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.8.0/tests/unit/test_hmac_key.py 2023-03-30 12:03:21.714159988 +0200 + self.return_vals = return_vals +Index: google-cloud-storage-2.14.0/tests/unit/test_hmac_key.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_hmac_key.py ++++ google-cloud-storage-2.14.0/tests/unit/test_hmac_key.py @@ -14,7 +14,7 @@ import unittest @@ -115,9 +124,10 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_hmac_key.py google-clo 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.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.8.0/tests/unit/test__http.py 2023-03-30 12:03:21.686159742 +0200 +Index: google-cloud-storage-2.14.0/tests/unit/test__http.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test__http.py ++++ google-cloud-storage-2.14.0/tests/unit/test__http.py @@ -15,7 +15,7 @@ import unittest from unittest.mock import patch @@ -126,10 +136,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test__http.py google-cloud- +from unittest import mock from google.cloud.storage import _helpers - from tests.unit.test__helpers import GCCL_INVOCATION_TEST_CONST -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.8.0/tests/unit/test_notification.py 2023-03-30 12:03:21.690159777 +0200 + +Index: google-cloud-storage-2.14.0/tests/unit/test_notification.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_notification.py ++++ google-cloud-storage-2.14.0/tests/unit/test_notification.py @@ -14,7 +14,7 @@ import unittest @@ -139,10 +150,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_notification.py google from google.cloud.storage.retry import DEFAULT_RETRY -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.8.0/tests/unit/test_retry.py 2023-03-30 12:03:21.710159953 +0200 -@@ -16,7 +16,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test_retry.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_retry.py ++++ google-cloud-storage-2.14.0/tests/unit/test_retry.py +@@ -16,7 +16,7 @@ import unittest from google.cloud.storage import _helpers @@ -151,10 +163,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test_retry.py google-cloud- class Test_should_retry(unittest.TestCase): -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.8.0/tests/unit/test__signing.py 2023-03-30 12:03:21.698159847 +0200 -@@ -23,7 +23,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test__signing.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test__signing.py ++++ google-cloud-storage-2.14.0/tests/unit/test__signing.py +@@ -23,7 +23,7 @@ import time import unittest import urllib.parse @@ -163,10 +176,11 @@ diff -Nru google-cloud-storage-2.8.0.orig/tests/unit/test__signing.py google-clo import pytest from . import _read_local_json -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.8.0/tests/unit/test_transfer_manager.py 2023-03-30 12:03:21.710159953 +0200 -@@ -23,7 +23,7 @@ +Index: google-cloud-storage-2.14.0/tests/unit/test_transfer_manager.py +=================================================================== +--- google-cloud-storage-2.14.0.orig/tests/unit/test_transfer_manager.py ++++ google-cloud-storage-2.14.0/tests/unit/test_transfer_manager.py +@@ -24,7 +24,7 @@ from google.resumable_media.common impor import os import tempfile diff --git a/google-cloud-storage-2.14.0.tar.gz b/google-cloud-storage-2.14.0.tar.gz new file mode 100644 index 0000000..9690a7a --- /dev/null +++ b/google-cloud-storage-2.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d23fcf59b55e7b45336729c148bb1c464468c69d5efbaee30f7201dd90eb97e +size 5518229 diff --git a/google-cloud-storage-2.8.0.tar.gz b/google-cloud-storage-2.8.0.tar.gz deleted file mode 100644 index 4c77dd4..0000000 --- a/google-cloud-storage-2.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4388da1ff5bda6d729f26dbcaf1bfa020a2a52a7b91f0a8123edbda51660802c -size 5498652 diff --git a/python-google-cloud-storage.changes b/python-google-cloud-storage.changes index 3c01203..127e766 100644 --- a/python-google-cloud-storage.changes +++ b/python-google-cloud-storage.changes @@ -1,3 +1,62 @@ +------------------------------------------------------------------- +Sat Dec 16 19:22:43 UTC 2023 - Dirk Müller + +- update to 2.14.0: + * Add support for Python 3.12 + * Support object retention lock + * Clarify error message and docstrings in Blob class method + * Propagate timeout in BlobWriter + * Use native namespace to avoid pkg_resources warnings + +------------------------------------------------------------------- +Fri Nov 24 13:54:17 UTC 2023 - John Paul Adrian Glaubitz + +- 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 + +------------------------------------------------------------------- +Wed Jun 28 12:25:01 UTC 2023 - John Paul Adrian Glaubitz + +- Update to 2.10.0 + * Add matchGlob parameter to list_blobs (#1055) + * Allow exceptions to be included in batch responses (#1043) + * Extend wait for bucket metadata consistency in system tests (#1053) + * Add clarification to batch module (#1045) + +------------------------------------------------------------------- +Wed May 10 09:15:20 UTC 2023 - Matej Cepl + +- WORK IN PROGRESS! TESTS STILL FAIL! +- Update to 2.9.0: + - Un-deprecate blob.download_to_file(), bucket.create(), and bucket.list_blobs() + - Avoid pickling processed credentials + - Improve test error message for missing credentials + - Add sample and sample test for transfer manager + - Remove threads in transfer manager samples + ------------------------------------------------------------------- Thu Mar 30 10:04:38 UTC 2023 - John Paul Adrian Glaubitz @@ -205,7 +264,7 @@ Thu Sep 30 09:19:18 UTC 2021 - Matej Cepl Thu Sep 30 09:04:12 UTC 2021 - Steve Kowalik - Copy the testsuite before we run it to avoid import problems. -- Remove horrible workarounds creating __init__.py and then removing them. +- Remove horrible workarounds creating __init__.py and then removing them. - Drop Requires on python-google-filesystem. ------------------------------------------------------------------- @@ -230,7 +289,7 @@ Fri Jun 4 07:09:47 UTC 2021 - Matej Cepl class methods - update batch connection to request api endpoint info from client - - allow metadata keys to be cleared + - allow metadata keys to be cleared - allow signed url version v4 without signed credentials - correctly encode bytes for V2 signature - add mtls support @@ -244,13 +303,13 @@ Fri Jun 4 07:09:47 UTC 2021 - Matej Cepl - make retry parameter public and added in other methods - avoid triggering global logging config - fall back to 'charset' of 'content_type' in - 'download_as_text' + 'download_as_text' - fix conditional retry handling of camelCase query params - retry uploads only conditionally - - update 'custom_time' setter to record change + - update 'custom_time' setter to record change - add testing support for Python 3.9, drop Python 3.5 - - use passed-in client within Blob.from_string and helpers - - preserve metadata value when uploading new file content + - use passed-in client within Blob.from_string and helpers + - preserve metadata value when uploading new file content - retry API calls with exponential backoff - field policy return string - self-upload files for Unicode system test @@ -264,10 +323,10 @@ Fri Jun 4 07:09:47 UTC 2021 - Matej Cepl - error message return from api - storage: add support of daysSinceNoncurrentTime and noncurrentTimeBefore - - pass 'client_options' to base class ctor + - pass 'client_options' to base class ctor - rename 'Blob.download_as_{string,bytes}', add 'Blob.download_as_text' - - change datetime.now to utcnow + - change datetime.now to utcnow - extract hashes correctly during download - add timeouts to Blob methods where missing - auto-populate standard headers for non-chunked downloads @@ -288,7 +347,7 @@ Tue Apr 13 19:30:16 UTC 2021 - Robert Schweikert Mon Jun 29 15:55:00 UTC 2020 - Sean Marlow - Update version requirement for mock package. - + The tests require at least version 3.0.0. + + The tests require at least version 3.0.0. ------------------------------------------------------------------- Thu Jun 18 10:41:05 UTC 2020 - John Paul Adrian Glaubitz diff --git a/python-google-cloud-storage.spec b/python-google-cloud-storage.spec index 8284be0..38d96b5 100644 --- a/python-google-cloud-storage.spec +++ b/python-google-cloud-storage.spec @@ -17,7 +17,6 @@ %define skip_python2 1 - %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define test 1 @@ -27,10 +26,8 @@ %define pkg_suffix %{nil} %bcond_with test %endif - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-google-cloud-storage%{pkg_suffix} -Version: 2.8.0 +Version: 2.14.0 Release: 0 Summary: Google Cloud Storage API python client library License: Apache-2.0 @@ -45,19 +42,21 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-google-api-core >= 1.31.5 -Requires: python-google-auth >= 1.25.0 -Requires: python-google-cloud-core >= 1.6.0 -Requires: python-google-resumable-media >= 2.3.2 +Requires: python-google-auth >= 2.23.3 +Requires: python-google-cloud-core >= 2.3.0 +Requires: python-google-crc32c >= 1.0 +Requires: python-google-resumable-media >= 2.6.0 Requires: python-googleapis-common-protos Requires: python-requests >= 2.18.0 BuildArch: noarch # SECTION test requirements %if %{with test} BuildRequires: %{python_module google-api-core >= 1.31.5} -BuildRequires: %{python_module google-auth >= 1.25.0} +BuildRequires: %{python_module google-auth >= 2.23.3} BuildRequires: %{python_module google-cloud-core >= 2.3.0} BuildRequires: %{python_module google-cloud-storage} -BuildRequires: %{python_module google-resumable-media >= 2.3.2} +BuildRequires: %{python_module google-crc32c >= 1.0} +BuildRequires: %{python_module google-resumable-media >= 2.6.0} BuildRequires: %{python_module packaging} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} @@ -88,8 +87,8 @@ to users via direct download. This package provides client to it. %if %{with test} %check -#export PYTEST_ADDOPTS="--import-mode=importlib" -%pytest -k 'not network and not w_custom_endpoint' tests/unit +export PYTEST_ADDOPTS="--import-mode=importlib" PYTHONPATH="." +%pytest -k 'not network' tests/unit %endif %if !%{with test} @@ -100,7 +99,6 @@ to users via direct download. This package provides client to it. %dir %{python_sitelib}/google/cloud %{python_sitelib}/google/cloud/storage %{python_sitelib}/google_cloud_storage-%{version}*-info -%{python_sitelib}/google_cloud_storage-%{version}*-nspkg.pth %endif %changelog