Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-google-api-core for openSUSE:Factory checked in at 2022-10-14 15:43:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-google-api-core (Old) and /work/SRC/openSUSE:Factory/.python-google-api-core.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-api-core" Fri Oct 14 15:43:00 2022 rev:22 rq:1010899 version:2.10.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-google-api-core/python-google-api-core.changes 2022-09-09 18:29:12.617217859 +0200 +++ /work/SRC/openSUSE:Factory/.python-google-api-core.new.2275/python-google-api-core.changes 2022-10-14 15:44:12.600085788 +0200 @@ -1,0 +2,8 @@ +Fri Oct 14 08:14:38 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 2.10.2 + * **deps:** Allow protobuf 3.19.5 (#459) +- from version 2.10.1 + * Improve transcoding error message (#442) + +------------------------------------------------------------------- Old: ---- google-api-core-2.10.0.tar.gz New: ---- google-api-core-2.10.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-google-api-core.spec ++++++ --- /var/tmp/diff_new_pack.fQ3PCf/_old 2022-10-14 15:44:13.192086777 +0200 +++ /var/tmp/diff_new_pack.fQ3PCf/_new 2022-10-14 15:44:13.196086783 +0200 @@ -27,7 +27,7 @@ %endif %define skip_python2 1 Name: python-google-api-core -Version: 2.10.0 +Version: 2.10.2 Release: 0 Summary: Google API client core library License: Apache-2.0 ++++++ google-api-core-2.10.0.tar.gz -> google-api-core-2.10.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/PKG-INFO new/google-api-core-2.10.2/PKG-INFO --- old/google-api-core-2.10.0/PKG-INFO 2022-09-02 03:30:01.598130500 +0200 +++ new/google-api-core-2.10.2/PKG-INFO 2022-10-08 02:45:41.079690000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: google-api-core -Version: 2.10.0 +Version: 2.10.2 Summary: Google API client core library Home-page: https://github.com/googleapis/python-api-core Author: Google LLC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/google/api_core/path_template.py new/google-api-core-2.10.2/google/api_core/path_template.py --- old/google-api-core-2.10.0/google/api_core/path_template.py 2022-09-02 03:27:23.000000000 +0200 +++ new/google-api-core-2.10.2/google/api_core/path_template.py 2022-10-08 02:42:54.000000000 +0200 @@ -272,15 +272,19 @@ ValueError: If the request does not match the given template. """ transcoded_value = message or request_kwargs + bindings = [] for http_option in http_options: request = {} # Assign path uri_template = http_option["uri"] - path_fields = [ - match.group("name") for match in _VARIABLE_RE.finditer(uri_template) + fields = [ + (m.group("name"), m.group("template")) + for m in _VARIABLE_RE.finditer(uri_template) ] - path_args = {field: get_field(transcoded_value, field) for field in path_fields} + bindings.append((uri_template, fields)) + + path_args = {field: get_field(transcoded_value, field) for field, _ in fields} request["uri"] = expand(uri_template, **path_args) if not validate(uri_template, request["uri"]) or not all(path_args.values()): @@ -288,7 +292,7 @@ # Remove fields used in uri path from request leftovers = copy.deepcopy(transcoded_value) - for path_field in path_fields: + for path_field, _ in fields: delete_field(leftovers, path_field) # Assign body and query params @@ -316,8 +320,27 @@ request["method"] = http_option["method"] return request + bindings_description = [ + '\n\tURI: "{}"' + "\n\tRequired request fields:\n\t\t{}".format( + uri, + "\n\t\t".join( + [ + 'field: "{}", pattern: "{}"'.format(n, p if p else "*") + for n, p in fields + ] + ), + ) + for uri, fields in bindings + ] + raise ValueError( - "Request {} does not match any URL path template in available HttpRule's {}".format( - request_kwargs, [opt["uri"] for opt in http_options] + "Invalid request." + "\nSome of the fields of the request message are either not initialized or " + "initialized with an invalid value." + "\nPlease make sure your request matches at least one accepted HTTP binding." + "\nTo match a binding the request message must have all the required fields " + "initialized with values matching their patterns as listed below:{}".format( + "\n".join(bindings_description) ) ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/google/api_core/version.py new/google-api-core-2.10.2/google/api_core/version.py --- old/google-api-core-2.10.0/google/api_core/version.py 2022-09-02 03:27:23.000000000 +0200 +++ new/google-api-core-2.10.2/google/api_core/version.py 2022-10-08 02:42:54.000000000 +0200 @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "2.10.0" +__version__ = "2.10.2" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/google_api_core.egg-info/PKG-INFO new/google-api-core-2.10.2/google_api_core.egg-info/PKG-INFO --- old/google-api-core-2.10.0/google_api_core.egg-info/PKG-INFO 2022-09-02 03:30:01.000000000 +0200 +++ new/google-api-core-2.10.2/google_api_core.egg-info/PKG-INFO 2022-10-08 02:45:41.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: google-api-core -Version: 2.10.0 +Version: 2.10.2 Summary: Google API client core library Home-page: https://github.com/googleapis/python-api-core Author: Google LLC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/google_api_core.egg-info/requires.txt new/google-api-core-2.10.2/google_api_core.egg-info/requires.txt --- old/google-api-core-2.10.0/google_api_core.egg-info/requires.txt 2022-09-02 03:30:01.000000000 +0200 +++ new/google-api-core-2.10.2/google_api_core.egg-info/requires.txt 2022-10-08 02:45:41.000000000 +0200 @@ -1,5 +1,5 @@ googleapis-common-protos<2.0dev,>=1.56.2 -protobuf<5.0.0dev,>=3.20.1 +protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5 google-auth<3.0dev,>=1.25.0 requests<3.0.0dev,>=2.18.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/setup.py new/google-api-core-2.10.2/setup.py --- old/google-api-core-2.10.0/setup.py 2022-09-02 03:27:23.000000000 +0200 +++ new/google-api-core-2.10.2/setup.py 2022-10-08 02:42:54.000000000 +0200 @@ -30,7 +30,7 @@ release_status = "Development Status :: 5 - Production/Stable" dependencies = [ "googleapis-common-protos >= 1.56.2, < 2.0dev", - "protobuf >= 3.20.1, <5.0.0dev", + "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", "google-auth >= 1.25.0, < 3.0dev", "requests >= 2.18.0, < 3.0.0dev", ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-api-core-2.10.0/tests/unit/test_path_template.py new/google-api-core-2.10.2/tests/unit/test_path_template.py --- old/google-api-core-2.10.0/tests/unit/test_path_template.py 2022-09-02 03:27:23.000000000 +0200 +++ new/google-api-core-2.10.2/tests/unit/test_path_template.py 2022-10-08 02:42:54.000000000 +0200 @@ -629,8 +629,9 @@ ) def test_transcode_fails(http_options, message, request_kwargs): http_options, _ = helper_test_transcode(http_options, range(4)) - with pytest.raises(ValueError): + with pytest.raises(ValueError) as exc_info: path_template.transcode(http_options, message, **request_kwargs) + assert str(exc_info.value).count("URI") == len(http_options) def helper_test_transcode(http_options_list, expected_result_list):