commit 1fca1a3a90cee8c593997fc574ac39ce9b6a614e2c81e7e18d3e8f4c98cbb12b Author: Adrian Schröter Date: Fri May 3 20:51:49 2024 +0200 Sync from SUSE:SLFO:Main python-google-resumable-media revision 271fa4f4a319511ac1a272c31377e4f2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/google-resumable-media-2.6.0.tar.gz b/google-resumable-media-2.6.0.tar.gz new file mode 100644 index 0000000..1f166e4 --- /dev/null +++ b/google-resumable-media-2.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:972852f6c65f933e15a4a210c2b96930763b47197cdf4aa5f5bea435efb626e7 +size 2161310 diff --git a/python-google-resumable-media.changes b/python-google-resumable-media.changes new file mode 100644 index 0000000..d215733 --- /dev/null +++ b/python-google-resumable-media.changes @@ -0,0 +1,187 @@ +------------------------------------------------------------------- +Tue Sep 12 13:11:29 UTC 2023 - John Paul Adrian Glaubitz + +- Update to 2.6.0 + Features + * Add support for concurrent XML MPU uploads (#395) + * Introduce compatibility with native namespace packages (#385) + Bug Fixes + * Add google-auth to aiohttp extra (#386) +- Update file pattern in %files section + +------------------------------------------------------------------- +Thu May 11 10:52:03 UTC 2023 - John Paul Adrian Glaubitz + +- Update to 2.5.0 + Features + * Add support to retry known connection errors (#375) + +------------------------------------------------------------------- +Tue Mar 7 10:30:15 UTC 2023 - John Paul Adrian Glaubitz + +- Update to 2.4.1 + Bug Fixes + * Avoid validating checksums for partial responses (#361) +- Drop patches for issues fixed upstream + * python-google-resumable-media-no-mock.patch + +------------------------------------------------------------------- +Mon Oct 17 09:39:25 UTC 2022 - John Paul Adrian Glaubitz + +- Update to 2.4.0 + Features + * Handle interrupted downloads with decompressive transcoding (#346) + Bug Fixes + * Allow recover to check the status of upload regardless of state (#343) + * Require python 3.7+ (#337) (942665f) + * Use unittest.mock (#329) (82f9769) + Documentation + * Fix changelog header to consistent size (#331) (7b1dc9c) +- Refresh patches for new version + * python-google-resumable-media-no-mock.patch + +------------------------------------------------------------------- +Thu Jun 9 08:40:36 UTC 2022 - pgajdos@suse.com + +- version update to 2.3.3 + * retry client side requests timeout (#319) (d0649c7) +- added patches + https://github.com/googleapis/google-resumable-media-python/commit/82f9769f3368404d1854dd22eeed34eeb25ea835 + + python-google-resumable-media-no-mock.patch + +------------------------------------------------------------------- +Fri Apr 8 11:03:03 UTC 2022 - John Paul Adrian Glaubitz + +- Update to 2.3.2 + Bug Fixes + * append existing headers in prepare_initiate_request (#314) +- from version 2.3.1 + Bug Fixes + * include existing headers in prepare request (#309) +- from version 2.3.0 + Features + * safely resume interrupted downloads (#294) +- from version 2.2.1 + Bug Fixes + * don't overwrite user-agent on requests (42b380e) +- from version 2.2.0 + Features + * add 'py.typed' declaration file (#287) + * add support for signed resumable upload URLs (#290) + Bug Fixes + * add user-agent on requests (#295) + +------------------------------------------------------------------- +Sun Jan 23 15:54:35 UTC 2022 - Dirk Müller + +- update to 2.1.0: + * add support for Python 3.10 + * Include ConnectionError and urllib3 exception as retriable + +------------------------------------------------------------------- +Thu Sep 30 06:30:37 UTC 2021 - Matej Cepl + +- Changing pytest's import-mode=importlib seems to make the test + suite working as well. + +------------------------------------------------------------------- +Tue Sep 28 21:00:40 UTC 2021 - Matej Cepl + +- Run test suite correctly (from tests/ directory moved elsewhere) + +------------------------------------------------------------------- +Tue Aug 31 09:04:07 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 2.0.0 + * drop Python 2.7 support + * retry ConnectionError and similar errors that occur mid-download +- from version 1.3.3 + * revert "fix: add retry coverage to the streaming portion of a download" +- from version 1.3.2 + * add retry coverage to the streaming portion of a download +- from version 1.3.1 + * **deps:** require six>=1.4.0 +- Disable Python2 builds +- Update BuildRequires and Requires from setup.py + +------------------------------------------------------------------- +Mon Aug 2 04:05:04 UTC 2021 - Steve Kowalik + +- Add Requires on python-google-crc32c. +- Remove aiohttp from BuildRequires, and add it to Recommends. + +------------------------------------------------------------------- +Tue Jun 22 06:36:43 UTC 2021 - Steve Kowalik + +- Be more specific about included filepaths in %files +- Add Requires on python-google-filesystem, and stop including a file it + now ships. + +------------------------------------------------------------------- +Fri Jun 4 08:37:34 UTC 2021 - Matej Cepl + +- Update to 1.3.0: + - allow RetryStrategy to be configured with a custom initial + wait and multiplier + - add support for Python 3.9, drop support for Python 3.5 + - add retries for 'requests.ConnectionError' + - add _async_resumable_media experimental support + - allow space in checksum header + - lint: blacken 5 files + - bump 'google-crc32c >= 1.0' + - pin 'google-crc32c < 0.2dev' + - update docs build (via synth) + - use googleapis.dev docs link + - add configurable checksum support for uploads + - add customizable timeouts to upload/download methods + - add configurable crc32c checksumming for downloads + - add templates for python samples projects + - update client_documentation link + - updated CHANGELOG.md + - updated setup.py + +------------------------------------------------------------------- +Wed Mar 17 03:31:07 UTC 2021 - Steve Kowalik + +- To enable the test suite to import the namespace package, touch + __init__.py + +------------------------------------------------------------------- +Wed Apr 8 12:04:23 UTC 2020 - Marketa Calabkova + +- Update to 0.5.0 + * Add raw download classes. + +------------------------------------------------------------------- +Thu Sep 26 13:59:46 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.1: + * Revert "Always use raw response data. (#87)" (#103) + +------------------------------------------------------------------- +Thu Sep 12 10:14:02 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.0: + * Require 200 response for initial resumable upload request. (#95) + * Use response as variable for object returned from http_request. (#98) + * Further DRY request dependency pins. (#96) + * Finish download on seeing 416 response with zero byte range. (#86) + * Always use raw response data. (#87) + +------------------------------------------------------------------- +Fri Mar 15 12:10:32 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.2: + * Using str instead of repr for multipart boundary. + * Making requests a strict dependency for the requests subpackage. +- Really run tests + +------------------------------------------------------------------- +Tue Dec 4 12:48:41 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Wed Sep 12 19:36:01 UTC 2018 - Thomas Bechtold + +- Initial packaging (version 0.3.1) diff --git a/python-google-resumable-media.spec b/python-google-resumable-media.spec new file mode 100644 index 0000000..c561083 --- /dev/null +++ b/python-google-resumable-media.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-google-resumable-media +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-google-resumable-media +Version: 2.6.0 +Release: 0 +Summary: Utilities for Google Media Downloads and Resumable Uploads +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/googleapis/google-resumable-media-python +Source: https://files.pythonhosted.org/packages/source/g/google-resumable-media/google-resumable-media-%{version}.tar.gz +BuildRequires: %{python_module google-auth} +BuildRequires: %{python_module google-crc32c} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.18.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-google-crc32c +Recommends: python-aiohttp +Recommends: python-requests >= 2.18.0 +BuildArch: noarch +%python_subpackages + +%description +Utilities for Google Media Downloads and Resumable Uploads + +%prep +%setup -q -n google-resumable-media-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTEST_ADDOPTS="--import-mode=importlib" +%pytest tests/unit + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/google_resumable_media*-info +%{python_sitelib}/google/resumable_media* +%{python_sitelib}/google/_async_resumable_media* + +%changelog