* [Many APIs] Allow Protobuf 6.x * Remove setup.cfg configuration for creating universal wheels (#13659) - from version 3.20.1 * **deps:** Require grpc-google-iam-v1 >= 0.14.0 - from version 3.20.0 * Add REST Interceptors which support reading metadata * Add support for reading selective GAPIC generation methods from service YAML - from version 3.19.0 * Add support for opt-in debug logging * Fix typing issue with gRPC metadata when key ends in -bin - from version 3.18.0 * Adds Contextual Glossary support for Translation and AdaptiveMt * Disable universe-domain validation (#13246) - from version 3.17.0 * Add support for Python 3.13 (#13210) - from version 3.16.0 * Adds AdaptiveMt HTML/Glossary support * Adds protos for Custom Translation API (AutoML) * Adds protos for Romanization APIs * Adds protos for Transliteration in V3 Advanced translate text * Fixes typos in docs - from version 3.15.5 * Retry and timeout values do not propagate in requests during pagination - from version 3.15.4 * Allow Protobuf 5.x (#12870) - Adjust upstream source name in spec file - Update BuildRequires and Requires from setup.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:google/python-google-cloud-translate?expand=0&rev=6
75 lines
2.6 KiB
RPMSpec
75 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-google-cloud-translate
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-google-cloud-translate
|
|
Version: 3.20.2
|
|
Release: 0
|
|
Summary: Google Cloud Translation API client library
|
|
License: Apache-2.0
|
|
URL: https://github.com/googleapis/google-cloud-python
|
|
Source: https://files.pythonhosted.org/packages/source/g/google_cloud_translate/google_cloud_translate-%{version}.tar.gz
|
|
BuildRequires: %{python_module google-api-core >= 1.34.1}
|
|
BuildRequires: %{python_module google-auth >= 2.14.1}
|
|
BuildRequires: %{python_module google-cloud-core >= 1.4.4}
|
|
BuildRequires: %{python_module grpc-google-iam-v1 >= 0.14.0}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module proto-plus >= 1.22.3}
|
|
BuildRequires: %{python_module protobuf >= 3.20.2}
|
|
BuildRequires: %{python_module wheel}
|
|
# START TESTING SECTION
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest}
|
|
# END TESTING SECTION
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-google-api-core >= 1.34.1
|
|
Requires: python-google-auth >= 2.14.1
|
|
Requires: python-google-cloud-core >= 1.4.4
|
|
Requires: python-grpc-google-iam-v1 >= 0.14.0
|
|
Requires: python-proto-plus >= 1.22.3
|
|
Requires: python-protobuf >= 3.20.2
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
With `Google Cloud Translation`_, you can dynamically translate text between
|
|
thousands of language pairs. The Google Cloud Translation API lets websites
|
|
and programs integrate with Google Cloud Translation programmatically.
|
|
|
|
%prep
|
|
%autosetup -p1 -n google_cloud_translate-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests/unit -k 'not test_extra_headers'
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/google/cloud/translate*
|
|
%{python_sitelib}/google_cloud_translate-%{version}.dist-info
|
|
|
|
%changelog
|