Accepting request 1003016 from home:glaubitz:branches:devel:languages:python

- Update to version 3.8.2
  * **samples:** Fixing file saving for local documents translation (#419)
- from version 3.8.1
  * **deps:** allow protobuf < 5.0.0 (#425)
  * **deps:** require proto-plus >= 1.22.0 (ba884c6)
- from version 3.8.0
  * add audience parameter (b665051)
  * **deps:** require google-api-core>=1.32.0,>=2.8.0 (#409)
  * require python 3.7+ (#411)
- Drop patches for issues fixed upstream
  * python-google-cloud-translate-no-mock.patch
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/request/show/1003016
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-translate?expand=0&rev=9
This commit is contained in:
Markéta Machová 2022-09-13 07:04:18 +00:00 committed by Git OBS Bridge
parent cb4b6a7e1d
commit afe3e245a4
5 changed files with 26 additions and 22 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:079301a5d712e8d37baf0be32f06d8e79ad5d1d2c3c16b6701a756b07d80c171
size 112657

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c31296a1143c0d6f780def59d2c3988e6fa84d7b84716e55c3722ee18213050d
size 113133

View File

@ -1,12 +0,0 @@
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):

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Sep 12 16:02:14 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 3.8.2
* **samples:** Fixing file saving for local documents translation (#419)
- from version 3.8.1
* **deps:** allow protobuf < 5.0.0 (#425)
* **deps:** require proto-plus >= 1.22.0 (ba884c6)
- from version 3.8.0
* add audience parameter (b665051)
* **deps:** require google-api-core>=1.32.0,>=2.8.0 (#409)
* require python 3.7+ (#411)
- Drop patches for issues fixed upstream
* python-google-cloud-translate-no-mock.patch
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Thu Jun 9 07:57:58 UTC 2022 - pgajdos@suse.com

View File

@ -19,17 +19,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-google-cloud-translate
Version: 3.7.4
Version: 3.8.2
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-api-core >= 1.32.0}
BuildRequires: %{python_module google-cloud-core >= 1.3.0}
BuildRequires: %{python_module proto-plus >= 1.15.0}
BuildRequires: %{python_module proto-plus >= 1.22.0}
BuildRequires: %{python_module protobuf >= 3.19.0}
BuildRequires: %{python_module setuptools}
# START TESTING SECTION
BuildRequires: %{python_module pytest-asyncio}
@ -37,9 +36,10 @@ BuildRequires: %{python_module pytest}
# END TESTING SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-api-core >= 1.31.5
Requires: python-google-api-core >= 1.32.0
Requires: python-google-cloud-core >= 1.3.0
Requires: python-proto-plus >= 1.15.0
Requires: python-proto-plus >= 1.22.0
Requires: python-protobuf >= 3.19.0
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch