From e72f66cf188a6a4037b3c220a46e4a816cbac92e56183e6a159b7abf30c27221 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 20 Nov 2023 21:04:11 +0000 Subject: [PATCH] - Update to 2.4.0: - Add Python 3.12 support - Remove Python 3.7 support (end-of-life) - Add process-markdown.patch replaces sphinxcontrib-mdinclude with processed Changelog in the restructured text format. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gTTS?expand=0&rev=26 --- gTTS-2.3.2.tar.gz | 3 - gTTS-2.4.0.tar.gz | 3 + process-markdown.patch | 982 +++++++++++++++++++++++++++++++++++++++++ python-gTTS.changes | 9 + python-gTTS.spec | 6 +- 5 files changed, 998 insertions(+), 5 deletions(-) delete mode 100644 gTTS-2.3.2.tar.gz create mode 100644 gTTS-2.4.0.tar.gz create mode 100644 process-markdown.patch diff --git a/gTTS-2.3.2.tar.gz b/gTTS-2.3.2.tar.gz deleted file mode 100644 index c94d855..0000000 --- a/gTTS-2.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90dbdd49aadac924176e8e8337cfd50156dd2e10e7f4ee7ef59f7c6089a6b6c3 -size 40344 diff --git a/gTTS-2.4.0.tar.gz b/gTTS-2.4.0.tar.gz new file mode 100644 index 0000000..1dbf76c --- /dev/null +++ b/gTTS-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a41eb4bc1fa91174159f65ba9ba2225a7733bf16eb3c8c53aef9b225ccffa235 +size 40337 diff --git a/process-markdown.patch b/process-markdown.patch new file mode 100644 index 0000000..35670ea --- /dev/null +++ b/process-markdown.patch @@ -0,0 +1,982 @@ +--- + CHANGELOG.rst | 947 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + docs/changelog.rst | 2 + docs/conf.py | 1 + pyproject.toml | 1 + 4 files changed, 948 insertions(+), 3 deletions(-) + +--- /dev/null ++++ b/CHANGELOG.rst +@@ -0,0 +1,947 @@ ++Changelog ++========= ++ ++`2.4.0`_ (2023-10-03) ++--------------------- ++ ++Features ++~~~~~~~~ ++ ++- Add Python 3.12 support (`75294b2`_) ++- Remove Python 3.7 support (end-of-life) (`75294b2`_) ++ ++.. _section-1: ++ ++`2.3.2`_ (2023-04-29) ++--------------------- ++ ++Bug Fixes ++~~~~~~~~~ ++ ++- Add new error helper for when using a custom (non-``.com``) TLD ++ results in a 404 (`5a860ed`_) ++- **cli:** Add deprecated language fallback support to CLI (`5a860ed`_) ++ ++Documentation ++~~~~~~~~~~~~~ ++ ++- **cli:** Fix older invalid example (`5a860ed`_) ++ ++.. _section-2: ++ ++`2.3.1`_ (2023-01-16) ++--------------------- ++ ++.. _bug-fixes-1: ++ ++Bug Fixes ++~~~~~~~~~ ++ ++- **test:** include missing required ``*.txt`` test files in dist ++ (`#395`_) (`63f10ff`_) ++- loosen dependancies for ``click`` and ``requests``, removes ``six`` ++ dependancy (`#394`_) (`a4ce0c9`_) ++- **test:** missing ``@pytest.mark.net`` on net-enabled test (`#391`_) ++ (`3667f06`_) ++- **test:** remove ``mock`` package test dependancy (`#390`_) ++ (`9b54fc1`_) ++ ++.. _section-3: ++ ++`2.3.0`_ (2022-11-21) ++--------------------- ++ ++.. _features-1: ++ ++Features ++~~~~~~~~ ++ ++- centralizes project metadata and config into a single ++ ``pyproject.toml`` (`25d3c1c`_) ++- drops support for Python 2.7 (long overdue), Python 3.6 (end-of-life) ++ (`25d3c1c`_) ++- modernize package config and build/release workflow (`25d3c1c`_) ++- Simplify language generator (`5dbdf10`_) ++ ++.. _bug-fixes-2: ++ ++Bug Fixes ++~~~~~~~~~ ++ ++- Languages added: ``zh-CN`` (Chinese (Simplified)), ``zh-TW`` (Chinese ++ (Traditional)) (`5dbdf10`_) ++- Languages removed: ``cy`` (Welsh), ``eo`` (Esperanto), ``mk`` ++ (Macedonian), ``ms`` (Malay), ``zh-CN`` (Chinese) (`5dbdf10`_) ++ ++.. _section-4: ++ ++2.2.4 (2022-03-14) ++------------------ ++ ++.. _features-2: ++ ++Features ++~~~~~~~~ ++ ++- Added Malay language support (`#316`_) ++- Added Hebrew language support (`#324`_) ++- Added new ``gTTS.stream()`` method to stream bytes (`#319`_) ++ ++Misc ++~~~~ ++ ++- `#334`_ ++ ++.. _section-5: ++ ++2.2.3 (2021-06-17) ++------------------ ++ ++.. _features-3: ++ ++Features ++~~~~~~~~ ++ ++- Added Bulgarian language support (`#302`_) ++ ++.. _section-6: ++ ++2.2.2 (2021-02-03) ++------------------ ++ ++.. _features-4: ++ ++Features ++~~~~~~~~ ++ ++- Adds a language fallback feature for deprecated languages to maintain ++ compatiblity (e.g. ``en-us`` becomes ``en``). Fallback can be ++ disabled with ``lang_check=False`` or ``--nocheck`` for the cli ++ (`#267`_) ++ ++Bugfixes ++~~~~~~~~ ++ ++- Fix Python 2.7 compatiblity (!). Python 2 is long gone, but the cut ++ wasn't clearly communicated for gTTS, so it was restored. Python 2 ++ support will be completely removed in the next major release. ++ (`#255`_) ++- Language code case sensitivity is maintained throughout (`#267`_) ++ ++Deprecations and Removals ++~~~~~~~~~~~~~~~~~~~~~~~~~ ++ ++- The following list of 'hyphenated' language codes no longer work and ++ have been removed: ``en-us``, ``en-ca``, ``en-uk``, ``en-gb``, ++ ``en-au``, ``en-gh``, ``en-in``, ``en-ie``, ``en-nz``, ``en-ng``, ++ ``en-ph``, ``en-za``, ``en-tz``, ``fr-ca``, ``fr-fr``, ``pt-br``, ++ ``pt-pt``, ``es-es``, ``es-us``, ``zh-cn``, ``zh-tw`` (`#267`_) ++- Removed the ``gtts.get_url()`` method (outdated since ``2.1.0``) ++ (`#270`_) ++ ++.. _section-7: ++ ++2.2.1 (2020-11-15) ++------------------ ++ ++.. _bugfixes-1: ++ ++Bugfixes ++~~~~~~~~ ++ ++- ``_package_rpc()`` was erroneously packaging the entire text instead ++ of tokenized part (`#252`_) ++ ++Improved Documentation ++~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Removes reference to automatic retrieval of languages (`#250`_) ++ ++.. _misc-1: ++ ++Misc ++~~~~ ++ ++- `#251`_ ++ ++.. _section-8: ++ ++2.2.0 (2020-11-14) ++------------------ ++ ++.. _features-5: ++ ++Features ++~~~~~~~~ ++ ++- Switch to the newer Google TTS API (thanks to\ `@Boudewijn26!`_). See ++ `his great writeup`_ for more on the methodology and why this was ++ necessary. (`#226`_, `#232`_, `#236`_, `#241`_) ++ ++.. _deprecations-and-removals-1: ++ ++Deprecations and Removals ++~~~~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Removed automatic language download from the main code, which has ++ become too unreliable & slow. Languages will still be fetched but a ++ pre-generated list will be shipped with ``gTTS``. (`#233`_, `#241`_, ++ `#242`_, `#243`_) ++- Because languages are now pre-generated, removed custom TLD support ++ for language URL (which allowed to get language **names** in other ++ than English) (`#245`_) ++ ++.. _misc-2: ++ ++Misc ++~~~~ ++ ++- `#245`_ ++ ++.. _section-9: ++ ++2.1.2 (2020-11-10) ++------------------ ++ ++.. _features-6: ++ ++Features ++~~~~~~~~ ++ ++- Update ``gTTS-token`` to ``1.1.4`` (`#238`_) ++ ++.. _bugfixes-2: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Fixed an issue where some tokens could be empty after minimization ++ (`#229`_, `#239`_) ++ ++.. _improved-documentation-1: ++ ++Improved Documentation ++~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Grammar, spelling and example fixes (`#227`_) ++ ++.. _misc-3: ++ ++Misc ++~~~~ ++ ++- `#218`_, `#230`_, `#231`_, `#239`_ ++ ++.. _section-10: ++ ++2.1.1 (2020-01-25) ++------------------ ++ ++.. _bugfixes-3: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Debug mode now uses a copy of locals() to prevent RuntimeError ++ (`#213`_) ++ ++.. _section-11: ++ ++2.1.0 (2020-01-01) ++------------------ ++ ++.. _features-7: ++ ++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-4: ++ ++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-2: ++ ++Improved Documentation ++~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Added examples for newer features (`#205`_, `#207`_) ++ ++.. _misc-4: ++ ++Misc ++~~~~ ++ ++- `#204`_, `#205`_, `#207`_ ++ ++.. _section-12: ++ ++2.0.4 (2019-08-29) ++------------------ ++ ++.. _features-8: ++ ++Features ++~~~~~~~~ ++ ++- gTTS is now built as a wheel package (Python 2 & 3) (`#181`_) ++ ++.. _improved-documentation-3: ++ ++Improved Documentation ++~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Fixed bad example in docs (`#163`_, `#166`_) ++ ++.. _misc-5: ++ ++Misc ++~~~~ ++ ++- `#164`_, `#171`_, `#173`_, `#185`_ ++ ++.. _section-13: ++ ++2.0.3 (2018-12-15) ++------------------ ++ ++.. _features-9: ++ ++Features ++~~~~~~~~ ++ ++- Added new tokenizer case for ':' preventing cut in the middle of a ++ time notation (`#135`_) ++ ++.. _misc-6: ++ ++Misc ++~~~~ ++ ++- `#159`_ ++ ++.. _section-14: ++ ++2.0.2 (2018-12-09) ++------------------ ++ ++.. _features-10: ++ ++Features ++~~~~~~~~ ++ ++- Added Python 3.7 support, modernization of packaging, testing and CI ++ (`#126`_) ++ ++.. _bugfixes-5: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Fixed language retrieval/validation broken from new Google Translate ++ page (`#156`_) ++ ++.. _section-15: ++ ++2.0.1 (2018-06-20) ++------------------ ++ ++.. _bugfixes-6: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Fixed an UnicodeDecodeError when installing gTTS if system locale was ++ not utf-8 (`#120`_) ++ ++.. _improved-documentation-4: ++ ++Improved Documentation ++~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Added *Pre-processing and tokenizing > Minimizing* section about the ++ API's 100 characters limit and how larger tokens are handled ++ (`#121`_) ++ ++.. _misc-7: ++ ++Misc ++~~~~ ++ ++- `#122`_ ++ ++.. _section-16: ++ ++2.0.0 (2018-04-30) ++------------------ ++ ++(`#108`_) ++ ++.. _features-11: ++ ++Features ++~~~~~~~~ ++ ++- The ``gtts`` module ++ ++ - New logger ("gtts") replaces all occurrences of ``print()`` ++ - Languages list is now obtained automatically (``gtts.lang``) ++ (`#91`_, `#94`_, `#106`_) ++ - 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 (`#60`_, `#106`_) ++ - ``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") (`#101`_) ++ - Don't split on "dotted" abbreviations and accronyms (e.g. ++ "U.S.A") ++ - Added Chinese comma (","), ellipsis ("…") to punctuation list ++ to tokenize on (`#86`_) ++ ++- 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-7: ++ ++Bugfixes ++~~~~~~~~ ++ ++- ``_minimize()``: Fixed an infinite recursion loop that would occur ++ when a token started with the miminizing delimiter (i.e. a space) ++ (`#86`_) ++- ``_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 text together if the total number ++ of characters was less than 100 ++- Fixed ``gtts-cli`` Unicode errors in Python 2.7 (famous last words) ++ (`#78`_, `#93`_, `#96`_) ++ ++.. _deprecations-and-removals-2: ++ ++Deprecations and Removals ++~~~~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Dropped Python 3.3 support ++- Removed ``debug`` parameter of ``gTTS`` (in favour of logger) ++- ``gtts-cli``: Changed long option name of ``-o`` to ``--output`` ++ instead of ``--destination`` ++- ``gTTS()`` will raise a ``ValueError`` rather than an ++ ``AssertionError`` on unsupported language ++ ++.. _improved-documentation-5: ++ ++Improved Documentation ++~~~~~~~~~~~~~~~~~~~~~~ ++ ++- Rewrote all documentation files as reStructuredText ++- Comprehensive documentation writen for `Sphinx`_, published to ++ http://gtts.readthedocs.io ++- Changelog built with `towncrier`_ ++ ++.. _misc-8: ++ ++Misc ++~~~~ ++ ++- Major test re-work ++- Language tests can read a ``TEST_LANGS`` enviromment variable so not ++ all language tests are run every time. ++- Added `AppVeyor`_ CI for Windows ++- `PEP 8`_ compliance ++ ++.. _section-17: ++ ++1.2.2 (2017-08-15) ++------------------ ++ ++.. _misc-9: ++ ++Misc ++~~~~ ++ ++- Update LICENCE, add to manifest (`#77`_) ++ ++.. _section-18: ++ ++1.2.1 (2017-08-02) ++------------------ ++ ++.. _features-12: ++ ++Features ++~~~~~~~~ ++ ++- Add Unicode punctuation to the tokenizer (such as for Chinese and ++ Japanese) (`#75`_) ++ ++.. _bugfixes-8: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Fix > 100 characters non-ASCII split, ``unicode()`` for Python 2 ++ (`#71`_, `#73`_, `#75`_) ++ ++.. _section-19: ++ ++1.2.0 (2017-04-15) ++------------------ ++ ++.. _features-13: ++ ++Features ++~~~~~~~~ ++ ++- Option for slower read speed (``slow=True`` for ``gTTS()``, ++ ``--slow`` for ``gtts-cli``) (`#40`_, `#41`_, `#64`_, `#67`_) ++- System proxy settings are passed transparently to all http requests ++ (`#45`_, `#68`_) ++- Silence SSL warnings from urllib3 (`#69`_) ++ ++.. _bugfixes-9: ++ ++Bugfixes ++~~~~~~~~ ++ ++- The text to read is now cut in proper chunks in Python 2 unicode. ++ This broke reading for many languages such as Russian. ++- Disabled SSL verify on http requests to accommodate certain firewalls ++ and proxies. ++- Better Python 2/3 support in general (`#9`_, `#48`_, `#68`_) ++ ++.. _deprecations-and-removals-3: ++ ++Deprecations and Removals ++~~~~~~~~~~~~~~~~~~~~~~~~~ ++ ++- 'pt-br' : 'Portuguese (Brazil)' (it was the same as 'pt' and not ++ Brazilian) (`#69`_) ++ ++.. _section-20: ++ ++1.1.8 (2017-01-15) ++------------------ ++ ++.. _features-14: ++ ++Features ++~~~~~~~~ ++ ++- Added ``stdin`` support via the '-' ``text`` argument to ``gtts-cli`` ++ (`#56`_) ++ ++.. _section-21: ++ ++1.1.7 (2016-12-14) ++------------------ ++ ++.. _features-15: ++ ++Features ++~~~~~~~~ ++ ++- Added utf-8 support to ``gtts-cli`` (`#52`_) ++ ++.. _section-22: ++ ++1.1.6 (2016-07-20) ++------------------ ++ ++.. _features-16: ++ ++Features ++~~~~~~~~ ++ ++- Added 'bn' : 'Bengali' (`#39`_, `#44`_) ++ ++.. _deprecations-and-removals-4: ++ ++Deprecations and Removals ++~~~~~~~~~~~~~~~~~~~~~~~~~ ++ ++- 'ht' : 'Haitian Creole' (removed by Google) (`#43`_) ++ ++.. _section-23: ++ ++1.1.5 (2016-05-13) ++------------------ ++ ++.. _bugfixes-10: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Fixed HTTP 403s by updating the client argument to reflect new API ++ usage (`#32`_, `#33`_) ++ ++.. _section-24: ++ ++1.1.4 (2016-02-22) ++------------------ ++ ++.. _features-17: ++ ++Features ++~~~~~~~~ ++ ++- Spun-off token calculation to `gTTS-Token`_ (`#23`_, `#29`_) ++ ++.. _section-25: ++ ++1.1.3 (2016-01-24) ++------------------ ++ ++.. _bugfixes-11: ++ ++Bugfixes ++~~~~~~~~ ++ ++- ``gtts-cli`` works with Python 3 (`#20`_) ++- Better support for non-ASCII characters (`#21`_, `#22`_) ++ ++.. _misc-10: ++ ++Misc ++~~~~ ++ ++- Moved out gTTS token to its own module (`#19`_) ++ ++.. _section-26: ++ ++1.1.2 (2016-01-13) ++------------------ ++ ++.. _features-18: ++ ++Features ++~~~~~~~~ ++ ++- Added gTTS token (tk url parameter) calculation (`#14`_, `#15`_, ++ `#17`_) ++ ++.. _section-27: ++ ++1.0.7 (2015-10-07) ++------------------ ++ ++.. _features-19: ++ ++Features ++~~~~~~~~ ++ ++- Added ``stdout`` support to ``gtts-cli``, text now an argument rather ++ than an option (`#10`_) ++ ++.. _section-28: ++ ++1.0.6 (2015-07-30) ++------------------ ++ ++.. _features-20: ++ ++Features ++~~~~~~~~ ++ ++- Raise an exception on bad HTTP response (4xx or 5xx) (`#8`_) ++ ++.. _bugfixes-12: ++ ++Bugfixes ++~~~~~~~~ ++ ++- Added ``client=t`` parameter for the api HTTP request (`#8`_) ++ ++.. _section-29: ++ ++1.0.5 (2015-07-15) ++------------------ ++ ++.. _features-21: ++ ++Features ++~~~~~~~~ ++ ++- ``write_to_fp()`` to write to a file-like object (`#6`_) ++ ++.. _section-30: ++ ++1.0.4 (2015-05-11) ++------------------ ++ ++.. _features-22: ++ ++Features ++~~~~~~~~ ++ ++- Added Languages: ``zh-yue`` : ``Chinese (Cantonese)``, ``en-uk`` : ++ ``English (United Kingdom)``, ``pt-br``: ``Portuguese (Brazil)``, ++ ``es-es``: ``Spanish (Spain)``, ``es-us`` : ++ ``Spanish (United StateS)``, ``zh-cn``: ++ ``Chinese (Mandarin/China)``, ``zh-tw``: ++ ``Chinese (Mandarin/Taiwan)`` (`#4`_) ++ ++.. _bugfixes-13: ++ ++Bugfixes ++~~~~~~~~ ++ ++- ``gtts-cli`` print version and pretty printed available languages, ++ language codes are now case insensitive (`#4`_) ++ ++.. _section-31: ++ ++1.0.3 (2014-11-21) ++------------------ ++ ++.. _features-23: ++ ++Features ++~~~~~~~~ ++ ++- Added Languages: 'en-us' : 'English (United States)', 'en-au' : ++ 'English (Australia)' (`#3`_) ++ ++.. _section-32: ++ ++1.0.2 (2014-05-15) ++------------------ ++ ++.. _features-24: ++ ++Features ++~~~~~~~~ ++ ++- Python 3 support ++ ++.. _section-33: ++ ++1.0.1 (2014-05-15) ++------------------ ++ ++.. _misc-11: ++ ++Misc ++~~~~ ++ ++- SemVer versioning, CI changes ++ ++.. _section-34: ++ ++1.0 (2014-05-08) ++---------------- ++ ++.. _features-25: ++ ++Features ++~~~~~~~~ ++ ++- Initial release ++ ++.. _2.4.0: https://github.com/pndurette/gTTS/compare/v2.3.2...v2.4.0 ++.. _75294b2: https://github.com/pndurette/gTTS/commit/75294b227f5c428436215abaf6cddc9f3d10f4de ++.. _2.3.2: https://github.com/pndurette/gTTS/compare/v2.3.1...v2.3.2 ++.. _5a860ed: https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd ++.. _2.3.1: https://github.com/pndurette/gTTS/compare/v2.3.0...v2.3.1 ++.. _#395: https://github.com/pndurette/gTTS/issues/395 ++.. _63f10ff: https://github.com/pndurette/gTTS/commit/63f10ff6aec877103c3459fc6d3c261d469b6770 ++.. _#394: https://github.com/pndurette/gTTS/issues/394 ++.. _a4ce0c9: https://github.com/pndurette/gTTS/commit/a4ce0c9a26778c079fd49c7e2d89ab03bbc22cc3 ++.. _#391: https://github.com/pndurette/gTTS/issues/391 ++.. _3667f06: https://github.com/pndurette/gTTS/commit/3667f06d16152961df2ff8067384f11be9b327c0 ++.. _#390: https://github.com/pndurette/gTTS/issues/390 ++.. _9b54fc1: https://github.com/pndurette/gTTS/commit/9b54fc12b7839d3ab3ee0e948df45dfd840061c5 ++.. _2.3.0: https://github.com/pndurette/gTTS/compare/v2.2.4...v2.3.0 ++.. _25d3c1c: https://github.com/pndurette/gTTS/commit/25d3c1c9ee16da81d1b766b9ee6649831a8a1719 ++.. _5dbdf10: https://github.com/pndurette/gTTS/commit/5dbdf105b9ca4639577d8904001581434741fe34 ++.. _#316: https://github.com/pndurette/gTTS/issues/316 ++.. _#324: https://github.com/pndurette/gTTS/issues/324 ++.. _#319: https://github.com/pndurette/gTTS/issues/319 ++.. _#334: https://github.com/pndurette/gTTS/issues/334 ++.. _#302: https://github.com/pndurette/gTTS/issues/302 ++.. _#267: https://github.com/pndurette/gTTS/issues/267 ++.. _#255: https://github.com/pndurette/gTTS/issues/255 ++.. _#270: https://github.com/pndurette/gTTS/issues/270 ++.. _#252: https://github.com/pndurette/gTTS/issues/252 ++.. _#250: https://github.com/pndurette/gTTS/issues/250 ++.. _#251: https://github.com/pndurette/gTTS/issues/251 ++.. _@Boudewijn26!: https://github.com/pndurette/gTTS/pull/244 ++.. _his great writeup: https://github.com/Boudewijn26/gTTS-token/blob/master/docs/november-2020-translate-changes.md ++.. _#226: https://github.com/pndurette/gTTS/issues/226 ++.. _#232: https://github.com/pndurette/gTTS/issues/232 ++.. _#236: https://github.com/pndurette/gTTS/issues/236 ++.. _#241: https://github.com/pndurette/gTTS/issues/241 ++.. _#233: https://github.com/pndurette/gTTS/issues/233 ++.. _#242: https://github.com/pndurette/gTTS/issues/242 ++.. _#243: https://github.com/pndurette/gTTS/issues/243 ++.. _#245: https://github.com/pndurette/gTTS/issues/245 ++.. _#238: https://github.com/pndurette/gTTS/issues/238 ++.. _#229: https://github.com/pndurette/gTTS/issues/229 ++.. _#239: https://github.com/pndurette/gTTS/issues/239 ++.. _#227: https://github.com/pndurette/gTTS/issues/227 ++.. _#218: https://github.com/pndurette/gTTS/issues/218 ++.. _#230: https://github.com/pndurette/gTTS/issues/230 ++.. _#231: https://github.com/pndurette/gTTS/issues/231 ++.. _#213: https://github.com/pndurette/gTTS/issues/213 ++.. _#143: https://github.com/pndurette/gTTS/issues/143 ++.. _#203: https://github.com/pndurette/gTTS/issues/203 ++.. _#200: https://github.com/pndurette/gTTS/issues/200 ++.. _#207: https://github.com/pndurette/gTTS/issues/207 ++.. _#204: https://github.com/pndurette/gTTS/issues/204 ++.. _#197: https://github.com/pndurette/gTTS/issues/197 ++.. _#205: https://github.com/pndurette/gTTS/issues/205 ++.. _#181: https://github.com/pndurette/gTTS/issues/181 ++.. _#163: https://github.com/pndurette/gTTS/issues/163 ++.. _#166: https://github.com/pndurette/gTTS/issues/166 ++.. _#164: https://github.com/pndurette/gTTS/issues/164 ++.. _#171: https://github.com/pndurette/gTTS/issues/171 ++.. _#173: https://github.com/pndurette/gTTS/issues/173 ++.. _#185: https://github.com/pndurette/gTTS/issues/185 ++.. _#135: https://github.com/pndurette/gTTS/issues/135 ++.. _#159: https://github.com/pndurette/gTTS/issues/159 ++.. _#126: https://github.com/pndurette/gTTS/issues/126 ++.. _#156: https://github.com/pndurette/gTTS/issues/156 ++.. _#120: https://github.com/pndurette/gTTS/issues/120 ++.. _#121: https://github.com/pndurette/gTTS/issues/121 ++.. _#122: https://github.com/pndurette/gTTS/issues/122 ++.. _#108: https://github.com/pndurette/gTTS/issues/108 ++.. _#91: https://github.com/pndurette/gTTS/issues/91 ++.. _#94: https://github.com/pndurette/gTTS/issues/94 ++.. _#106: https://github.com/pndurette/gTTS/issues/106 ++.. _#60: https://github.com/pndurette/gTTS/issues/60 ++.. _#101: https://github.com/pndurette/gTTS/issues/101 ++.. _#86: https://github.com/pndurette/gTTS/issues/86 ++.. _Click: http://click.pocoo.org ++.. _#78: https://github.com/pndurette/gTTS/issues/78 ++.. _#93: https://github.com/pndurette/gTTS/issues/93 ++.. _#96: https://github.com/pndurette/gTTS/issues/96 ++.. _Sphinx: http://www.sphinx-doc.org ++.. _towncrier: https://github.com/hawkowl/towncrier ++.. _AppVeyor: https://www.appveyor.com ++.. _PEP 8: https://www.python.org/dev/peps/pep-0008/ ++.. _#77: https://github.com/pndurette/gTTS/issues/77 ++.. _#75: https://github.com/pndurette/gTTS/issues/75 ++.. _#71: https://github.com/pndurette/gTTS/issues/71 ++.. _#73: https://github.com/pndurette/gTTS/issues/73 ++.. _#40: https://github.com/pndurette/gTTS/issues/40 ++.. _#41: https://github.com/pndurette/gTTS/issues/41 ++.. _#64: https://github.com/pndurette/gTTS/issues/64 ++.. _#67: https://github.com/pndurette/gTTS/issues/67 ++.. _#45: https://github.com/pndurette/gTTS/issues/45 ++.. _#68: https://github.com/pndurette/gTTS/issues/68 ++.. _#69: https://github.com/pndurette/gTTS/issues/69 ++.. _#9: https://github.com/pndurette/gTTS/issues/9 ++.. _#48: https://github.com/pndurette/gTTS/issues/48 ++.. _#56: https://github.com/pndurette/gTTS/issues/56 ++.. _#52: https://github.com/pndurette/gTTS/issues/52 ++.. _#39: https://github.com/pndurette/gTTS/issues/39 ++.. _#44: https://github.com/pndurette/gTTS/issues/44 ++.. _#43: https://github.com/pndurette/gTTS/issues/43 ++.. _#32: https://github.com/pndurette/gTTS/issues/32 ++.. _#33: https://github.com/pndurette/gTTS/issues/33 ++.. _gTTS-Token: https://github.com/Boudewijn26/gTTS-token ++.. _#23: https://github.com/pndurette/gTTS/issues/23 ++.. _#29: https://github.com/pndurette/gTTS/issues/29 ++.. _#20: https://github.com/pndurette/gTTS/issues/20 ++.. _#21: https://github.com/pndurette/gTTS/issues/21 ++.. _#22: https://github.com/pndurette/gTTS/issues/22 ++.. _#19: https://github.com/pndurette/gTTS/issues/19 ++.. _#14: https://github.com/pndurette/gTTS/issues/14 ++.. _#15: https://github.com/pndurette/gTTS/issues/15 ++.. _#17: https://github.com/pndurette/gTTS/issues/17 ++.. _#10: https://github.com/pndurette/gTTS/issues/10 ++.. _#8: https://github.com/pndurette/gTTS/issues/8 ++.. _#6: https://github.com/pndurette/gTTS/issues/6 ++.. _#4: https://github.com/pndurette/gTTS/issues/4 ++.. _#3: https://github.com/pndurette/gTTS/issues/3 +--- a/docs/changelog.rst ++++ b/docs/changelog.rst +@@ -1 +1 @@ +-.. mdinclude:: ../CHANGELOG.md ++.. include:: ../CHANGELOG.rst +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -43,7 +43,6 @@ extensions = [ + 'sphinx.ext.viewcode', + 'sphinx_click.ext', + 'sphinx.ext.napoleon', +- 'sphinx_mdinclude', + ] + + # Add any paths that contain templates here, relative to this directory. +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -51,7 +51,6 @@ docs = [ + "sphinx-autobuild", + "sphinx_rtd_theme", + "sphinx-click", +- "sphinx-mdinclude" + ] + + [project.scripts] diff --git a/python-gTTS.changes b/python-gTTS.changes index 1e51a8d..7daf417 100644 --- a/python-gTTS.changes +++ b/python-gTTS.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Nov 20 20:46:05 UTC 2023 - Matej Cepl + +- Update to 2.4.0: + - Add Python 3.12 support + - Remove Python 3.7 support (end-of-life) +- Add process-markdown.patch replaces sphinxcontrib-mdinclude + with processed Changelog in the restructured text format. + ------------------------------------------------------------------- Fri Sep 15 09:08:13 UTC 2023 - pgajdos@suse.com diff --git a/python-gTTS.spec b/python-gTTS.spec index bb39972..5711944 100644 --- a/python-gTTS.spec +++ b/python-gTTS.spec @@ -17,13 +17,16 @@ Name: python-gTTS -Version: 2.3.2 +Version: 2.4.0 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-OPENSUSE process-markdown.patch mcepl@suse.com +# process Markdown Changelog into rST +Patch0: process-markdown.patch BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module click} @@ -31,7 +34,6 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 3.9} BuildRequires: %{python_module requests} BuildRequires: %{python_module sphinx-click} -BuildRequires: %{python_module sphinx_mdinclude} BuildRequires: %{python_module sphinx_rtd_theme} BuildRequires: %{python_module testfixtures} BuildRequires: %{python_module wheel}