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

- Update to 2.22.0
  * Add transcript normalization + m4a audio format support (8536b20)
  * Support MP3, TranscriptNormalization and SpeakerLabels in STT V1 API (#11967)
  * Clarify alternatives for deprecated fields (8536b20)
  * Deprecate `BatchRecognizeFileResult.transcript` in favor of
    `inline_result.transcript` (8536b20)
  * Deprecate `BatchRecognizeFileResult.uri` in favor of
    `cloud_storage_result.native_format_uri` (8536b20)
- Drop patches for issues fixed upstream
  * python-google-cloud-speech-no-mock.patch
- Skip tests that are currently failing
  * test_list_phrase_set

OBS-URL: https://build.opensuse.org/request/show/1131330
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-speech?expand=0&rev=28
This commit is contained in:
Robert Schweikert 2023-12-06 12:07:39 +00:00 committed by Git OBS Bridge
parent c7b224f58b
commit 34ee132ea6
5 changed files with 23 additions and 9 deletions

View File

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

View File

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

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Dec 6 11:44:40 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.22.0
* Add transcript normalization + m4a audio format support (8536b20)
* Support MP3, TranscriptNormalization and SpeakerLabels in STT V1 API (#11967)
* Clarify alternatives for deprecated fields (8536b20)
* Deprecate `BatchRecognizeFileResult.transcript` in favor of
`inline_result.transcript` (8536b20)
* Deprecate `BatchRecognizeFileResult.uri` in favor of
`cloud_storage_result.native_format_uri` (8536b20)
- Drop patches for issues fixed upstream
* python-google-cloud-speech-no-mock.patch
- Skip tests that are currently failing
* test_list_phrase_set
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 18 10:13:11 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Tue Jul 18 10:13:11 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@ -18,15 +18,13 @@
%{?!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.21.0 Version: 2.22.0
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/googleapis/python-speech 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.34.0} BuildRequires: %{python_module google-api-core >= 1.34.0}
BuildRequires: %{python_module proto-plus >= 1.22.2} BuildRequires: %{python_module proto-plus >= 1.22.2}
BuildRequires: %{python_module protobuf >= 3.19.05} BuildRequires: %{python_module protobuf >= 3.19.05}
@ -47,8 +45,8 @@ Cloud Speech API converts audio to text by applying neural network models.
%prep %prep
%autosetup -p1 -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
%build %build
%python_build %python_build
@ -58,7 +56,7 @@ rm tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest -k "not test_list_phrase_set"
%files %{python_files} %files %{python_files}
%exclude %{_bindir}/*.py %exclude %{_bindir}/*.py