From efd7ccab94a7adb018355340e947ad064d46497a Mon Sep 17 00:00:00 2001 From: Pierre-Nick Durette Date: Tue, 31 Dec 2019 21:34:42 -0500 Subject: [PATCH] Version bump 2.1.0 --- CHANGELOG.rst | 64 +++++++++++++++++++++++++++++++++++++++++++----- gtts/version.py | 2 +- news/143.feature | 1 - news/197.bugfix | 1 - news/200.feature | 1 - news/203.feature | 1 - news/204.feature | 1 - news/204.misc | 1 - news/205.misc | 1 - news/207.feature | 1 - news/207.misc | 1 - 11 files changed, 59 insertions(+), 16 deletions(-) delete mode 100644 news/143.feature delete mode 100644 news/197.bugfix delete mode 100644 news/200.feature delete mode 100644 news/203.feature delete mode 100644 news/204.feature delete mode 100644 news/204.misc delete mode 100644 news/205.misc delete mode 100644 news/207.feature delete mode 100644 news/207.misc diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8f9642c..89fcc95 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,58 @@ Changelog .. towncrier release notes start +2.1.0 (2020-01-01) +------------------ + +Features +~~~~~~~~ + +- The ``gtts`` module + + - Added the ability to customize the Google Translate URL hostname. + This is useful where ``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. + + - The 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 `_ + + 2.0.4 (2019-08-29) ------------------ @@ -103,7 +155,7 @@ Features (e.g. "en-gb", "fr-ca") - New ``gTTS()`` parameter ``lang_check`` to disable language checking. - - ``gTTS()`` now delegates the ``text`` tokenizing to the + - ``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) @@ -114,7 +166,7 @@ Features - Added new exception ``gTTSError`` raised on API request errors. It attempts to guess what went wrong based on known information - and observed behaviour + and observed behaviour (`#60 `_, `#106 `_) - ``gTTS.write_to_fp()`` and ``gTTS.save()`` also raise ``gTTSError`` @@ -175,15 +227,15 @@ Bugfixes ~~~~~~~~ - ``_minimize()``: Fixed an infinite recursion loop that would occur - when a token started with the miminizing delimiter (i.e. a space) + 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 `_, + (`#78 `_, + `#93 `_, `#96 `_) @@ -203,7 +255,7 @@ Improved Documentation - Rewrote all documentation files as reStructuredText - Comprehensive documentation writen for `Sphinx `_, published to http://gtts.readthedocs.io -- Changelog built with `towncrier `_ +- Changelog built with `towncrier `_ Misc ~~~~ diff --git a/gtts/version.py b/gtts/version.py index f593cd5..a33997d 100644 --- a/gtts/version.py +++ b/gtts/version.py @@ -1 +1 @@ -__version__ = '2.0.4' +__version__ = '2.1.0' diff --git a/news/143.feature b/news/143.feature deleted file mode 100644 index 1ee88b5..0000000 --- a/news/143.feature +++ /dev/null @@ -1 +0,0 @@ -Added the ability to customize the Google Translate URL hostname using a different top-level domain (in `gTTS` via the new `tld` parameter and in `gtts-cli` via the new `--tld`/`-t` option) \ No newline at end of file diff --git a/news/197.bugfix b/news/197.bugfix deleted file mode 100644 index 659e39d..0000000 --- a/news/197.bugfix +++ /dev/null @@ -1 +0,0 @@ -Changed default word-for-word pre-processor (``('M.', 'Monsieur')``) which would substitute any 'm.' for 'monsieur' (e.g. 'them.' became 'themonsieur') \ No newline at end of file diff --git a/news/200.feature b/news/200.feature deleted file mode 100644 index 02679dc..0000000 --- a/news/200.feature +++ /dev/null @@ -1 +0,0 @@ -Decoupled Web requests _preparing_ from _sending_. This allows ``gTTS`` to build TTS API request URLS it _would_ send, which can be obtained with the new ``get_urls()`` method. \ No newline at end of file diff --git a/news/203.feature b/news/203.feature deleted file mode 100644 index 1ee88b5..0000000 --- a/news/203.feature +++ /dev/null @@ -1 +0,0 @@ -Added the ability to customize the Google Translate URL hostname using a different top-level domain (in `gTTS` via the new `tld` parameter and in `gtts-cli` via the new `--tld`/`-t` option) \ No newline at end of file diff --git a/news/204.feature b/news/204.feature deleted file mode 100644 index aa93d30..0000000 --- a/news/204.feature +++ /dev/null @@ -1 +0,0 @@ -Added Python 3.8 support \ No newline at end of file diff --git a/news/204.misc b/news/204.misc deleted file mode 100644 index 42e54cd..0000000 --- a/news/204.misc +++ /dev/null @@ -1 +0,0 @@ -Refactor GitHub Action workflows \ No newline at end of file diff --git a/news/205.misc b/news/205.misc deleted file mode 100644 index 28ed41c..0000000 --- a/news/205.misc +++ /dev/null @@ -1 +0,0 @@ -Added usage examples to match new features diff --git a/news/207.feature b/news/207.feature deleted file mode 100644 index 02679dc..0000000 --- a/news/207.feature +++ /dev/null @@ -1 +0,0 @@ -Decoupled Web requests _preparing_ from _sending_. This allows ``gTTS`` to build TTS API request URLS it _would_ send, which can be obtained with the new ``get_urls()`` method. \ No newline at end of file diff --git a/news/207.misc b/news/207.misc deleted file mode 100644 index 28ed41c..0000000 --- a/news/207.misc +++ /dev/null @@ -1 +0,0 @@ -Added usage examples to match new features