17
0

21 Commits

Author SHA256 Message Date
92e9c45b78 Accepting request 1327705 from devel:languages:python:google
- Fix incorrect Python package names in Requires (forwarded request 1327682 from glaubitz)

OBS-URL: https://build.opensuse.org/request/show/1327705
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=26
2026-01-17 13:54:57 +00:00
e423f3998e - Fix incorrect Python package names in Requires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=21
2026-01-16 15:01:11 +00:00
bc8f2e196e next time get a better sleep
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=20
2026-01-16 13:58:04 +00:00
80afd85bff - Update to 3.8.0
* flush the last chunk in append method (#1699)
  * add write resumption strategy (#1663)
  * add bidi stream retry manager. (#1632)
  * implement "append_from_file" (#1686)
  * make flush size configurable (#1677)
  * compute chunk wise checksum for bidi_writes (#1675)
  * expose persisted size in mrd (#1671)
  * add system test for opening with read_handle (#1672)
  * no state lookup while opening bidi-write stream (#1636)
  * close write object stream always (#1661)
- from version 3.7.0
  * Auto enable mTLS when supported certificates are detected (#1637)
  * Send entire object checksum in the final api call of resumable upload (#1654)
  * Support urllib3 >= 2.6.0 (#1658)
  * Fix for move_blob failure when the new blob name contains characters that
    need to be url encoded (#1605)
- from version 3.6.0
  * Add support for partial list buckets (#1606)
  * Make return_partial_success and unreachable fields public for list Bucket (#1601)
  * **zb-experimental:** Add async write object stream
  * **zb-experimental:** Add async write object stream (#1612)
  * Dont pass credentials to StorageClient (#1608)
- from version 3.5.0
  * **experimental:** Add base resumption strategy for bidi streams (#1594)
  * **experimental:** Add checksum for bidi reads operation (#1566)
  * **experimental:** Add read resumption strategy (#1599)
  * **experimental:** Handle BidiReadObjectRedirectedError for bidi reads (#1600)
  * Indicate that md5 is used as a CRC (#1522)
  * Provide option to update user_agent (#1596)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=19
2026-01-16 13:10:32 +00:00
6ba0b3969e Accepting request 1312377 from devel:languages:python:google
- Update to 3.4.1
  * Fixes (#1561) by adding an option to specify the entire object checksum
    for resumable uploads via the `upload_from_string`, `upload_from_file`,
    and `upload_from_filename` methods.
- from version 3.4.0
  * **experimental:** Add async grpc client (#1537)
  * **experimental:** Add grpc client (#1533)
  * GAPIC generation failed with 'Directory not empty' (#1542)
- Adjust python folder names in %files section (forwarded request 1312341 from glaubitz)

OBS-URL: https://build.opensuse.org/request/show/1312377
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=25
2025-10-21 09:15:54 +00:00
4ca81533d7 - Update to 3.4.1
* Fixes (#1561) by adding an option to specify the entire object checksum
    for resumable uploads via the `upload_from_string`, `upload_from_file`,
    and `upload_from_filename` methods.
- from version 3.4.0
  * **experimental:** Add async grpc client (#1537)
  * **experimental:** Add grpc client (#1533)
  * GAPIC generation failed with 'Directory not empty' (#1542)
- Adjust python folder names in %files section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=17
2025-10-20 11:04:42 +00:00
fb7dcec1b3 Accepting request 1302901 from devel:languages:python:google
OBS-URL: https://build.opensuse.org/request/show/1302901
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=24
2025-09-05 19:44:02 +00:00
f30635e95c - Update to 3.3.1
* Provide option to user to set entire object checksum at "initiate
    a resumable upload session" and send the same (#1525)
  * Send part's checksum for XML MPU part upload (#1529)
- from version 3.3.0
  * Add support for bucket IP filter (#1516)
  * Add logs on AssertionError for issue (#1512)
  * Update the documentation of move_blob function (#1507)
- from version 3.2.0
  * Adding support of single shot download (#1493)
- from version 3.1.1
  * Add a check for partial response data (#1487)
  * Add trove classifier for Python 3.13 (0100916)
  * **deps:** Require google-crc32c >= 1.1.3 (0100916)
  * **deps:** Require protobuf >= 3.20.2, < 7.0.0 (0100916)
  * **deps:** Require requests &gt;= 2.22.0 (0100916)
  * Remove setup.cfg configuration for creating universal wheels (#1448)
  * Resolve issue where pre-release versions of dependencies are installed (0100916)
  * Segmentation fault in tink while writing data (#1490)
  * Move quickstart to top of readme (#1451)
  * Update README to break infinite redirect loop (#1450)
- Add %{python_sitelib}/google/cloud/storage_v2 in %files section
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=15
2025-09-05 10:33:53 +00:00
d9c39d36c4 Accepting request 1273069 from devel:languages:python:google
OBS-URL: https://build.opensuse.org/request/show/1273069
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=23
2025-04-28 14:17:38 +00:00
e8c0fb841d - Update to 3.1.0
* Add api_key argument to Client constructor (#1441)
  * Add Bucket.move_blob() for HNS-enabled buckets (#1431)
- from version 3.0.0
  * The default checksum strategy for uploads has changed from None to "auto" (#1383)
  * The default checksum strategy for downloads has changed from "md5" to "auto" (#1383)
  * Deprecated positional argument "num_retries" has been removed (#1377)
  * Deprecated argument "text_mode" has been removed (#1379)
  * Blob.download_to_filename() now deletes the empty destination file on a 404 (#1394)
  * Media operations now use the same retry backoff, timeout and custom predicate system
    as non-media operations, which may slightly impact default retry behavior (#1385)
  * Retries are now enabled by default for uploads, blob deletes and blob metadata updates (#1400)
  * Add "auto" checksum option and make default ([1383)
  * Blob.download_to_filename() deletes the empty destination file on a 404 (#1394)
  * Enable custom predicates for media operations (#1385)
  * Integrate google-resumable-media (#1283)
  * Retry by default for uploads, blob deletes, metadata updates (#1400)
  * Cancel upload when BlobWriter exits with exception (#1243)
  * Changed name of methods `Blob.from_string()` and `Bucket.from_string()` to `from_uri()` (#1335)
  * Correctly calculate starting offset for retries of ranged reads (#1376)
  * Filter download_kwargs in BlobReader (#1411)
  * Remove deprecated num_retries argument (#1377)
  * Remove deprecated text_mode argument (#1379)
  * Correct formatting and update README.rst (#1427)
  * Fix issue with exceptions.py documentation (#1328)
- Refresh demock.patch
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=13
2025-04-28 10:18:57 +00:00
fa2ee7c40b Accepting request 1228478 from devel:languages:python:google
- Update to 2.19.0:
  - Features
    - Add integration test for universe domain
    - Add restore_bucket and handling for soft-deleted buckets
    - Add support for restore token
    - IAM signBlob retry and universe domain support
  - Bug Fixes
    - Allow signed post policy v4 with service account and token
    - Do not spam the log with checksum related INFO messages
      when downloading using transfer_manager
- Update to 2.18.2:
  - Bug Fixes
    - Add regression test for range read retry issue and bump
      dependency to fix
- Update to 2.18.1:
  - Bug Fixes
    - Properly escape URL construction for XML MPU API
- Update to 2.18.0:
  - Features
    - Add OpenTelemetry Tracing support as a preview feature
  - Bug Fixes
    - Allow Protobuf 5.x
    - Correct notification error message
- Update to 2.17.0:
  - Features
    - Support HNS enablement in bucket metadata
    - Support page_size in bucket.list_blobs
  - Bug Fixes
    - Remove deprecated methods in samples and tests
  - Documentation
    - Reference Storage Control in readme
    - Update DEFAULT_RETRY_IF_GENERATION_SPECIFIED docstrings
- Update to 2.16.0:
  - Features
    - Add support for soft delete
    - Support includeFoldersAsPrefixes
- Update to 2.15.0:
  - Features
    - Support custom universe domains/TPC
  - Bug Fixes
    - Add "updated" as property for Bucket
    - Remove utcnow usage

OBS-URL: https://build.opensuse.org/request/show/1228478
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=22
2024-12-05 16:09:38 +00:00
2c51729b4f - Update to 2.19.0:
- Features
    - Add integration test for universe domain
    - Add restore_bucket and handling for soft-deleted buckets
    - Add support for restore token
    - IAM signBlob retry and universe domain support
  - Bug Fixes
    - Allow signed post policy v4 with service account and token
    - Do not spam the log with checksum related INFO messages
      when downloading using transfer_manager
- Update to 2.18.2:
  - Bug Fixes
    - Add regression test for range read retry issue and bump
      dependency to fix
- Update to 2.18.1:
  - Bug Fixes
    - Properly escape URL construction for XML MPU API
- Update to 2.18.0:
  - Features
    - Add OpenTelemetry Tracing support as a preview feature
  - Bug Fixes
    - Allow Protobuf 5.x
    - Correct notification error message
- Update to 2.17.0:
  - Features
    - Support HNS enablement in bucket metadata
    - Support page_size in bucket.list_blobs
  - Bug Fixes
    - Remove deprecated methods in samples and tests
  - Documentation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=11
2024-12-05 09:09:41 +00:00
bceb835908 Accepting request 1157359 from devel:languages:python:google
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1157359
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=21
2024-03-13 21:19:08 +00:00
5bac303c9a - Obsolete Python 3.6 build for SLE 15 SP4 and openSUSE Leap 15.4 and later
- Update to 1.23.0:
  * Move create_bucket implementation from Bucket to Client.
  * Add opt-in raw download support.
  * Fix query-string order dependent assert.
  * Normalize VPCSC configuration in system tests.
- Update to 1.22.0:
  * Add UBLA attrs to IAMConfiguration.
- Update to 1.21.0:
  * Add gcloud-python header to user agent.
  * Don't report a gapic version for storage.
  * Update storage endpoint from www.googleapis.com to
    storage.googleapis.com.
  * Call anonymous client method to remove dependency of google
    application credentials.
  * Enable CSEK w/ V4 signed URLs.
  * Support predefined ACLs in Bucket.create.
- Update to 1.20.0:
  * Add user_project param to HMAC-related methods.
  * Add Blob.from_string and Bucket.from_string factories.
  * Add support for STORAGE_EMULATOR_HOST; add benchwrapper script.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=9
2024-03-05 20:54:07 +00:00
c47d6ea753 Accepting request 1155082 from devel:languages:python:google
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1155082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-storage?expand=0&rev=20
2024-03-05 17:52:08 +00:00
9e21e2ec88 - Version update in SLE 15 SP4 and later (jsc#PED-6697)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=7
2024-02-27 10:05:01 +00:00
2acf0bce2a - Fix tests, setting GOOGLE_CLOUD_PROJECT environment variable.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=6
2023-12-21 08:05:00 +00:00
2598116f4d - Add fake default credentials to fix tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=5
2023-12-18 16:30:22 +00:00
7d34f91a1b - Fix tests, setting GOOGLE_CLOUD_PROJECT environment variable.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=4
2023-12-18 13:24:56 +00:00
cb168b23e1 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
2023-12-17 20:02:52 +00:00
103bb63754 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-storage?expand=0&rev=1 2023-12-17 20:02:52 +00:00
5 changed files with 454 additions and 93 deletions

View File

@@ -1,20 +1,162 @@
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
diff -Nru google_cloud_storage-3.8.0.orig/google/cloud/storage/_media/requests/__init__.py google_cloud_storage-3.8.0/google/cloud/storage/_media/requests/__init__.py
--- google_cloud_storage-3.8.0.orig/google/cloud/storage/_media/requests/__init__.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/google/cloud/storage/_media/requests/__init__.py 2026-01-16 10:59:54.646351819 +0100
@@ -32,7 +32,7 @@
import google.auth
import google.auth.credentials as creds_mod
- import mock
+ from unittest import mock
def mock_default(scopes=None):
credentials = mock.Mock(spec=creds_mod.Credentials)
@@ -68,7 +68,7 @@
.. testsetup:: basic-download
- import mock
+ from unittest import mock
import requests
import http.client
@@ -111,7 +111,7 @@
.. testsetup:: basic-download-with-slice
- import mock
+ from unittest import mock
import requests
import http.client
@@ -170,7 +170,7 @@
import io
- import mock
+ from unittest import mock
import requests
import http.client
@@ -230,7 +230,7 @@
.. testsetup:: chunked-download-end
- import mock
+ from unittest import mock
import requests
import http.client
@@ -303,7 +303,7 @@
import json
- import mock
+ from unittest import mock
import requests
import http.client
@@ -363,7 +363,7 @@
import time
- import mock
+ from unittest import mock
import requests
import http.client
@@ -438,7 +438,7 @@
import json
- import mock
+ from unittest import mock
import requests
import http.client
@@ -524,7 +524,7 @@
import io
- import mock
+ from unittest import mock
import requests
import http.client
@@ -585,7 +585,7 @@
import io
import json
- import mock
+ from unittest import mock
import requests
import http.client
diff -Nru google_cloud_storage-3.8.0.orig/google/cloud/storage/_media/requests/upload.py google_cloud_storage-3.8.0/google/cloud/storage/_media/requests/upload.py
--- google_cloud_storage-3.8.0.orig/google/cloud/storage/_media/requests/upload.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/google/cloud/storage/_media/requests/upload.py 2026-01-16 10:59:54.644082466 +0100
@@ -198,7 +198,7 @@
import os
import tempfile
- import mock
+ from unittest import mock
import requests
import http.client
@@ -255,7 +255,7 @@
import io
- import mock
+ from unittest import mock
import requests
import http.client
@@ -296,7 +296,7 @@
import io
- import mock
+ from unittest import mock
import requests
import http.client
@@ -457,7 +457,7 @@
import io
- import mock
+ from unittest import mock
import requests
import http.client
diff -Nru google_cloud_storage-3.8.0.orig/tests/system/test_blob.py google_cloud_storage-3.8.0/tests/system/test_blob.py
--- google_cloud_storage-3.8.0.orig/tests/system/test_blob.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/system/test_blob.py 2026-01-16 10:59:54.678155512 +0100
@@ -21,7 +21,7 @@
import warnings
import pytest
-import mock
+from unittest import mock
from google import resumable_media
from google.cloud.storage.exceptions import DataCorruption
from google.api_core import exceptions
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/gapic/storage_v2/test_storage.py google_cloud_storage-3.8.0/tests/unit/gapic/storage_v2/test_storage.py
--- google_cloud_storage-3.8.0.orig/tests/unit/gapic/storage_v2/test_storage.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/gapic/storage_v2/test_storage.py 2026-01-16 10:59:54.757161041 +0100
@@ -20,7 +20,7 @@
from unittest import mock
from unittest.mock import AsyncMock # pragma: NO COVER
except ImportError: # pragma: NO COVER
- import mock
+ from unittest import mock
import grpc
from grpc.experimental import aio
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_acl.py google_cloud_storage-3.8.0/tests/unit/test_acl.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_acl.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_acl.py 2026-01-16 10:59:54.769161251 +0100
@@ -14,7 +14,7 @@
import unittest
@@ -24,11 +166,10 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_acl.py
from google.cloud.storage.retry import (
DEFAULT_RETRY,
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_batch.py google_cloud_storage-3.8.0/tests/unit/test_batch.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_batch.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_batch.py 2026-01-16 10:59:54.723595781 +0100
@@ -17,7 +17,7 @@
from http.client import NO_CONTENT
import unittest
@@ -36,12 +177,11 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_batch.py
+from unittest import mock
import requests
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 google.cloud.storage._helpers import _DEFAULT_UNIVERSE_DOMAIN
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_blob.py google_cloud_storage-3.8.0/tests/unit/test_blob.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_blob.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_blob.py 2026-01-16 10:59:54.711160236 +0100
@@ -24,7 +24,7 @@
from unittest.mock import patch
from urllib.parse import urlencode
@@ -49,11 +189,10 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_blob.py
+from unittest import mock
import pytest
from google.cloud.storage import _helpers
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
from google.cloud.exceptions import NotFound
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_bucket.py google_cloud_storage-3.8.0/tests/unit/test_bucket.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_bucket.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_bucket.py 2026-01-16 10:59:54.767161216 +0100
@@ -15,7 +15,7 @@
import datetime
import unittest
@@ -62,12 +201,11 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_bucket.py
+from unittest import mock
import pytest
from google.cloud.storage.retry import DEFAULT_RETRY
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
from google.cloud.storage.blob import _quote
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_client.py google_cloud_storage-3.8.0/tests/unit/test_client.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_client.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_client.py 2026-01-16 10:59:54.720694818 +0100
@@ -17,7 +17,7 @@
import io
import json
from unittest.mock import patch
@@ -76,11 +214,10 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_client.py
import pytest
import re
import requests
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_fileio.py google_cloud_storage-3.8.0/tests/unit/test_fileio.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_fileio.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_fileio.py 2026-01-16 10:59:54.718626447 +0100
@@ -18,7 +18,7 @@
import io
import string
@@ -88,11 +225,10 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_fileio.py
+from unittest import mock
from google.api_core.exceptions import RequestRangeNotSatisfiable
from google.cloud.storage.retry import DEFAULT_RETRY
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
from google.cloud.storage.fileio import CHUNK_SIZE_MULTIPLE
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test__helpers.py google_cloud_storage-3.8.0/tests/unit/test__helpers.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test__helpers.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test__helpers.py 2026-01-16 10:59:54.716578054 +0100
@@ -14,7 +14,7 @@
import unittest
@@ -102,19 +238,18 @@ Index: google-cloud-storage-2.14.0/tests/unit/test__helpers.py
from google.cloud.storage.retry import DEFAULT_RETRY
from google.cloud.storage.retry import DEFAULT_RETRY_IF_METAGENERATION_SPECIFIED
@@ -561,8 +561,6 @@ class Test__base64_md5hash(unittest.Test
@@ -586,7 +586,7 @@
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):
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_hmac_key.py google_cloud_storage-3.8.0/tests/unit/test_hmac_key.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_hmac_key.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_hmac_key.py 2026-01-16 10:59:54.764429205 +0100
@@ -14,7 +14,7 @@
import unittest
@@ -124,10 +259,9 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_hmac_key.py
from google.cloud.storage.retry import DEFAULT_RETRY
from google.cloud.storage.retry import DEFAULT_RETRY_IF_ETAG_IN_JSON
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test__http.py google_cloud_storage-3.8.0/tests/unit/test__http.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test__http.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test__http.py 2026-01-16 10:59:54.704689771 +0100
@@ -15,7 +15,7 @@
import unittest
from unittest.mock import patch
@@ -137,10 +271,9 @@ Index: google-cloud-storage-2.14.0/tests/unit/test__http.py
from google.cloud.storage import _helpers
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_notification.py google_cloud_storage-3.8.0/tests/unit/test_notification.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_notification.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_notification.py 2026-01-16 10:59:54.706550807 +0100
@@ -14,7 +14,7 @@
import unittest
@@ -150,24 +283,34 @@ Index: google-cloud-storage-2.14.0/tests/unit/test_notification.py
from google.cloud.storage.retry import DEFAULT_RETRY
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test__opentelemetry_tracing.py google_cloud_storage-3.8.0/tests/unit/test__opentelemetry_tracing.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test__opentelemetry_tracing.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test__opentelemetry_tracing.py 2026-01-16 10:59:54.708494391 +0100
@@ -17,7 +17,7 @@
import pytest
import sys
-import mock
+from unittest import mock
from google.api_core.exceptions import GoogleAPICallError
from google.cloud.storage import __version__
from google.cloud.storage import _opentelemetry_tracing
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_retry.py google_cloud_storage-3.8.0/tests/unit/test_retry.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_retry.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_retry.py 2026-01-16 10:59:54.746717083 +0100
@@ -17,7 +17,7 @@
from google.cloud.storage import _helpers
from google.cloud.storage.exceptions import InvalidResponse
-import mock
+from unittest import mock
class Test_should_retry(unittest.TestCase):
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
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test__signing.py google_cloud_storage-3.8.0/tests/unit/test__signing.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test__signing.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test__signing.py 2026-01-16 10:59:54.714434821 +0100
@@ -23,7 +23,7 @@
import unittest
import urllib.parse
@@ -175,12 +318,11 @@ Index: google-cloud-storage-2.14.0/tests/unit/test__signing.py
+from unittest import mock
import pytest
from . import _read_local_json
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
from google.cloud.storage._helpers import _UTC
diff -Nru google_cloud_storage-3.8.0.orig/tests/unit/test_transfer_manager.py google_cloud_storage-3.8.0/tests/unit/test_transfer_manager.py
--- google_cloud_storage-3.8.0.orig/tests/unit/test_transfer_manager.py 2026-01-14 01:41:56.000000000 +0100
+++ google_cloud_storage-3.8.0/tests/unit/test_transfer_manager.py 2026-01-16 10:59:54.744589019 +0100
@@ -25,7 +25,7 @@
import os
import tempfile

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc67952dce84ebc9d44970e24647a58260630b7b64d72360cedaf422d6727f28
size 17273792

View File

@@ -1,3 +1,178 @@
-------------------------------------------------------------------
Fri Jan 16 13:44:36 UTC 2026 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Fix incorrect Python package names in Requires
-------------------------------------------------------------------
Fri Jan 16 13:04:01 UTC 2026 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.8.0
* flush the last chunk in append method (#1699)
* add write resumption strategy (#1663)
* add bidi stream retry manager. (#1632)
* implement "append_from_file" (#1686)
* make flush size configurable (#1677)
* compute chunk wise checksum for bidi_writes (#1675)
* expose persisted size in mrd (#1671)
* add system test for opening with read_handle (#1672)
* no state lookup while opening bidi-write stream (#1636)
* close write object stream always (#1661)
- from version 3.7.0
* Auto enable mTLS when supported certificates are detected (#1637)
* Send entire object checksum in the final api call of resumable upload (#1654)
* Support urllib3 >= 2.6.0 (#1658)
* Fix for move_blob failure when the new blob name contains characters that
need to be url encoded (#1605)
- from version 3.6.0
* Add support for partial list buckets (#1606)
* Make return_partial_success and unreachable fields public for list Bucket (#1601)
* **zb-experimental:** Add async write object stream
* **zb-experimental:** Add async write object stream (#1612)
* Dont pass credentials to StorageClient (#1608)
- from version 3.5.0
* **experimental:** Add base resumption strategy for bidi streams (#1594)
* **experimental:** Add checksum for bidi reads operation (#1566)
* **experimental:** Add read resumption strategy (#1599)
* **experimental:** Handle BidiReadObjectRedirectedError for bidi reads (#1600)
* Indicate that md5 is used as a CRC (#1522)
* Provide option to update user_agent (#1596)
* Deprecate credentials_file argument
* Flaky system tests for resumable_media (#1592)
* Make `download_ranges` compatible with `asyncio.create_task(..)` (#1591)
* Make `download_ranges` compatible with `asyncio.create_task(..)` (#1591)
* Redact sensitive data from OTEL traces and fix env var parsing (#1553)
* Redact sensitive data from OTEL traces and fix env var parsing (#1553)
* Use separate header object for each upload in Transfer Manager MPU (#1595)
- Refresh demock.patch
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Mon Oct 20 09:09:39 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.4.1
* Fixes (#1561) by adding an option to specify the entire object checksum
for resumable uploads via the `upload_from_string`, `upload_from_file`,
and `upload_from_filename` methods.
- from version 3.4.0
* **experimental:** Add async grpc client (#1537)
* **experimental:** Add grpc client (#1533)
* GAPIC generation failed with 'Directory not empty' (#1542)
- Adjust python folder names in %files section
-------------------------------------------------------------------
Fri Sep 5 10:06:05 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.1
* Provide option to user to set entire object checksum at "initiate
a resumable upload session" and send the same (#1525)
* Send part's checksum for XML MPU part upload (#1529)
- from version 3.3.0
* Add support for bucket IP filter (#1516)
* Add logs on AssertionError for issue (#1512)
* Update the documentation of move_blob function (#1507)
- from version 3.2.0
* Adding support of single shot download (#1493)
- from version 3.1.1
* Add a check for partial response data (#1487)
* Add trove classifier for Python 3.13 (0100916)
* **deps:** Require google-crc32c >= 1.1.3 (0100916)
* **deps:** Require protobuf >= 3.20.2, < 7.0.0 (0100916)
* **deps:** Require requests &gt;= 2.22.0 (0100916)
* Remove setup.cfg configuration for creating universal wheels (#1448)
* Resolve issue where pre-release versions of dependencies are installed (0100916)
* Segmentation fault in tink while writing data (#1490)
* Move quickstart to top of readme (#1451)
* Update README to break infinite redirect loop (#1450)
- Add %{python_sitelib}/google/cloud/storage_v2 in %files section
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Sat Apr 26 09:45:06 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.1.0
* Add api_key argument to Client constructor (#1441)
* Add Bucket.move_blob() for HNS-enabled buckets (#1431)
- from version 3.0.0
* The default checksum strategy for uploads has changed from None to "auto" (#1383)
* The default checksum strategy for downloads has changed from "md5" to "auto" (#1383)
* Deprecated positional argument "num_retries" has been removed (#1377)
* Deprecated argument "text_mode" has been removed (#1379)
* Blob.download_to_filename() now deletes the empty destination file on a 404 (#1394)
* Media operations now use the same retry backoff, timeout and custom predicate system
as non-media operations, which may slightly impact default retry behavior (#1385)
* Retries are now enabled by default for uploads, blob deletes and blob metadata updates (#1400)
* Add "auto" checksum option and make default ([1383)
* Blob.download_to_filename() deletes the empty destination file on a 404 (#1394)
* Enable custom predicates for media operations (#1385)
* Integrate google-resumable-media (#1283)
* Retry by default for uploads, blob deletes, metadata updates (#1400)
* Cancel upload when BlobWriter exits with exception (#1243)
* Changed name of methods `Blob.from_string()` and `Bucket.from_string()` to `from_uri()` (#1335)
* Correctly calculate starting offset for retries of ranged reads (#1376)
* Filter download_kwargs in BlobReader (#1411)
* Remove deprecated num_retries argument (#1377)
* Remove deprecated text_mode argument (#1379)
* Correct formatting and update README.rst (#1427)
* Fix issue with exceptions.py documentation (#1328)
- Refresh demock.patch
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Thu Dec 5 08:59:33 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Update to 2.19.0:
- Features
- Add integration test for universe domain
- Add restore_bucket and handling for soft-deleted buckets
- Add support for restore token
- IAM signBlob retry and universe domain support
- Bug Fixes
- Allow signed post policy v4 with service account and token
- Do not spam the log with checksum related INFO messages
when downloading using transfer_manager
- Update to 2.18.2:
- Bug Fixes
- Add regression test for range read retry issue and bump
dependency to fix
- Update to 2.18.1:
- Bug Fixes
- Properly escape URL construction for XML MPU API
- Update to 2.18.0:
- Features
- Add OpenTelemetry Tracing support as a preview feature
- Bug Fixes
- Allow Protobuf 5.x
- Correct notification error message
- Update to 2.17.0:
- Features
- Support HNS enablement in bucket metadata
- Support page_size in bucket.list_blobs
- Bug Fixes
- Remove deprecated methods in samples and tests
- Documentation
- Reference Storage Control in readme
- Update DEFAULT_RETRY_IF_GENERATION_SPECIFIED docstrings
- Update to 2.16.0:
- Features
- Add support for soft delete
- Support includeFoldersAsPrefixes
- Update to 2.15.0:
- Features
- Support custom universe domains/TPC
- Bug Fixes
- Add "updated" as property for Bucket
- Remove utcnow usage
-------------------------------------------------------------------
Tue Mar 5 20:27:04 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Obsolete Python 3.6 build for SLE 15 SP4 and openSUSE Leap 15.4 and later
-------------------------------------------------------------------
Mon Feb 26 23:54:23 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Version update in SLE 15 SP4 and later (jsc#PED-6697)
-------------------------------------------------------------------
Tue Dec 19 17:05:18 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
@@ -348,6 +523,30 @@ Tue Apr 13 19:30:16 UTC 2021 - Robert Schweikert <rjschwei@suse.com>
- Skip Python 2 build as dependencies are no longer built for Python 2 either
-------------------------------------------------------------------
Mon Jun 29 19:15:38 UTC 2020 - Sean Marlow <sean.marlow@suse.com>
- Update to 1.23.0:
* Move create_bucket implementation from Bucket to Client.
* Add opt-in raw download support.
* Fix query-string order dependent assert.
* Normalize VPCSC configuration in system tests.
- Update to 1.22.0:
* Add UBLA attrs to IAMConfiguration.
- Update to 1.21.0:
* Add gcloud-python header to user agent.
* Don't report a gapic version for storage.
* Update storage endpoint from www.googleapis.com to
storage.googleapis.com.
* Call anonymous client method to remove dependency of google
application credentials.
* Enable CSEK w/ V4 signed URLs.
* Support predefined ACLs in Bucket.create.
- Update to 1.20.0:
* Add user_project param to HMAC-related methods.
* Add Blob.from_string and Bucket.from_string factories.
* Add support for STORAGE_EMULATOR_HOST; add benchwrapper script.
-------------------------------------------------------------------
Mon Jun 29 15:55:00 UTC 2020 - Sean Marlow <sean.marlow@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-google-cloud-storage
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,40 +28,59 @@
%endif
%{?sle15_python_module_pythons}
Name: python-google-cloud-storage%{pkg_suffix}
Version: 2.14.0
Version: 3.8.0
Release: 0
Summary: Google Cloud Storage API python client library
License: Apache-2.0
URL: https://github.com/googleapis/python-storage
Source: https://files.pythonhosted.org/packages/source/g/google-cloud-storage/google-cloud-storage-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/g/google-cloud-storage/google_cloud_storage-%{version}.tar.gz
# PATCH-FIX-UPSTREAM demock.patch gh#googleapis/python-storage#770 mcepl@suse.com
# Dont use external mock package
Patch1: demock.patch
BuildRequires: %{python_module grpcio >= 1.33.2 if %python-base < 3.14}
BuildRequires: %{python_module grpcio >= 1.75.1 if %python-base >= 3.14}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module proto-plus >= 1.22.3 if %python-base < 3.13}
BuildRequires: %{python_module proto-plus >= 1.25.0 if %python-base >= 3.13}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-api-core >= 1.31.5
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
%if %python_version_nodots < 314
Requires: python-grpcio >= 1.33.2
%else
Requires: python-grpcio >= 1.75.1
%endif
%if %python_version_nodots < 313
Requires: python-proto-plus >= 1.22.3
%else
Requires: python-proto-plus >= 1.25.0
%endif
Requires: python-google-api-core >= 2.27.0
Requires: python-google-auth >= 2.26.1
Requires: python-google-cloud-core >= 2.4.2
Requires: python-google-crc32c >= 1.1.3
Requires: python-google-resumable-media >= 2.7.2
Requires: python-googleapis-common-protos
Requires: python-requests >= 2.18.0
Requires: python-requests >= 2.22.0
BuildArch: noarch
%if 0%{?sle_version} >= 150400
Obsoletes: python3-google-cloud-storage < %{version}
%endif
# SECTION test requirements
%if %{with test}
BuildRequires: %{python_module google-api-core >= 1.31.5}
BuildRequires: %{python_module google-auth >= 2.23.3}
BuildRequires: %{python_module google-cloud-core >= 2.3.0}
BuildRequires: %{python_module google-api-core >= 2.27.0}
BuildRequires: %{python_module google-auth >= 2.26.1}
BuildRequires: %{python_module google-cloud-core >= 2.4.2}
BuildRequires: %{python_module google-cloud-iam >= 0.14.0}
BuildRequires: %{python_module google-cloud-storage}
BuildRequires: %{python_module google-crc32c >= 1.0}
BuildRequires: %{python_module google-resumable-media >= 2.6.0}
BuildRequires: %{python_module google-crc32c >= 1.1.3}
BuildRequires: %{python_module google-resumable-media >= 2.7.2}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.18.0}
BuildRequires: %{python_module requests >= 2.22.0}
%endif
# /SECTION
%python_subpackages
@@ -73,7 +92,7 @@ availability, and can be used to distribute large data objects
to users via direct download. This package provides client to it.
%prep
%autosetup -p1 -n google-cloud-storage-%{version}
%autosetup -p1 -n google_cloud_storage-%{version}
%if !%{with test}
%build
@@ -116,6 +135,7 @@ export GOOGLE_CLOUD_PROJECT="PROJECT"
%dir %{python_sitelib}/google
%dir %{python_sitelib}/google/cloud
%{python_sitelib}/google/cloud/storage
%{python_sitelib}/google/cloud/_storage_v2
%{python_sitelib}/google_cloud_storage-%{version}*-info
%endif