Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-google-cloud-translate for 
openSUSE:Factory checked in at 2022-06-10 15:57:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-translate (Old)
 and      /work/SRC/openSUSE:Factory/.python-google-cloud-translate.new.1548 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-google-cloud-translate"

Fri Jun 10 15:57:36 2022 rev:4 rq:981538 version:3.7.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-google-cloud-translate/python-google-cloud-translate.changes
      2022-04-13 21:07:05.552684275 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-google-cloud-translate.new.1548/python-google-cloud-translate.changes
    2022-06-10 15:57:57.628851579 +0200
@@ -1,0 +2,11 @@
+Thu Jun  9 07:57:58 UTC 2022 - pgaj...@suse.com
+
+- version update to 3.7.4
+  * deps: require protobuf <4.0.0dev (#395) (6747720)
+  * fix changelog header to consistent size (#396) (d4d2825)
+  * fix type in docstring for map fields (3b845d6)
+- added patches
+  fix https://github.com/googleapis/python-translate/issues/403
+  + python-google-cloud-translate-no-mock.patch
+
+-------------------------------------------------------------------

Old:
----
  google-cloud-translate-3.7.2.tar.gz

New:
----
  google-cloud-translate-3.7.4.tar.gz
  python-google-cloud-translate-no-mock.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-google-cloud-translate.spec ++++++
--- /var/tmp/diff_new_pack.XX6xLA/_old  2022-06-10 15:57:58.048852089 +0200
+++ /var/tmp/diff_new_pack.XX6xLA/_new  2022-06-10 15:57:58.056852098 +0200
@@ -19,18 +19,19 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-google-cloud-translate
-Version:        3.7.2
+Version:        3.7.4
 Release:        0
 Summary:        Google Cloud Translation API client library
 License:        Apache-2.0
 URL:            https://github.com/googleapis/python-translate
 Source:         
https://files.pythonhosted.org/packages/source/g/google-cloud-translate/google-cloud-translate-%{version}.tar.gz
+# https://github.com/googleapis/python-translate/issues/403
+Patch0:         python-google-cloud-translate-no-mock.patch
 BuildRequires:  %{python_module google-api-core >= 1.31.5}
 BuildRequires:  %{python_module google-cloud-core >= 1.3.0}
 BuildRequires:  %{python_module proto-plus >= 1.15.0}
 BuildRequires:  %{python_module setuptools}
 # START TESTING SECTION
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module pytest}
 # END TESTING SECTION
@@ -50,7 +51,7 @@
 and programs integrate with Google Cloud Translation programmatically.
 
 %prep
-%setup -q -n google-cloud-translate-%{version}
+%autosetup -p1 -n google-cloud-translate-%{version}
 # add shebangs to installed scripts
 sed -i '1i\#!%{__python3}' scripts/fixup_translate_v3_keywords.py
 sed -i '1i\#!%{__python3}' scripts/fixup_translate_v3beta1_keywords.py

++++++ google-cloud-translate-3.7.2.tar.gz -> 
google-cloud-translate-3.7.4.tar.gz ++++++
++++ 6814 lines of diff (skipped)

++++++ python-google-cloud-translate-no-mock.patch ++++++
diff -upr google-cloud-translate-3.7.4.orig/tests/unit/v2/test__http.py 
google-cloud-translate-3.7.4/tests/unit/v2/test__http.py
--- google-cloud-translate-3.7.4.orig/tests/unit/v2/test__http.py       
2022-06-09 09:12:34.520648611 +0200
+++ google-cloud-translate-3.7.4/tests/unit/v2/test__http.py    2022-06-09 
09:12:34.608649133 +0200
@@ -14,7 +14,7 @@
 
 import unittest
 
-import mock
+from unittest import mock
 
 
 class TestConnection(unittest.TestCase):

Reply via email to