From dcf8e85d97336537295e62011d3dc26ad48f535b9ed35ffb43ab556424944936 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Thu, 7 Apr 2022 12:44:59 +0000 Subject: [PATCH 1/2] Accepting request 967490 from home:glaubitz:branches:devel:languages:python - Update to 2.7.1 Bug Fixes * add more context to error message. (#340) - from version 2.7.0 Features * expose extra fields in ExtendedOperation (#351) - from version 2.6.1 Bug Fixes * Remove py2 tag from wheel (#343) - from version 2.6.0 Features * initial support for Extended Operations (#344) - from version 2.5.0 Features * add api_key to client options (#248) Bug Fixes * **deps:** remove setuptools from dependencies (#339) Documentation * fix typo in library name (#332) - from version 2.4.0 Features * add support for 'error_info' (#315) * iterator for processing JSON responses in REST streaming. (#317) - from version 2.3.2 Bug Fixes * address broken wheels in version 2.3.1 - from version 2.3.1 Bug Fixes * exclude function target from retry deadline exceeded exception message (#318) - from version 2.3.0 OBS-URL: https://build.opensuse.org/request/show/967490 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-core?expand=0&rev=37 --- google-api-core-2.0.1.tar.gz | 3 -- google-api-core-2.7.1.tar.gz | 3 ++ python-google-api-core.changes | 56 ++++++++++++++++++++++++++++++++++ python-google-api-core.spec | 6 ++-- 4 files changed, 63 insertions(+), 5 deletions(-) delete mode 100644 google-api-core-2.0.1.tar.gz create mode 100644 google-api-core-2.7.1.tar.gz diff --git a/google-api-core-2.0.1.tar.gz b/google-api-core-2.0.1.tar.gz deleted file mode 100644 index 184572f..0000000 --- a/google-api-core-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d6760f21b3a064a8397916b33be7383fc169d1a3c3d7fae7b47eb92bba7892b8 -size 95479 diff --git a/google-api-core-2.7.1.tar.gz b/google-api-core-2.7.1.tar.gz new file mode 100644 index 0000000..144b41b --- /dev/null +++ b/google-api-core-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0fa577e512f0c8e063386b974718b8614586a798c5894ed34bedf256d9dae24 +size 122056 diff --git a/python-google-api-core.changes b/python-google-api-core.changes index 39cd59e..541faa4 100644 --- a/python-google-api-core.changes +++ b/python-google-api-core.changes @@ -1,3 +1,59 @@ +------------------------------------------------------------------- +Thu Apr 7 12:20:32 UTC 2022 - John Paul Adrian Glaubitz + +- Update to 2.7.1 + Bug Fixes + * add more context to error message. (#340) +- from version 2.7.0 + Features + * expose extra fields in ExtendedOperation (#351) +- from version 2.6.1 + Bug Fixes + * Remove py2 tag from wheel (#343) +- from version 2.6.0 + Features + * initial support for Extended Operations (#344) +- from version 2.5.0 + Features + * add api_key to client options (#248) + Bug Fixes + * **deps:** remove setuptools from dependencies (#339) + Documentation + * fix typo in library name (#332) +- from version 2.4.0 + Features + * add support for 'error_info' (#315) + * iterator for processing JSON responses in REST streaming. (#317) +- from version 2.3.2 + Bug Fixes + * address broken wheels in version 2.3.1 +- from version 2.3.1 + Bug Fixes + * exclude function target from retry deadline exceeded exception message (#318) +- from version 2.3.0 + Features + * add operations rest client to support long-running operations. (#311) + Bug Fixes + * handle bare 'grpc.Call' in 'from_grpc_error' (#298) +- from version 2.2.2 + Bug Fixes + * make 'gapic_v1.method.DEFAULT' a typed object (#292) +- from version 2.2.1 + Bug Fixes + * revert "fix: do not error on LROs with no response or error" (#294) +- from version 2.2.0 + Features + * add 'GoogleAPICallError.error_details' property (#286) +- from version 2.1.1 + Bug Fixes + * add mypy checking + 'py.typed' file (#290) +- from version 2.1.0 + Features + * add grpc transcoding + tests (#259) + * Add helper function to format query_params for rest transport. (#275) + * add support for Python 3.10 (#284) +- Update BuildRequires and Requires from setup.py + ------------------------------------------------------------------- Tue Sep 7 11:04:50 UTC 2021 - Steve Kowalik diff --git a/python-google-api-core.spec b/python-google-api-core.spec index 98f5eed..e29b010 100644 --- a/python-google-api-core.spec +++ b/python-google-api-core.spec @@ -1,7 +1,7 @@ # # spec file for package python-google-api-core # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ %endif %define skip_python2 1 Name: python-google-api-core -Version: 2.0.1 +Version: 2.7.1 Release: 0 Summary: Google API client core library License: Apache-2.0 @@ -37,6 +37,7 @@ BuildRequires: %{python_module google-auth >= 1.25.0} BuildRequires: %{python_module googleapis-common-protos >= 1.6.0} BuildRequires: %{python_module grpcio >= 1.33.2} BuildRequires: %{python_module grpcio-gcp >= 0.2.2} +BuildRequires: %{python_module grpcio-status >= 1.33.2} BuildRequires: %{python_module protobuf >= 3.12.0} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests >= 2.18.0} @@ -55,6 +56,7 @@ BuildRequires: python-rpm-macros Requires: python-google-auth >= 1.25.0 Requires: python-googleapis-common-protos >= 1.6.0 Requires: python-grpcio >= 1.33.2 +Requires: python-grpcio-status >= 1.33.2 Requires: python-protobuf >= 3.12.0 Requires: python-pytz Requires: python-requests >= 2.18.0 From 3d38aed7dc7f88288ccf5e61b59c6561dba843a1dabdf158ecbbfa9d0945a951 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 29 Apr 2022 22:01:15 +0000 Subject: [PATCH 2/2] Accepting request 973994 from home:mcepl:branches:devel:languages:python - Update to 2.7.2: - allow grpc without grpcio-status - remove dependency on pkg_resources - Add 373-KeyError-in-test.patch to allow tests to run (gh#googleapis/python-api-core#372) OBS-URL: https://build.opensuse.org/request/show/973994 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-core?expand=0&rev=38 --- 373-KeyError-in-test.patch | 19 +++++++++++++++++++ google-api-core-2.7.1.tar.gz | 3 --- google-api-core-2.7.2.tar.gz | 3 +++ python-google-api-core.changes | 9 +++++++++ python-google-api-core.spec | 23 ++++++++++++++++------- 5 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 373-KeyError-in-test.patch delete mode 100644 google-api-core-2.7.1.tar.gz create mode 100644 google-api-core-2.7.2.tar.gz diff --git a/373-KeyError-in-test.patch b/373-KeyError-in-test.patch new file mode 100644 index 0000000..730d85b --- /dev/null +++ b/373-KeyError-in-test.patch @@ -0,0 +1,19 @@ +From a8065793e7118c47fc71edc4c02447ef4b665209 Mon Sep 17 00:00:00 2001 +From: Anthonios Partheniou +Date: Fri, 29 Apr 2022 13:28:02 -0400 +Subject: [PATCH] test: fix KeyError in test_rest_streaming.py + +--- + tests/unit/test_rest_streaming.py | 1 + + 1 file changed, 1 insertion(+) + +--- a/tests/unit/test_rest_streaming.py ++++ b/tests/unit/test_rest_streaming.py +@@ -28,6 +28,7 @@ from google.protobuf import duration_pb2 + from google.protobuf import timestamp_pb2 + + ++__protobuf__ = proto.module(package=__name__) + SEED = int(time.time()) + logging.info(f"Starting rest streaming tests with random seed: {SEED}") + random.seed(SEED) diff --git a/google-api-core-2.7.1.tar.gz b/google-api-core-2.7.1.tar.gz deleted file mode 100644 index 144b41b..0000000 --- a/google-api-core-2.7.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0fa577e512f0c8e063386b974718b8614586a798c5894ed34bedf256d9dae24 -size 122056 diff --git a/google-api-core-2.7.2.tar.gz b/google-api-core-2.7.2.tar.gz new file mode 100644 index 0000000..9875c44 --- /dev/null +++ b/google-api-core-2.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65480309a7437f739e4476da037af02a3ec8263f1d1f89f72bbdc8f54fe402d2 +size 121907 diff --git a/python-google-api-core.changes b/python-google-api-core.changes index 541faa4..acd285e 100644 --- a/python-google-api-core.changes +++ b/python-google-api-core.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Apr 25 12:30:45 UTC 2022 - Matej Cepl + +- Update to 2.7.2: + - allow grpc without grpcio-status + - remove dependency on pkg_resources +- Add 373-KeyError-in-test.patch to allow tests to run + (gh#googleapis/python-api-core#372) + ------------------------------------------------------------------- Thu Apr 7 12:20:32 UTC 2022 - John Paul Adrian Glaubitz diff --git a/python-google-api-core.spec b/python-google-api-core.spec index e29b010..b2595b2 100644 --- a/python-google-api-core.spec +++ b/python-google-api-core.spec @@ -27,21 +27,26 @@ %endif %define skip_python2 1 Name: python-google-api-core -Version: 2.7.1 +Version: 2.7.2 Release: 0 Summary: Google API client core library License: Apache-2.0 URL: https://github.com/googleapis/python-api-core Source: https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-%{version}.tar.gz +# PATCH-FIX-UPSTREAM 373-KeyError-in-test.patch gh#googleapis/python-api-core#372 mcepl@suse.com +# fix KeyError in test_rest_streaming.py +Patch0: 373-KeyError-in-test.patch BuildRequires: %{python_module google-auth >= 1.25.0} -BuildRequires: %{python_module googleapis-common-protos >= 1.6.0} +BuildRequires: %{python_module googleapis-common-protos >= 1.53.0} BuildRequires: %{python_module grpcio >= 1.33.2} BuildRequires: %{python_module grpcio-gcp >= 0.2.2} BuildRequires: %{python_module grpcio-status >= 1.33.2} +BuildRequires: %{python_module pip} BuildRequires: %{python_module protobuf >= 3.12.0} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests >= 2.18.0} BuildRequires: %{python_module setuptools >= 40.3.0} +BuildRequires: %{python_module wheel} # START TESTING SECTION %if %{with test} BuildRequires: %{python_module google-api-core >= %{version}} @@ -54,7 +59,7 @@ BuildRequires: %{python_module pytest} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-google-auth >= 1.25.0 -Requires: python-googleapis-common-protos >= 1.6.0 +Requires: python-googleapis-common-protos >= 1.53.0 Requires: python-grpcio >= 1.33.2 Requires: python-grpcio-status >= 1.33.2 Requires: python-protobuf >= 3.12.0 @@ -69,14 +74,14 @@ BuildArch: noarch Core Library for Google Client Libraries. %prep -%setup -q -n google-api-core-%{version} +%autosetup -p1 -n google-api-core-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -85,11 +90,15 @@ Core Library for Google Client Libraries. %pytest %endif +%clean + %if !%{with test} %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/google/api_core +%{python_sitelib}/google_api_core-%{version}*-nspkg.pth +%{python_sitelib}/google_api_core-%{version}*-info %endif %changelog