commit python-gTTS for openSUSE:Factory

2020-05-28 Thread root
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2020-05-28 09:16:30

Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and  /work/SRC/openSUSE:Factory/.python-gTTS.new.3606 (New)


Package is "python-gTTS"

Thu May 28 09:16:30 2020 rev:6 rq:809358 version:2.1.1

Changes:

--- /work/SRC/openSUSE:Factory/python-gTTS/python-gTTS.changes  2020-04-07 
10:32:08.330562485 +0200
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new.3606/python-gTTS.changes
2020-05-28 09:16:43.992880745 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:32 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-gTTS.spec ++
--- /var/tmp/diff_new_pack.6dTUus/_old  2020-05-28 09:16:44.600882179 +0200
+++ /var/tmp/diff_new_pack.6dTUus/_new  2020-05-28 09:16:44.604882188 +0200
@@ -43,6 +43,8 @@
 Requires:   python-requests
 Requires:   python-setuptools
 Requires:   python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 %python_subpackages
 
@@ -61,16 +63,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/gtts-cli
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # tests are sadly mostly online
 #%%pytest
 
+%post
+%python_install_alternative gtts-cli
+
+%postun
+%python_uninstall_alternative gtts-cli
+
 %files %{python_files}
 %doc CHANGELOG.rst README.md
 %license LICENSE
-%python3_only %{_bindir}/gtts-cli
+%python_alternative %{_bindir}/gtts-cli
 %{python_sitelib}/*
 
 %changelog




commit python-gTTS for openSUSE:Factory

2020-04-07 Thread root
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2020-04-07 10:30:44

Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and  /work/SRC/openSUSE:Factory/.python-gTTS.new.3248 (New)


Package is "python-gTTS"

Tue Apr  7 10:30:44 2020 rev:5 rq:791751 version:2.1.1

Changes:

--- /work/SRC/openSUSE:Factory/python-gTTS/python-gTTS.changes  2019-09-27 
14:47:05.064977577 +0200
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new.3248/python-gTTS.changes
2020-04-07 10:32:08.330562485 +0200
@@ -1,0 +2,14 @@
+Mon Apr  6 09:24:58 UTC 2020 - Marketa Calabkova 
+
+- update to 2.1.1
+  * Debug mode now uses a copy of locals() to prevent RuntimeError (`#213 
`_)
+  * Added the ability to customize the Google Translate URL hostname.
+This is useful when ``google.com`` might be blocked within a network but
+a local or different Google host (e.g. ``google.cn``) is not
+  * Pre-generated TTS API request URLs can now be obtained instead of
+writing an ``mp3`` file to disk (for example to be used in an
+external program)
+  * New ``--tld`` option to match the new ``gtts`` customizable hostname
+  * Added Python 3.8 support
+
+---

Old:

  gTTS-2.0.4.tar.gz

New:

  gTTS-2.1.1.tar.gz



Other differences:
--
++ python-gTTS.spec ++
--- /var/tmp/diff_new_pack.AYCMHA/_old  2020-04-07 10:32:08.870563188 +0200
+++ /var/tmp/diff_new_pack.AYCMHA/_new  2020-04-07 10:32:08.870563188 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gTTS
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-gTTS
-Version:2.0.4
+Version:2.1.1
 Release:0
 Summary:Python module to create MP3 files from spoken text via the 
Google TTS API
 License:MIT

++ gTTS-2.0.4.tar.gz -> gTTS-2.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.0.4/CHANGELOG.rst new/gTTS-2.1.1/CHANGELOG.rst
--- old/gTTS-2.0.4/CHANGELOG.rst2019-08-30 02:57:17.0 +0200
+++ new/gTTS-2.1.1/CHANGELOG.rst2020-01-26 04:22:29.0 +0100
@@ -9,6 +9,67 @@
 
 .. towncrier release notes start
 
+2.1.1 (2020-01-25)
+--
+
+Bugfixes
+
+
+- Debug mode now uses a copy of locals() to prevent RuntimeError (`#213 
`_)
+
+
+2.1.0 (2020-01-01)
+--
+
+Features
+
+
+- The ``gtts`` module
+
+  - Added the ability to customize the Google Translate URL hostname.
+This is useful when ``google.com`` might be blocked within a network but
+a local or different Google host (e.g. ``google.cn``) is not
+(`#143 `_, `#203 
`_):
+
+- New ``gTTS()`` parameter ``tld`` to specify the top-level
+  domain to use for the Google hostname, i.e 
``https://translate.google.``
+  (default: ``com``).
+- Languages are also now fetched using the same customized hostname.
+
+  - Pre-generated TTS API request URLs can now be obtained instead of
+writing an ``mp3`` file to disk (for example to be used in an
+external program):
+
+- New ``get_urls()`` method returns the list of URLs generated by ``gTTS``,
+  which can be used in lieu of ``write_to_fp()`` or ``save()``.
+
+- The ``gtts-cli`` command-line tool
+
+  - New ``--tld`` option to match the new ``gtts`` customizable hostname 
(`#200 `_, `#207 
`_)
+
+- Other
+
+  - Added Python 3.8 support (`#204 
`_)
+
+
+Bugfixes
+
+
+- Changed default word-for-word pre-processor (``('M.', 'Monsieur')``) which 
would substitute any 'm.' for 'monsieur' (e.g. 'them.' became 'themonsieur') 
(`#197 `_)
+
+
+Improved Documentation
+~~
+
+- Added examples for newer features (`#205 
`_, `#207 
`_)
+
+
+Misc
+
+
+- `#204 `_, `#205 
`_, `#207 
`_
+

commit python-gTTS for openSUSE:Factory

2019-09-27 Thread root
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2019-09-27 14:47:03

Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and  /work/SRC/openSUSE:Factory/.python-gTTS.new.2352 (New)


Package is "python-gTTS"

Fri Sep 27 14:47:03 2019 rev:4 rq:730386 version:2.0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-gTTS/python-gTTS.changes  2019-02-11 
21:28:19.710985272 +0100
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new.2352/python-gTTS.changes
2019-09-27 14:47:05.064977577 +0200
@@ -1,0 +2,7 @@
+Thu Sep 12 11:46:16 UTC 2019 - Tomáš Chvátal 
+
+- Update to 2.0.4:
+  * gTTS is now built as a wheel package (Python 2 & 3) (#181)
+- Rebase patch remove-pip-requirement.patch
+
+---

Old:

  gTTS-2.0.3.tar.gz

New:

  gTTS-2.0.4.tar.gz



Other differences:
--
++ python-gTTS.spec ++
--- /var/tmp/diff_new_pack.7nyYFe/_old  2019-09-27 14:47:05.928975330 +0200
+++ /var/tmp/diff_new_pack.7nyYFe/_new  2019-09-27 14:47:05.948975278 +0200
@@ -18,21 +18,30 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-gTTS
-Version:2.0.3
+Version:2.0.4
 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
+URL:https://github.com/pndurette/gTTS
 Source: 
https://files.pythonhosted.org/packages/source/g/gTTS/gTTS-%{version}.tar.gz
 Patch0: remove-pip-requirement.patch
-BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module beautifulsoup4}
+BuildRequires:  %{python_module click}
+BuildRequires:  %{python_module gTTS-token >= 1.1.3}
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module pytest >= 3.9}
+BuildRequires:  %{python_module requests}
+BuildRequires:  %{python_module setuptools >= 38.6}
+BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module testfixtures}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-beautifulsoup4
 Requires:   python-click
-Requires:   python-gTTS-token
+Requires:   python-gTTS-token >= 1.1.3
 Requires:   python-requests
+Requires:   python-setuptools
 Requires:   python-six
 BuildArch:  noarch
 %python_subpackages
@@ -54,8 +63,11 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+# tests are sadly mostly online
+#%%pytest
+
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc CHANGELOG.rst README.md
 %license LICENSE
 %python3_only %{_bindir}/gtts-cli

++ gTTS-2.0.3.tar.gz -> gTTS-2.0.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.0.3/CHANGELOG.rst new/gTTS-2.0.4/CHANGELOG.rst
--- old/gTTS-2.0.3/CHANGELOG.rst2018-12-15 08:00:34.0 +0100
+++ new/gTTS-2.0.4/CHANGELOG.rst2019-08-30 02:57:17.0 +0200
@@ -9,6 +9,27 @@
 
 .. towncrier release notes start
 
+2.0.4 (2019-08-29)
+--
+
+Features
+
+
+- gTTS is now built as a wheel package (Python 2 & 3) (`#181 
`_)
+
+
+Improved Documentation
+~~
+
+- Fixed bad example in docs (`#163 
`_, `#166 
`_)
+
+
+Misc
+
+
+- `#164 `_, `#171 
`_, `#173 
`_, `#185 
`_
+
+
 2.0.3 (2018-12-15)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.0.3/MANIFEST.in new/gTTS-2.0.4/MANIFEST.in
--- old/gTTS-2.0.3/MANIFEST.in  2018-12-15 08:00:34.0 +0100
+++ new/gTTS-2.0.4/MANIFEST.in  2019-08-30 02:57:17.0 +0200
@@ -1,4 +1,5 @@
 include README.md
 include CHANGELOG.rst
 include CONTRIBUTING.rst
-include LICENSE
\ No newline at end of file
+include LICENSE
+include pytest.ini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.0.3/PKG-INFO new/gTTS-2.0.4/PKG-INFO
--- old/gTTS-2.0.3/PKG-INFO 2018-12-15 08:01:37.0 +0100
+++ new/gTTS-2.0.4/PKG-INFO 2019-08-30 02:57:31.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: gTTS
-Version: 2.0.3
+Version: 2.0.4
 Summary: gTTS (Google Text-to-Speech), a Python library and CLI tool to 
interface with Google Translate 

commit python-gTTS for openSUSE:Factory

2019-02-11 Thread root
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2019-02-11 21:28:11

Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and  /work/SRC/openSUSE:Factory/.python-gTTS.new.28833 (New)


Package is "python-gTTS"

Mon Feb 11 21:28:11 2019 rev:3 rq:673172 version:2.0.3

Changes:

--- /work/SRC/openSUSE:Factory/python-gTTS/python-gTTS.changes  2019-02-04 
14:25:20.581055724 +0100
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new.28833/python-gTTS.changes   
2019-02-11 21:28:19.710985272 +0100
@@ -1,0 +2,6 @@
+Sun Feb 10 17:51:09 UTC 2019 - Antonio Larrosa 
+
+- Change the egg requirement to use the right name, beautifulsoup4,
+  instead of bs4
+
+---



Other differences:
--
++ remove-pip-requirement.patch ++
--- /var/tmp/diff_new_pack.1lp4Lz/_old  2019-02-11 21:28:20.302984953 +0100
+++ /var/tmp/diff_new_pack.1lp4Lz/_new  2019-02-11 21:28:20.306984950 +0100
@@ -2,7 +2,7 @@
 ===
 --- gTTS-2.0.3.orig/setup.cfg
 +++ gTTS-2.0.3/setup.cfg
-@@ -33,8 +33,6 @@ long_description_content_type = text/mar
+@@ -33,13 +33,11 @@ long_description_content_type = text/mar
  python_requires = >= 2.7
  setup_requires = 
setuptools >= 38.6
@@ -11,3 +11,9 @@
  include_package_data = True
  packages = find:
  install_requires = 
+   six
+-  bs4
++  beautifulsoup4
+   click
+   requests
+   gtts_token




commit python-gTTS for openSUSE:Factory

2019-02-04 Thread root
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2019-02-04 14:25:16

Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and  /work/SRC/openSUSE:Factory/.python-gTTS.new.28833 (New)


Package is "python-gTTS"

Mon Feb  4 14:25:16 2019 rev:2 rq:670901 version:2.0.3

Changes:

--- /work/SRC/openSUSE:Factory/python-gTTS/python-gTTS.changes  2018-05-04 
11:30:27.857642859 +0200
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new.28833/python-gTTS.changes   
2019-02-04 14:25:20.581055724 +0100
@@ -1,0 +2,114 @@
+Sat Feb  2 21:52:59 UTC 2019 - Antonio Larrosa 
+
+- Update to 2.0.3:
+  * Added new tokenizer case for ':' preventing cut in the middle of
+a time notation
+
+- Update to 2.0.2:
+  Features
+  * Added Python 3.7 support, modernization of packaging, testing and CI
+  Bugfixes
+  * Fixed language retrieval/validation broken from new Google Translate page
+
+- Update to 2.0.1:
+  Bugfixes
+  * Fixed an UnicodeDecodeError when installing gTTS if system locale was
+not utf-8
+  Improved Documentation
+  * Added Pre-processing and tokenizing > Minimizing section about the API's
+100 characters limit and how larger tokens are handled
+
+- Update to 2.0.0:
+  Features
+  * The gtts module
++ New logger ("gtts") replaces all occurrences of print()
++ Languages list is now obtained automatically (gtts.lang)
++ Added a curated list of language sub-tags that have been observed to
+  provide different dialects or accents (e.g. "en-gb", "fr-ca")
++ New gTTS() parameter lang_check to disable language checking.
++ gTTS() now delegates the text tokenizing to the API request methods (i.e.
+  write_to_fp(), save()), allowing gTTS instances to be modified/reused
++ Rewrote tokenizing and added pre-processing (see below)
++ New gTTS() parameters pre_processor_funcs and tokenizer_func to configure
+  pre-processing and tokenizing (or use a 3rd party tokenizer)
++ Error handling:
+  - Added new exception gTTSError raised on API request errors. It attempts
+to guess what went wrong based on known information and observed
+behaviour
+  - gTTS.write_to_fp() and gTTS.save() also raise gTTSError on gtts_token
+error
+  - gTTS.write_to_fp() raises TypeError when fp is not a file-like object
+or one that doesn't take bytes
+  - gTTS() raises ValueError on unsupported languages (and lang_check is
+True)
+  - More fine-grained error handling throughout (e.g. request failed vs.
+request successful with a bad response)
+  * Tokenizer (and new pre-processors):
++ Rewrote and greatly expanded tokenizer (gtts.tokenizer)
++ Smarter token 'cleaning' that will remove tokens that only contain
+  characters that can't be spoken (i.e. punctuation and whitespace)
++ Decoupled token minimizing from tokenizing, making the latter usable
+  in other contexts
++ New flexible speech-centric text pre-processing
++ New flexible full-featured regex-based tokenizer
+  (gtts.tokenizer.core.Tokenizer)
++ New RegexBuilder, PreProcessorRegex and PreProcessorSub classes to make
+  writing regex-powered text pre-processors and tokenizer cases easier
++ Pre-processors:
+  - Re-form words cut by end-of-line hyphens
+  - Remove periods after a (customizable) list of known abbreviations (e.g.
+"jr", "sr", "dr") that can be spoken the same without a period
+  - Perform speech corrections by doing word-for-word replacements from a
+(customizable) list of tuples
++ Tokenizing:
+  - Keep punctuation that modify the inflection of speech (e.g. "?", "!")
+  - Don't split in the middle of numbers (e.g. "10.5", "20,000,000")
+  - Don't split on "dotted" abbreviations and accronyms (e.g. "U.S.A")
+  - Added Chinese comma (","), ellipsis ("…") to punctuation list to
+tokenize on
+  * The gtts-cli command-line tool
+  - Rewrote cli as first-class citizen module (gtts.cli), powered by Click
+  - Windows support using setuptool's entry_points
+  - Better support for Unicode I/O in Python 2
+  - All arguments are now pre-validated
+  - New --nocheck flag to skip language pre-checking
+  - New --all flag to list all available languages
+  - Either the --file option or the  argument can be set to "-" to
+read from stdin
+  - The --debug flag uses logging and doesn't pollute stdout anymore
+  Bugfixes
+  *  _minimize(): Fixed an infinite recursion loop that would occur when a
+ token started with the miminizing delimiter (i.e. a space)
+  *  _minimize(): Handle the case where a token of more than 100 characters
+ did not contain a space (e.g. in Chinese).
+  *  Fixed an issue that fused multiline 

commit python-gTTS for openSUSE:Factory

2018-05-04 Thread root
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2018-05-04 11:30:26

Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and  /work/SRC/openSUSE:Factory/.python-gTTS.new (New)


Package is "python-gTTS"

Fri May  4 11:30:26 2018 rev:1 rq:603637 version:1.2.2

Changes:

New Changes file:

--- /dev/null   2018-04-25 19:14:53.472341877 +0200
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new/python-gTTS.changes 
2018-05-04 11:30:27.857642859 +0200
@@ -0,0 +1,14 @@
+---
+Thu May  3 09:36:21 UTC 2018 - alarr...@suse.com
+
+- Use %license for the LICENSE file 
+
+---
+Sun Mar  4 13:08:06 UTC 2018 - jeng...@inai.de
+
+- Focus description on gTTS.
+
+---
+Mon Sep  4 16:53:35 UTC 2017 - alarr...@suse.com
+
+- Initial release of python-gTTS 1.2.2

New:

  gTTS-1.2.2.tar.gz
  python-gTTS.changes
  python-gTTS.spec



Other differences:
--
++ python-gTTS.spec ++
#
# spec file for package python-gTTS
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:   python-gTTS
Version:1.2.2
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://files.pythonhosted.org/packages/source/g/gTTS/gTTS-%{version}.tar.gz
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:   python-gTTS-token
Requires:   python-requests
Requires:   python-six
BuildArch:  noarch
%python_subpackages

%description
gTTS is a Python interface for Google's Text to Speech API. An MP3
file may be created with the gTTS module or the gtts-cli command line
utility. It allows unlimited lengths to be spoken by tokenizing long
sentences where the speech would naturally pause.

%prep
%setup -q -n gTTS-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG.md README.md
%license LICENSE
%python3_only %{_bindir}/gtts-cli
%python3_only %{_bindir}/gtts-cli.py
%{python_sitelib}/*

%changelog