Accepting request 981443 from home:pgajdos:python

- version update to 2.14.1
  ## [2.14.1]
  * **deps:** require protobuf <4.0.0dev 
  * fix changelog header to consistent size 
  * **samples:** resolve library deprecation warnings 
  ## [2.14.0]
  * Add adaptation proto for v1 api 
  * Add documentation for latest models to RecognitionConfig 
  * Update client libraries for v1p1beta1 api 
  * update docstrings to use absolute links 
- do not require python-mock for build
- added patches
  fix https://github.com/googleapis/python-speech/issues/406
  + python-google-cloud-speech-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/981443
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-speech?expand=0&rev=16
This commit is contained in:
Dirk Mueller 2022-06-09 15:17:36 +00:00 committed by Git OBS Bridge
parent 18be7fa247
commit 0403d1b8da
5 changed files with 39 additions and 7 deletions

View File

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

View File

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

View File

@ -0,0 +1,12 @@
diff -upr google-cloud-speech-2.14.1.orig/tests/unit/test_helpers.py google-cloud-speech-2.14.1/tests/unit/test_helpers.py
--- google-cloud-speech-2.14.1.orig/tests/unit/test_helpers.py 2022-06-09 08:17:25.856909700 +0200
+++ google-cloud-speech-2.14.1/tests/unit/test_helpers.py 2022-06-09 08:17:25.892909915 +0200
@@ -15,7 +15,7 @@
from __future__ import absolute_import
from types import GeneratorType
-import mock
+from unittest import mock
import google.auth.credentials
from google.cloud.speech_v1 import SpeechClient

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Jun 9 06:32:16 UTC 2022 - pgajdos@suse.com
- version update to 2.14.1
## [2.14.1]
* **deps:** require protobuf <4.0.0dev
* fix changelog header to consistent size
* **samples:** resolve library deprecation warnings
## [2.14.0]
* Add adaptation proto for v1 api
* Add documentation for latest models to RecognitionConfig
* Update client libraries for v1p1beta1 api
* update docstrings to use absolute links
- do not require python-mock for build
- added patches
fix https://github.com/googleapis/python-speech/issues/406
+ python-google-cloud-speech-no-mock.patch
-------------------------------------------------------------------
Thu Apr 7 13:46:45 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@ -18,16 +18,18 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-cloud-speech
Version: 2.13.1
Version: 2.14.1
Release: 0
Summary: Google Cloud Speech API client library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/GoogleCloudPlatform/google-cloud-python
URL: https://github.com/googleapis/python-speech
Source: https://files.pythonhosted.org/packages/source/g/google-cloud-speech/google-cloud-speech-%{version}.tar.gz
# https://github.com/googleapis/python-speech/issues/406
Patch0: python-google-cloud-speech-no-mock.patch
BuildRequires: %{python_module google-api-core >= 1.31.5}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module proto-plus >= 1.15.0}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@ -41,7 +43,7 @@ BuildArch: noarch
Cloud Speech API converts audio to text by applying neural network models.
%prep
%setup -q -n google-cloud-speech-%{version}
%autosetup -p1 -n google-cloud-speech-%{version}
# remove tests needing credentials to google services
rm tests/system/gapic/v1/test_system_speech_v1.py
rm tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py