Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-gTTS for openSUSE:Factory 
checked in at 2023-09-20 13:27:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gTTS (Old)
 and      /work/SRC/openSUSE:Factory/.python-gTTS.new.16627 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gTTS"

Wed Sep 20 13:27:05 2023 rev:10 rq:1112028 version:2.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gTTS/python-gTTS.changes  2023-02-05 
19:20:29.967659863 +0100
+++ /work/SRC/openSUSE:Factory/.python-gTTS.new.16627/python-gTTS.changes       
2023-09-20 13:28:59.126206546 +0200
@@ -1,0 +2,8 @@
+Fri Sep 15 09:08:13 UTC 2023 - [email protected]
+
+- version update to 2.3.2
+  * 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)
+  * cli: Fix older invalid example (5a860ed)
+
+-------------------------------------------------------------------

Old:
----
  gTTS-2.3.1.tar.gz

New:
----
  gTTS-2.3.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gTTS.spec ++++++
--- /var/tmp/diff_new_pack.h9qG5L/_old  2023-09-20 13:29:00.258247101 +0200
+++ /var/tmp/diff_new_pack.h9qG5L/_new  2023-09-20 13:29:00.262247245 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-gTTS
-Version:        2.3.1
+Version:        2.3.2
 Release:        0
 Summary:        Python module to create MP3 files from spoken text via the 
Google TTS API
 License:        MIT
@@ -26,9 +26,7 @@
 Source:         
https://github.com/pndurette/gTTS/archive/refs/tags/v%{version}.tar.gz#/gTTS-%{version}.tar.gz
 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}
@@ -39,12 +37,8 @@
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-beautifulsoup4
 Requires:       python-click
-Requires:       python-gTTS-token >= 1.1.3
 Requires:       python-requests
-Requires:       python-setuptools
-Requires:       python-six
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
 BuildArch:      noarch

++++++ gTTS-2.3.1.tar.gz -> gTTS-2.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/.github/workflows/codecov.yml 
new/gTTS-2.3.2/.github/workflows/codecov.yml
--- old/gTTS-2.3.1/.github/workflows/codecov.yml        1970-01-01 
01:00:00.000000000 +0100
+++ new/gTTS-2.3.2/.github/workflows/codecov.yml        2023-04-29 
08:19:52.000000000 +0200
@@ -0,0 +1,39 @@
+name: Upload Code Coverage
+
+# For the Codecov to do a code coverage diff in a PR,
+# it must have a code coverage of the PR base banch
+# (i.e. typically main). This Action runs tests on main
+# so the code coverage results can be uploaded and
+# a diff to appear in PRs.
+
+on:
+  push:
+    branches:
+      - main
+    paths:
+      - 'gtts/**.py'
+
+jobs:
+  test:
+    name: Unit
+
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+
+      - uses: actions/setup-python@v4
+        with:
+          python-version: "3.11"
+
+      - name: Install
+        run: |
+          python -m pip install --upgrade pip
+          pip install .[tests]
+
+      - name: Unit Tests
+        run: pytest -v --cov=gtts --cov-report=xml
+        env:
+          TEST_LANGS: en
+
+      - name: Upload Coverage Report
+        uses: codecov/[email protected]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/.github/workflows/release.yml 
new/gTTS-2.3.2/.github/workflows/release.yml
--- old/gTTS-2.3.1/.github/workflows/release.yml        2023-01-16 
08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/.github/workflows/release.yml        2023-04-29 
08:19:52.000000000 +0200
@@ -8,6 +8,17 @@
 jobs:
   release-please:
     runs-on: ubuntu-latest
+    permissions:
+      # For release-please:
+      pull-requests: write
+      contents: write
+      # IMPORTANT: this permission is mandatory for trusted publishing
+      # https://docs.pypi.org/trusted-publishers/using-a-publisher/
+      id-token: write
+    environment:
+      # Environment to narrow down the publish scope
+      name: production
+      url: https://pypi.org/project/gTTS/${{ steps.release.outputs.tag_name }}/
 
     steps:
       - name: Release Please
@@ -36,10 +47,7 @@
         run: python -m build
       - name: Publish package
         if: ${{ steps.release.outputs.release_created }}
-        uses: 
pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc
-        with:
-          user: __token__
-          password: ${{ secrets.PYPI_API_TOKEN }}
+        uses: 
pypa/gh-action-pypi-publish@0bf742be3ebe032c25dd15117957dc15d0cfc38d
 
 # References:
 # * Release Please:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/.github/workflows/test.yml 
new/gTTS-2.3.2/.github/workflows/test.yml
--- old/gTTS-2.3.1/.github/workflows/test.yml   2023-01-16 08:39:34.000000000 
+0100
+++ new/gTTS-2.3.2/.github/workflows/test.yml   2023-04-29 08:19:52.000000000 
+0200
@@ -38,4 +38,4 @@
           TEST_LANGS: en
 
       - name: Upload Coverage Report
-        uses: codecov/[email protected]
+        uses: codecov/[email protected]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/.github/workflows/update_langs.yml 
new/gTTS-2.3.2/.github/workflows/update_langs.yml
--- old/gTTS-2.3.1/.github/workflows/update_langs.yml   2023-01-16 
08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/.github/workflows/update_langs.yml   2023-04-29 
08:19:52.000000000 +0200
@@ -46,7 +46,7 @@
         # Create new branch/PR with any changes
       - name: Create PR
         if: ${{ fromJSON(steps.check_langs.outputs.must_commit) }}
-        uses: peter-evans/create-pull-request@v4
+        uses: peter-evans/create-pull-request@v5
         with:
           add-paths: ${{ env.CURR_LANG_FILE_PATH }}
           commit-message: ${{ env.LANGS_COMMIT_MESSAGE }} # from check_langs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/CHANGELOG.md new/gTTS-2.3.2/CHANGELOG.md
--- old/gTTS-2.3.1/CHANGELOG.md 2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/CHANGELOG.md 2023-04-29 08:19:52.000000000 +0200
@@ -1,15 +1,62 @@
 # Changelog
 
-## [2.3.1](https://github.com/pndurette/gTTS/compare/v2.3.0...v2.3.1) 
(2023-01-16)
+## [2.3.2](https://github.com/pndurette/gTTS/compare/v2.3.2...v2.3.2) 
(2023-04-29)
+
+
+### Features
+
+* centralizes project metadata and config into a single `pyproject.toml` 
([25d3c1c](https://github.com/pndurette/gTTS/commit/25d3c1c9ee16da81d1b766b9ee6649831a8a1719))
+* drops support for Python 2.7 (long overdue), Python 3.6 (end-of-life) 
([25d3c1c](https://github.com/pndurette/gTTS/commit/25d3c1c9ee16da81d1b766b9ee6649831a8a1719))
+* modernize package config and build/release workflow 
([25d3c1c](https://github.com/pndurette/gTTS/commit/25d3c1c9ee16da81d1b766b9ee6649831a8a1719))
+* Simplify language generator 
([5dbdf10](https://github.com/pndurette/gTTS/commit/5dbdf105b9ca4639577d8904001581434741fe34))
 
 
 ### Bug Fixes
 
+* add error case for when a custom tld gives a 404 
([5a860ed](https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd))
+* **cli:** add deprecated language fallback support to CLI 
([5a860ed](https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd))
 * include missing required `*.txt` test files in dist 
([#395](https://github.com/pndurette/gTTS/issues/395)) 
([63f10ff](https://github.com/pndurette/gTTS/commit/63f10ff6aec877103c3459fc6d3c261d469b6770))
+* Languages added: `zh-CN` (Chinese (Simplified)), `zh-TW` (Chinese 
(Traditional)) 
([5dbdf10](https://github.com/pndurette/gTTS/commit/5dbdf105b9ca4639577d8904001581434741fe34))
+* Languages removed: `cy` (Welsh),  `eo` (Esperanto), `mk` (Macedonian), `ms` 
(Malay), `zh-CN` (Chinese) 
([5dbdf10](https://github.com/pndurette/gTTS/commit/5dbdf105b9ca4639577d8904001581434741fe34))
 * loosen dependancies for `click` and `requests`, removes `six` dependancy 
([#394](https://github.com/pndurette/gTTS/issues/394)) 
([a4ce0c9](https://github.com/pndurette/gTTS/commit/a4ce0c9a26778c079fd49c7e2d89ab03bbc22cc3))
 * **test:** missing `[@pytest](https://github.com/pytest).mark.net` on 
net-enabled test ([#391](https://github.com/pndurette/gTTS/issues/391)) 
([3667f06](https://github.com/pndurette/gTTS/commit/3667f06d16152961df2ff8067384f11be9b327c0))
 * **test:** remove `mock` package test dependancy 
([#390](https://github.com/pndurette/gTTS/issues/390)) 
([9b54fc1](https://github.com/pndurette/gTTS/commit/9b54fc12b7839d3ab3ee0e948df45dfd840061c5))
 
+
+### Documentation
+
+* **cli:** use correct lang code and valid tld 
([5a860ed](https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd))
+* examples, notes, format, grammar 
([1a446b1](https://github.com/pndurette/gTTS/commit/1a446b11ec69c4cbcac741edc67dabf012a47cee))
+* format, fixes 
([920a281](https://github.com/pndurette/gTTS/commit/920a281a41ada0d81676c888327e104d846febf0))
+
+
+### Miscellaneous Chores
+
+* release 2.3.2 
([6880829](https://github.com/pndurette/gTTS/commit/688082934d88dd1bd0b648206a4ea34c8dea9ae1))
+
+## [2.3.2](https://github.com/pndurette/gTTS/compare/v2.3.1...v2.3.2) 
(2023-04-29)
+
+
+### Bug Fixes
+
+* add error case for when a custom tld gives a 404 
([5a860ed](https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd))
+* **cli:** add deprecated language fallback support to CLI 
([5a860ed](https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd))
+
+
+### Documentation
+
+* **cli:** use correct lang code and valid tld 
([5a860ed](https://github.com/pndurette/gTTS/commit/5a860edd27a6772d7facc384927e3b87439e2ccd))
+
+## [2.3.1](https://github.com/pndurette/gTTS/compare/v2.3.0...v2.3.1) 
(2023-01-16)
+
+
+### Bug Fixes
+
+* **test:** include missing required `*.txt` test files in dist 
([#395](https://github.com/pndurette/gTTS/issues/395)) 
([63f10ff](https://github.com/pndurette/gTTS/commit/63f10ff6aec877103c3459fc6d3c261d469b6770))
+* loosen dependancies for `click` and `requests`, removes `six` dependancy 
([#394](https://github.com/pndurette/gTTS/issues/394)) 
([a4ce0c9](https://github.com/pndurette/gTTS/commit/a4ce0c9a26778c079fd49c7e2d89ab03bbc22cc3))
+* **test:** missing `@pytest.mark.net` on net-enabled test 
([#391](https://github.com/pndurette/gTTS/issues/391)) 
([3667f06](https://github.com/pndurette/gTTS/commit/3667f06d16152961df2ff8067384f11be9b327c0))
+* **test:** remove `mock` package test dependancy 
([#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) 
(2022-11-21)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/LICENSE new/gTTS-2.3.2/LICENSE
--- old/gTTS-2.3.1/LICENSE      2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/LICENSE      2023-04-29 08:19:52.000000000 +0200
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright © 2014-2022 Pierre Nicolas Durette
+Copyright © 2014-2023 Pierre Nicolas Durette
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/README.md new/gTTS-2.3.2/README.md
--- old/gTTS-2.3.1/README.md    2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/README.md    2023-04-29 08:19:52.000000000 +0200
@@ -47,4 +47,4 @@
 
 ### Licence
 
-[The MIT License (MIT)](LICENSE) Copyright © 2014-2022 Pierre Nicolas Durette 
& [Contributors](https://github.com/pndurette/gTTS/graphs/contributors)
+[The MIT License (MIT)](LICENSE) Copyright © 2014-2023 Pierre Nicolas Durette 
& [Contributors](https://github.com/pndurette/gTTS/graphs/contributors)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/docs/cli.rst new/gTTS-2.3.2/docs/cli.rst
--- old/gTTS-2.3.1/docs/cli.rst 2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/docs/cli.rst 2023-04-29 08:19:52.000000000 +0200
@@ -24,9 +24,9 @@
 
    $ gtts-cli "c'est la vie" --lang fr --output cestlavie.mp3
 
-Read '你好' to ``你好.mp3`` (in Mandarin, using google.cn)::
+Read '你好' to ``你好.mp3`` (in Mandarin, using google.com.hk)::
 
-   $ gtts-cli '你好' --tld cn --lang zh-cn --output 你好.mp3
+   $ gtts-cli '你好' --tld .com.hk --lang zh-CN --output 你好.mp3
 
 Read 'slow' slowly to ``slow.mp3``::
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/docs/conf.py new/gTTS-2.3.2/docs/conf.py
--- old/gTTS-2.3.1/docs/conf.py 2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/docs/conf.py 2023-04-29 08:19:52.000000000 +0200
@@ -20,7 +20,7 @@
 # -- Project information -----------------------------------------------------
 
 project = 'gTTS'
-copyright = '2014-2022 Pierre Nicolas Durette'
+copyright = '2014-2023 Pierre Nicolas Durette'
 author = 'Pierre Nicolas Durette'
 
 # The short X.Y version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/gtts/cli.py new/gTTS-2.3.2/gtts/cli.py
--- old/gTTS-2.3.1/gtts/cli.py  2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/gtts/cli.py  2023-04-29 08:19:52.000000000 +0200
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 from gtts import gTTS, gTTSError, __version__
-from gtts.lang import tts_langs
+from gtts.lang import tts_langs, _fallback_deprecated_lang
 import click
 import logging
 import logging.config
@@ -46,6 +46,9 @@
     if ctx.params["nocheck"]:
         return lang
 
+    # Fallback from deprecated language if needed
+    lang = _fallback_deprecated_lang(lang)
+
     try:
         if lang not in tts_langs():
             raise click.UsageError(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/gtts/tts.py new/gTTS-2.3.2/gtts/tts.py
--- old/gTTS-2.3.1/gtts/tts.py  2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/gtts/tts.py  2023-04-29 08:19:52.000000000 +0200
@@ -42,7 +42,7 @@
             can produce different localized 'accents' for a given
             language. This is also useful when ``google.com`` might be blocked
             within a network but a local or different Google host
-            (e.g. ``google.cn``) is not. Default is ``com``.
+            (e.g. ``google.com.hk``) is not. Default is ``com``.
         lang (string, optional): The language (IETF language tag) to
             read the text in. Default is ``en``.
         slow (bool, optional): Reads text more slowly. Defaults to ``False``.
@@ -364,6 +364,8 @@
 
             if status == 403:
                 cause = "Bad token or upstream API changes"
+            elif status == 404 and tts.tld != "com":
+                cause = "Unsupported tld '{}'".format(tts.tld)
             elif status == 200 and not tts.lang_check:
                 cause = (
                     "No audio stream in response. Unsupported language '%s'"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/gtts/version.py 
new/gTTS-2.3.2/gtts/version.py
--- old/gTTS-2.3.1/gtts/version.py      2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/gtts/version.py      2023-04-29 08:19:52.000000000 +0200
@@ -1 +1 @@
-__version__ = "2.3.1"
+__version__ = "2.3.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gTTS-2.3.1/pyproject.toml 
new/gTTS-2.3.2/pyproject.toml
--- old/gTTS-2.3.1/pyproject.toml       2023-01-16 08:39:34.000000000 +0100
+++ new/gTTS-2.3.2/pyproject.toml       2023-04-29 08:19:52.000000000 +0200
@@ -1,6 +1,6 @@
 [project]
 name = "gTTS"
-version = "2.3.1"
+version = "2.3.2"
 description = "gTTS (Google Text-to-Speech), a Python library and CLI tool to 
interface with Google Translate text-to-speech API"
 authors = [{name = "Pierre Nicolas Durette", email = "[email protected]"}]
 requires-python = ">=3.7"

Reply via email to