forked from pool/python-gTTS
Accepting request 1063197 from home:mcepl:branches:devel:languages:python
- Update to 2.3.1:
- Bug fixes:
- test: include missing required *.txt test files in dist
- loosen dependancies for click and requests, removes six
dependancy
- test: missing @pytest.mark.net on net-enabled test
- test: remove mock package test dependancy
Features
- Centralize project metadata and config into a single
pyproject.toml
- Drop support for Python 2.7 (long overdue), Python 3.6
(end-of-life)
- Modernize package config and build/release workflow
- Simplify language generator
- Languages added: zh-CN (Chinese (Simplified)), zh-TW
(Chinese (Traditional))
- Languages removed: cy (Welsh), eo (Esperanto), mk
(Macedonian), ms (Malay), zh-CN (Chinese)
- Remove upstreamed patches:
- denose.patch
- network-tests.patch
OBS-URL: https://build.opensuse.org/request/show/1063197
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=21
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-gTTS
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,29 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-gTTS
|
||||
Version: 2.2.4
|
||||
Version: 2.3.1
|
||||
Release: 0
|
||||
Summary: Python module to create MP3 files from spoken text via the Google TTS API
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pndurette/gTTS
|
||||
Source: https://github.com/pndurette/gTTS/archive/refs/tags/v%{version}.tar.gz#/gTTS-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM demock.patch gh#pndurette/gTTS#343 mcepl@suse.com
|
||||
# remove dependency on the external mock package
|
||||
Patch0: demock.patch
|
||||
# PATCH-FIX-UPSTREAM network-tests.patch gh#pndurette/gTTS#344 mcepl@suse.com
|
||||
# one more test marked as the network requiring
|
||||
Patch1: network-tests.patch
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module beautifulsoup4}
|
||||
BuildRequires: %{python_module click}
|
||||
BuildRequires: %{python_module gTTS-token >= 1.1.3}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 3.9}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module setuptools >= 38.6}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module sphinx-click}
|
||||
BuildRequires: %{python_module sphinx_mdinclude}
|
||||
BuildRequires: %{python_module sphinx_rtd_theme}
|
||||
BuildRequires: %{python_module testfixtures}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-beautifulsoup4
|
||||
@@ -62,10 +60,10 @@ sentences where the speech would naturally pause.
|
||||
%autosetup -p1 -n gTTS-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/gtts-cli
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -80,9 +78,10 @@ sentences where the speech would naturally pause.
|
||||
%python_uninstall_alternative gtts-cli
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst README.md
|
||||
%doc CHANGELOG.md README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/gtts-cli
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/gtts
|
||||
%{python_sitelib}/gTTS-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user