Accepting request 981536 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/981536 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-cloud-speech?expand=0&rev=8
This commit is contained in:
commit
80f8a48d5e
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2718480b838cb178dd258343a261219873d40b3bde152d287835ac5ffc1de730
|
|
||||||
size 116199
|
|
3
google-cloud-speech-2.14.1.tar.gz
Normal file
3
google-cloud-speech-2.14.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:226134f1d8dcae1842d1540998bebd85b7d40c100b3d4c96f4869287508826ab
|
||||||
|
size 148879
|
12
python-google-cloud-speech-no-mock.patch
Normal file
12
python-google-cloud-speech-no-mock.patch
Normal 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
|
@ -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>
|
Thu Apr 7 13:46:45 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@ -18,16 +18,18 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-google-cloud-speech
|
Name: python-google-cloud-speech
|
||||||
Version: 2.13.1
|
Version: 2.14.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Google Cloud Speech API client library
|
Summary: Google Cloud Speech API client library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
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
|
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 google-api-core >= 1.31.5}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module proto-plus >= 1.15.0}
|
BuildRequires: %{python_module proto-plus >= 1.15.0}
|
||||||
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -41,7 +43,7 @@ BuildArch: noarch
|
|||||||
Cloud Speech API converts audio to text by applying neural network models.
|
Cloud Speech API converts audio to text by applying neural network models.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n google-cloud-speech-%{version}
|
%autosetup -p1 -n google-cloud-speech-%{version}
|
||||||
# remove tests needing credentials to google services
|
# remove tests needing credentials to google services
|
||||||
rm tests/system/gapic/v1/test_system_speech_v1.py
|
rm tests/system/gapic/v1/test_system_speech_v1.py
|
||||||
rm tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py
|
rm tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user