Sync from SUSE:SLFO:Main python-google-cloud-storage revision 5a45ad993721f3e2835ca336f28895b0

This commit is contained in:
Adrian Schröter 2024-05-03 20:51:09 +02:00
commit 79a2bc63ed
6 changed files with 832 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

191
demock.patch Normal file
View File

@ -0,0 +1,191 @@
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
-import mock
+from unittest import mock
from google import resumable_media
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
@@ -14,7 +14,7 @@
import unittest
-import mock
+from unittest import mock
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
from http.client import NO_CONTENT
import unittest
-import mock
+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 unittest.mock import patch
from urllib.parse import urlencode
-import mock
+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
@@ -15,7 +15,7 @@
import datetime
import unittest
-import mock
+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
import io
import json
from unittest.mock import patch
-import mock
+from unittest import mock
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
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
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
-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
@@ -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
-
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
@@ -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
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
-import mock
+from unittest import mock
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
@@ -14,7 +14,7 @@
import unittest
-import mock
+from unittest import mock
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
from google.cloud.storage import _helpers
-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
import unittest
import urllib.parse
-import mock
+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
import os
import tempfile
-import mock
+from unittest import mock
import pickle
BLOB_TOKEN_STRING = "blob token"

BIN
google-cloud-storage-2.14.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,490 @@
-------------------------------------------------------------------
Tue Dec 19 17:05:18 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Fix tests, setting GOOGLE_CLOUD_PROJECT environment variable.
- Add fake default credentials to fix tests
-------------------------------------------------------------------
Sat Dec 16 19:22:43 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <adrian.glaubitz@suse.com>
- 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 <adrian.glaubitz@suse.com>
- 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 <mcepl@suse.com>
- 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 <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>
- Update to 2.7.0
* Add "transfer_manager" module for concurrent uploads and
downloads, as a preview feature (#943)
* Add use_auth_w_custom_endpoint support (#941)
* Implement closed property on fileio.py classes (#907)
-------------------------------------------------------------------
Wed Nov 16 15:38:28 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.6.0
Features
* Add Autoclass support and samples (#791), closes (#797)
* Add predefined_acl to create_resumable_upload_session (#878)
* Enable delete_blobs() to preserve generation (#840), closes (#814)
* Make tests run against environments other than prod (#883)
Bug Fixes
* Align bucket bound hostname url builder consistency (#875)
* BlobWriter.close() will do nothing if already closed (#887)
* Remove client side validations (#868)
Documentation
* Update comments in list_blobs sample (#866)
* Clarify prefixes entity in list_blobs usage (#837)
* Streamline docs for migration (#876)
* Update docstring for lifecycle_rules to match generator behavior (#841)
-------------------------------------------------------------------
Tue Sep 13 09:50:40 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.5.0
* Custom Placement Config Dual Region Support (#819)
* open file-like objects in byte mode for uploads (#824)
-------------------------------------------------------------------
Thu Jun 9 10:17:20 UTC 2022 - pgajdos@suse.com
- version update to 2.4.0
Features
* add AbortIncompleteMultipartUpload lifecycle rule (#765) (b2e5150)
* support OLM Prefix/Suffix (#773) (187cf50)
Bug Fixes
* fix rewrite object in CMEK enabled bucket (#807) (9b3cbf3)
Documentation
* fix changelog header to consistent size (#802) (4dd0907)
* samples: Update the Recovery Point Objective (RPO) sample output (#725) (b0bf411)
* Update generation_metageneration.rst with a missing space (#798) (1e7cdb6)
* update retry docs (#808) (c365d5b)
- test in _multibuild
- modified patches
% demock.patch (rebased)
- deleted patches
- no-relative-imports.patch (upstreamed)
- added sources
+ _multibuild
-------------------------------------------------------------------
Sat Apr 23 09:49:04 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Limit %files list a bit tighter.
-------------------------------------------------------------------
Fri Apr 15 08:55:20 UTC 2022 - Matej Cepl <mcepl@suse.com>
- 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)
-------------------------------------------------------------------
Wed Apr 13 10:13:58 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.2.1
Bug Fixes
* remove py.typed marker file for PEP 561 (#735), closes (#734)
- from version 2.2.0
Features
* allow no project in client methods using storage emulator (#703)
Bug Fixes
* add user agent in python-storage when calling resumable media (c7bf615)
* **deps:** require google-api-core>=1.31.5, >=2.3.2 (#722) (e9aab38)
* Fix BlobReader handling of interleaved reads and seeks (#721) (5d1cfd2)
* retry client side requests timeout (#727) (e0b3b35)
Documentation
* fixed download_blob_to_file example (#704) (2c94d98)
- from 2.1.0
Features
* add turbo replication support and samples (#622) (4dafc81)
* avoid authentication with storage emulator (#679) (8789afa)
* remove python 3.6 support (#689) (8aa4130)
- from version 2.0.0
BREAKING CHANGES
* Remove Python 2 support (#657)
Features
* Remove Python 2 support (#657) (b611670)
- from version 1.44.0
Features
* add raw_download kwarg to BlobReader (#668) (10cdad6)
Documentation
* Describe code sample more specifically (#660) (0459cb4)
* refresh readme instructions (#667) (ceb9314)
* This is just a simple PR to better describe what the code
is doing in the comments. (0459cb4)
* use writeable streamin example for 'download_blob_to_file' (#676) (96092d4)
- from version 1.43.0
Features
* add ignore_flush parameter to BlobWriter (#644) (af9c9dc)
* add support for Python 3.10 (#615) (f81a2d0)
Bug Fixes
* raise a ValueError in BucketNotification.create() if a topic
name is not set (#617) (9dd78df)
Documentation
* add contributing and authoring guides under samples/ (#633) (420591a)
* add links to samples and how to guides (#641) (49f78b0)
* add README to samples subdirectory (#639) (58af882)
* update samples readme with cli args (#651) (75dda81)
- from 1.42.3
Bug Fixes
* changeover unspecified to inherited (#603) (283a419)
* check response code in batch.finish (#609) (318a286)
* skip tests that use unspecified pap until we get the change in (#600) (38b9b55)
- from version 1.42.2
Bug Fixes
* add preconditions and retry config support to ACL patch operationss (#586) (4333caf)
* add unpinned protobuf for python3 (#592) (53f7ad0)
* pin six as a required dependency (#589) (9ca97bf)
- from version 1.42.1
Bug Fixes
* do not append duplicates to user agent string (#570) (57cf3a1)
Documentation
* pass explicit 'client' in '{Blob.Bucket}.from_string' examples (#545) (6eff22d)
- from version 1.42.0
Features
* add 'page_size' parameter to 'Bucket.list_blobs, list_buckets (#520) (c5f4ad8)
Bug Fixes
* **deps:** add explicit ranges for 'google-api-core' and 'google-auth' (#530) (310f207)
* downloading no longer marks metadata fields as 'changed' (#523) (160d1ec)
* make 'requests.exceptions.ChunkedEncodingError retryable by default (#526) (4abb403)
Documentation
* update supported / removed Python versions in README (#519) (1f1b138)
- from version 1.41.1
Bug Fixes
* **deps:** pin `{api,cloud}-core`, `auth` to allow 2.x versions on Python 3 (#512) (4d7500e)
* remove trailing commas from error message constants (#505) (d4a86ce)
Documentation
* replace usage of deprecated function `download_as_string` in docs (#508) (8dfa4d4)
- from version 1.41.0
Features
* add support for Etag headers on reads (#489) (741d3fd)
Bug Fixes
* **deps:** update minimum dependency versions to pick up bugfixes (#496) (92251a5)
* populate etag / generation / metageneration properties during download (#488) (49ba14c)
* revise and rename is_etag_in_json(data) (#483) (0a52546)
- from version 1.40.0
Features
* add preconditions and retry configuration to blob.create_resumable_upload_session (#484) (0ae35ee)
* add public access prevention to bucket IAM configuration (#304) (e3e57a9)
Bug Fixes
* replace default retry for upload operations (#480) (c027ccf)
- from version 1.39.0
Features
* media operation retries can be configured using the same interface
as with non-media operation (#447) (0dbbb8a)
Bug Fixes
* add ConnectionError to default retry (#445) (8344253)
* apply idempotency policies for ACLs (#458) (2232f38)
* replace python lifecycle action parsing ValueError with warning (#437) (2532d50)
* revise blob.compose query parameters `if_generation_match` (#454) (70d19e7)
Documentation
* streamline 'timeout' / 'retry' docs in docstrings (#461) (78b2eba)
* streamline docstrings for conditional parmas (#464) (6999370)
- Drop patches for issues fixed upstream
* no-network.patch
* no-sic.patch
- Refresh patches for new upstream version
* no-relative-imports.patch
- Update BuildRequires and Require from setup.py
-------------------------------------------------------------------
Thu Sep 30 09:19:18 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Add no-relative-imports.patch to fix relative imports.
-------------------------------------------------------------------
Thu Sep 30 09:04:12 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Copy the testsuite before we run it to avoid import problems.
- Remove horrible workarounds creating __init__.py and then removing them.
- Drop Requires on python-google-filesystem.
-------------------------------------------------------------------
Tue Jun 22 06:34:36 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Correct Requires to googleapis-common-protos.
- Add Requires on python-google-filesystem, and stop including a file it
now ships.
-------------------------------------------------------------------
Fri Jun 4 07:09:47 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Update to 1.38.0:
- add getters and setters for encryption_key and kms_key_name
- retry auth.TransportError errors
- revise docstrings for generate_signed_url
- Ensure consistency check in test runs even if expected error
occurs
- silence expected errors for routine operations on BlobReader
- add blob.open() for file-like I/O
- update user_project usage and documentation in bucket/client
class methods
- update batch connection to request api endpoint info from
client
- allow metadata keys to be cleared
- allow signed url version v4 without signed credentials
- correctly encode bytes for V2 signature
- add mtls support
- correctly decode times without microseconds
- expose num_retries parameter for blob upload methods
- pass the unused parameter
- set custom_time on uploads
- address incorrect usage of request preconditions
- Amend default retry behavior for bucket operations on client
- support ConnectionError retries for media operations
- 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'
- fix conditional retry handling of camelCase query params
- retry uploads only conditionally
- 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
- retry API calls with exponential backoff
- field policy return string
- self-upload files for Unicode system test
- use version.py for versioning, avoid issues with discovering
version via get_distribution
- preserve existing blob hashes when 'X-Goog-Hash header' is
not present
- blob: base64 includes additional characters
- add configurable checksumming for blob uploads and downloads
- add support for 'Blob.custom_time' and lifecycle rules
- error message return from api
- storage: add support of daysSinceNoncurrentTime and
noncurrentTimeBefore
- pass 'client_options' to base class ctor
- rename 'Blob.download_as_{string,bytes}', add
'Blob.download_as_text'
- 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
- migrate to Service Account Credentials API
- add multiprocessing.rst to synthool excludes
- Fix URL to the correct https://github.com/googleapis/python-storage
- Add no-network.patch marking tests requiring network access
(gh#googleapis/python-storage#457).
- Add no-sic.patch to work even with old setuptools and packaging
packages.
-------------------------------------------------------------------
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 15:55:00 UTC 2020 - Sean Marlow <sean.marlow@suse.com>
- Update version requirement for mock package.
+ The tests require at least version 3.0.0.
-------------------------------------------------------------------
Thu Jun 18 10:41:05 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.29.0
+ Features
* add *generation*match args into Blob.compose() (#122)
* add Bucket.reload() and Bucket.update() wrappers to restrict
generation match args (#153), closes (#127)
* add helper for bucket bound hostname URLs (#137), closes (#121)
* add if*generation*match support for Bucket.rename_blob() (#141)
* add if*generation*Match support, pt1 (#123)
* add offset and includeTrailingPrefix options to list_blobs (#125)
* Create CODEOWNERS (#135)
+ Bug Fixes
* **storage:** add documentaion of list_blobs with user project (#147)
* **storage:** add projection parameter to blob.reload method (#146)
* **storage:** add unused variables to method generation match (#152)
* **storage:** change the method names in snippets file (#161)
* **storage:** fix upload object with bucket cmek enabled (#158)
* set default POST policy scheme to "http" (#172)
- from version 1.28.0
+ Bug Fixes
* **storage:** anonymous credentials for private bucket (#107)
* add bucket name into POST policy conditions (#118)
-------------------------------------------------------------------
Tue Apr 28 07:48:26 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.28.0:
* Many various bugfixes all around
* Updated dependency requirements
-------------------------------------------------------------------
Thu Sep 26 13:51:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.19.1:
* Minor bugfix over previous release
-------------------------------------------------------------------
Thu Sep 12 10:18:12 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.19.0:
* Huge range of updates and tweaks, mostly bugfixing
-------------------------------------------------------------------
Thu May 16 23:24:53 UTC 2019 - Guang Yee <gyee@suse.com>
- Update to version 1.15.1
* Widen range for 'google-cloud-core'
- Update to version 1.15.0
* New Features
- Add support for V4 signed URLs
- Add generation arguments to bucket / blob methods
* Implementation Changes
- Remove classifier for Python 3.4 for end-of-life
- Ensure that 'Blob.reload' passes encryption headers
* Documentation
- Update client library documentation URLs
* Iternal / Testing Changes
- Fix failing system tests
- Increase number of retries for 429 errors
- Un-flake KMS integration tests expecting empty bucket
-------------------------------------------------------------------
Mon Feb 18 08:05:01 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Activate test suite
- Increase minimum versions:
* google-api-core >= 0.6.1
* google-cloud-core >= 0.29.0
- Adds new dependency google-cloud-kms
- Update to version 1.14.0
* New Features
- Add 'Bucket.iam_configuration' property, enabling Bucket-Policy-Only.
* Documentation
- Improve docs for 'generate_signed_url'
- from 1.13.2
* Implementation Changes
- Update Blob.update_storage_class to support rewrite tokens.
* Internal / Testing Changes
- Skip signing tests for insufficient credentials
- Document Python 2 deprecation
- Normalize docs for page_size / max_results / page_token.
- from 1.13.1
* Implementation Changes
- Import iam.policy from google.api_core.
- Accomodate new back-end restriction on retention period.
- Avoid deleting a blob renamed to itself
* Dependencies
- Update dependency to google-cloud-core
- Bump minimum api_core version for all GAPIC libs to 1.4.1.
* Documentation
- Normalize use of support level badges
* Internal / Testing Changes
- Blacken libraries
- Add templates for flake8, coveragerc, noxfile, and black.
- Harden teardown in system tests.
- Harden create_bucket call in systests vs. 429 TooManyRequests.
- Skip public bucket test in VPC Service Controls
- Fix lint failure.
- Disable test running in VPC Service Controls restricted environment
- Use new Nox
- from 1.13.0
* New Features
- Add support for bucket retention policies
- Allow destination.content_type to be None in Blob.compose.
* Implementation Changes
- Ensure that method for Blob.generate_signed_url is uppercase.
* Documentation
- Clarify GCS URL signing limitations on GCE
- Redirect renamed 'usage.html'/'client.html' -> 'index.html'.
- from 1.12.0
* New Features
- Add support for Python 3.7, drop support for Python 3.4.
- Add lifecycle rules helpers to bucket.
* Implementation Changes
- Add 'stacklevel=2' to deprecation warnings.
* Documentation
- Storage docs: fix typos.
- Prep storage docs for repo split.
* Internal / Testing Changes
- Harden systest teardown further.
- Nox: use inplace installs
-------------------------------------------------------------------
Tue Dec 4 12:48:39 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Fri May 18 04:42:37 UTC 2018 - tbechtold@suse.com
- Initial packaging (version 1.11.0)

View File

@ -0,0 +1,122 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define test 1
%define pkg_suffix -test
%bcond_without test
%else
%define pkg_suffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-google-cloud-storage%{pkg_suffix}
Version: 2.14.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
# PATCH-FIX-UPSTREAM demock.patch gh#googleapis/python-storage#770 mcepl@suse.com
# Dont use external mock package
Patch1: demock.patch
BuildRequires: %{python_module pip}
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
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 >= 2.23.3}
BuildRequires: %{python_module google-cloud-core >= 2.3.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 packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.18.0}
%endif
# /SECTION
%python_subpackages
%description
Google Cloud Storage allows you to store data on Google
infrastructure with very high reliability, performance and
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}
%if !%{with test}
%build
%pyproject_wheel
%endif
%if !%{with test}
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
# Set Fake default credentials for tests
mkdir -p $HOME/.config/gcloud
cat > $HOME/.config/gcloud/application_default_credentials.json <<EOF
{
"client_id": "111111111111-1qq1q1qq1qqq111qq1qqqq11q1qqqqqq.apps.googleusercontent.com",
"client_secret": "d-XXXXXXXXXXXXXXXXXXXXXX",
"refresh_token": "1//1111111111111111111111111111-XXXXXXXXX-AAAAAAAAAAA_BBBBBBBBBBBBBBBBBBBBBB-CCCCCCCCCCCCCCCCCCCCCCCCCC",
"type": "authorized_user"
}
EOF
export PYTEST_ADDOPTS="--import-mode=importlib" PYTHONPATH="."
# fails with the tests project env
WITHOUT_PROJECT="test_ctor_w_custom_endpoint_bypass_auth"
%pytest -k $WITHOUT_PROJECT tests/unit
# Some tests needs the GOOGLE_CLOUD_PROJECT environment variable
export GOOGLE_CLOUD_PROJECT="PROJECT"
%pytest -k "not (network or $WITHOUT_PROJECT)" tests/unit
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst
%dir %{python_sitelib}/google
%dir %{python_sitelib}/google/cloud
%{python_sitelib}/google/cloud/storage
%{python_sitelib}/google_cloud_storage-%{version}*-info
%endif
%changelog