From b03b0399f230185dc6a9b6c979dec603c8622e605bfd0dc3f196791de23a4c68 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 15 Dec 2023 12:11:54 +0000 Subject: [PATCH 1/2] Accepting request 1133136 from home:pgajdos:python pmmu version update OBS-URL: https://build.opensuse.org/request/show/1133136 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=78 --- Babel-2.12.1.tar.gz | 3 --- Babel-2.13.1.tar.gz | 3 +++ fix-tests.patch | 43 -------------------------------------- python-Babel.changes | 49 ++++++++++++++++++++++++++++++++++++++++++++ python-Babel.spec | 6 ++---- 5 files changed, 54 insertions(+), 50 deletions(-) delete mode 100644 Babel-2.12.1.tar.gz create mode 100644 Babel-2.13.1.tar.gz delete mode 100644 fix-tests.patch diff --git a/Babel-2.12.1.tar.gz b/Babel-2.12.1.tar.gz deleted file mode 100644 index 376c7dc..0000000 --- a/Babel-2.12.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455 -size 9906735 diff --git a/Babel-2.13.1.tar.gz b/Babel-2.13.1.tar.gz new file mode 100644 index 0000000..0e8cda3 --- /dev/null +++ b/Babel-2.13.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33e0952d7dd6374af8dbf6768cc4ddf3ccfefc244f9986d4074704f2fbd18900 +size 9909844 diff --git a/fix-tests.patch b/fix-tests.patch deleted file mode 100644 index b2912c7..0000000 --- a/fix-tests.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 641f58c9951d9f5746cd63743dd337f1340d7bff Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= -Date: Fri, 7 Apr 2023 14:51:10 +0000 -Subject: [PATCH] Freeze format_time() tests to a specific date to fix test - failures - -Freeze the date when performing the tests for format_time() with -a timezone specified. Since the time object does not specify a date, -the formatter uses the format string specific to the current date. -As a result, if the current DST state is different than when the test -was last updated, it failed. - -This fix covers only regular tests. I have no idea how to do the same -for doctests. - -Issue #988 ---- - tests/test_dates.py | 11 ++++++----- - 1 file changed, 6 insertions(+), 5 deletions(-) - -Index: Babel-2.12.1/tests/test_dates.py -=================================================================== ---- Babel-2.12.1.orig/tests/test_dates.py -+++ Babel-2.12.1/tests/test_dates.py -@@ -601,12 +601,13 @@ def test_format_time(timezone_getter): - custom = dates.format_time(t, "hh 'o''clock' a, zzzz", tzinfo=eastern, locale='en') - assert custom == "09 o'clock AM, Eastern Daylight Time" - -- t = time(15, 30) -- paris = dates.format_time(t, format='full', tzinfo=paris, locale='fr_FR') -- assert paris == '15:30:00 heure normale d’Europe centrale' -+ with freezegun.freeze_time("2023-01-01"): -+ t = time(15, 30) -+ paris = dates.format_time(t, format='full', tzinfo=paris, locale='fr_FR') -+ assert paris == '15:30:00 heure normale d’Europe centrale' - -- us_east = dates.format_time(t, format='full', tzinfo=eastern, locale='en_US') -- assert us_east == '3:30:00\u202fPM Eastern Standard Time' -+ us_east = dates.format_time(t, format='full', tzinfo=eastern, locale='en_US') -+ assert us_east == '3:30:00\u202fPM Eastern Standard Time' - - - def test_format_skeleton(timezone_getter): diff --git a/python-Babel.changes b/python-Babel.changes index 59bd590..b8fbf9c 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Thu Dec 14 11:11:50 UTC 2023 - pgajdos@suse.com + +- deleted patches + - fix-tests.patch (upstreamed) + +------------------------------------------------------------------- +Thu Dec 14 09:15:20 UTC 2023 - Petr Gajdos + +- update to 2.13.1: + * This is a patch release to fix a few bugs. + * Fixes + * ~~~~~ + * Fix a typo in ``_locales_to_names`` by @Dl84 in :gh:`1038` + (issue :gh:`1037`) + * Fix ``setuptools`` dependency for Python 3.12 by @opryprin in + :gh:`1033` + * Version 2.13.0 + * Upcoming deprecation + * ~~~~~~~~~~~~~~~~~~~~ + * This version, Babel 2.13, is the last version of Babel to + support Python 3.7. + * Babel 2.14 will require Python 3.8 or newer. + * Features + * ~~~~~~~~ + * Add flag to ignore POT-Creation-Date for updates by + @joeportela in :gh:`999` + * Support 't' specifier in keywords by @jeanas in :gh:`1015` + * Add f-string parsing for Python 3.12 (PEP 701) by @encukou in + :gh:`1027` + * Fixes + * ~~~~~ + * Various typing-related fixes by @akx in :gh:`979`, in + :gh:`978`, :gh:`981`, :gh:`983` + * babel.messages.catalog: deduplicate _to_fuzzy_match_key logic + by @akx in :gh:`980` + * Freeze format_time() tests to a specific date to fix test + failures by @mgorny in :gh:`998` + * Spelling and grammar fixes by @scop in :gh:`1008` + * Renovate lint tools by @akx in :gh:`1017`, :gh:`1028` + * Use SPDX license identifier by @vargenau in :gh:`994` + * Use aware UTC datetimes internally by @scop in :gh:`1009` + * New Contributors + * ~~~~~~~~~~~~~~~~ + * @mgorny made their first contribution in :gh:`998` + * @vargenau made their first contribution in :gh:`994` + * @joeportela made their first contribution in :gh:`999` + * @encukou made their first contribution in :gh:`1027` + ------------------------------------------------------------------- Mon May 8 10:00:09 UTC 2023 - Daniel Garcia diff --git a/python-Babel.spec b/python-Babel.spec index d98b192..bfab625 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -26,14 +26,12 @@ %define oldpython python %{?sle15_python_module_pythons} Name: python-Babel -Version: 2.12.1 +Version: 2.13.1 Release: 0 Summary: Internationalization utilities License: BSD-3-Clause -URL: http://babel.pocoo.org/ +URL: https://babel.pocoo.org/ Source: https://files.pythonhosted.org/packages/source/B/Babel/Babel-%{version}.tar.gz -# PATCH-FIX-UPSTREAM: fix-tests.patch, gh#python-babel/babel#998 -Patch0: fix-tests.patch BuildRequires: %{python_module freezegun} BuildRequires: %{python_module py >= 1.4.14} BuildRequires: %{python_module pytest >= 2.3.5} From cc4d60351a38c2371c79f1ddab18649f105d27e541feb55d983a58373376e4bb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 15 Dec 2023 12:24:59 +0000 Subject: [PATCH 2/2] * Fix a typo in ``_locales_to_names`` * Fix ``setuptools`` dependency for Python 3.12 * Add flag to ignore POT-Creation-Date for updates * Support 't' specifier in keywords * Add f-string parsing for Python 3.12 (PEP 701) * Various typing-related fixes failures * Spelling and grammar fixes * Renovate lint tools * Use SPDX license identifier * Use aware UTC datetimes internally - Update to 2.11.0 - update to 2.10.3 - update to 2.10.2 * Messages: Fix ``distutils`` import. Regressed in :gh:`843`. * CLDR: Upgrade to CLDR 41.0. * Messages: Implement ``--init-missing`` option for ``pybabel update`` ignored directory patterns with ones of your own. * Messages: Add ``--check`` to verify if catalogs are up-to-date * Messages: Add ``--header-comment`` to override default header comment * The internal ``babel/_compat.py`` module is no more * Python 3.10 is officially supported * There's now a friendly GitHub issue template. * Add GitHub URL for PyPi * Python 3.12 compatibility: Prefer setuptools imports to distutils imports * Python 3.11 compatibility: Add deprecations to l*gettext variants * CI: Babel is now tested with PyPy 3.7. * Date formatting: Allow using ``other`` as fallback form * A typo in the plural format for Maltese is fixed. * Messages: Catalog date parsing is now timezone independent. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=79 --- python-Babel.changes | 107 +++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 65 deletions(-) diff --git a/python-Babel.changes b/python-Babel.changes index b8fbf9c..53cea2c 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -8,44 +8,21 @@ Thu Dec 14 11:11:50 UTC 2023 - pgajdos@suse.com Thu Dec 14 09:15:20 UTC 2023 - Petr Gajdos - update to 2.13.1: - * This is a patch release to fix a few bugs. - * Fixes - * ~~~~~ - * Fix a typo in ``_locales_to_names`` by @Dl84 in :gh:`1038` - (issue :gh:`1037`) - * Fix ``setuptools`` dependency for Python 3.12 by @opryprin in - :gh:`1033` - * Version 2.13.0 - * Upcoming deprecation - * ~~~~~~~~~~~~~~~~~~~~ + * Fix a typo in ``_locales_to_names`` + * Fix ``setuptools`` dependency for Python 3.12 * This version, Babel 2.13, is the last version of Babel to support Python 3.7. - * Babel 2.14 will require Python 3.8 or newer. - * Features - * ~~~~~~~~ - * Add flag to ignore POT-Creation-Date for updates by - @joeportela in :gh:`999` - * Support 't' specifier in keywords by @jeanas in :gh:`1015` - * Add f-string parsing for Python 3.12 (PEP 701) by @encukou in - :gh:`1027` - * Fixes - * ~~~~~ - * Various typing-related fixes by @akx in :gh:`979`, in - :gh:`978`, :gh:`981`, :gh:`983` + * Add flag to ignore POT-Creation-Date for updates + * Support 't' specifier in keywords + * Add f-string parsing for Python 3.12 (PEP 701) + * Various typing-related fixes * babel.messages.catalog: deduplicate _to_fuzzy_match_key logic - by @akx in :gh:`980` * Freeze format_time() tests to a specific date to fix test - failures by @mgorny in :gh:`998` - * Spelling and grammar fixes by @scop in :gh:`1008` - * Renovate lint tools by @akx in :gh:`1017`, :gh:`1028` - * Use SPDX license identifier by @vargenau in :gh:`994` - * Use aware UTC datetimes internally by @scop in :gh:`1009` - * New Contributors - * ~~~~~~~~~~~~~~~~ - * @mgorny made their first contribution in :gh:`998` - * @vargenau made their first contribution in :gh:`994` - * @joeportela made their first contribution in :gh:`999` - * @encukou made their first contribution in :gh:`1027` + failures + * Spelling and grammar fixes + * Renovate lint tools + * Use SPDX license identifier + * Use aware UTC datetimes internally ------------------------------------------------------------------- Mon May 8 10:00:09 UTC 2023 - Daniel Garcia @@ -101,7 +78,7 @@ Thu Apr 13 22:40:11 UTC 2023 - Matej Cepl ------------------------------------------------------------------- Mon Nov 7 20:02:22 UTC 2022 - Yogalakshmi Arunachalam -- Update to 2.11.0 +- Update to 2.11.0 Upcoming deprecation * This version, Babel 2.11, is the last version of Babel to support Python 3.6. Babel 2.12 will require Python 3.7 or newer. Improvements @@ -129,11 +106,11 @@ Mon Nov 7 20:02:22 UTC 2022 - Yogalakshmi Arunachalam Fri Jun 17 19:38:24 UTC 2022 - Yogalakshmi Arunachalam -- update to 2.10.3 +- update to 2.10.3 This is a bugfix release for Babel 2.10.2, which was mistakenly packaged with outdated locale data. Thanks to Michał Górny for pointing this out and Jun Omae for verifying. This and future Babel PyPI packages will be built by a more automated process, which should make problems like this less likely to occur -- update to 2.10.2 +- update to 2.10.2 This is a bugfix release for Babel 2.10.1. * Fallback count=”other” format in format_currency() (#872) - Jun Omae * Fix get_period_id() with dayPeriodRule across 0:00 (#871) - Jun Omae @@ -144,38 +121,38 @@ Fri Jun 17 19:38:24 UTC 2022 - Yogalakshmi Arunachalam Sat Jun 4 18:08:57 UTC 2022 - Dirk Müller - update to 2.10.1: - * Messages: Fix ``distutils`` import. Regressed in :gh:`843`. + * Messages: Fix ``distutils`` import. Regressed in :gh:`843`. * The ``get_next_timezone_transition likely as soon as Babel 2.11. - * CLDR: Upgrade to CLDR 41.0. + * CLDR: Upgrade to CLDR 41.0. * The ``c`` and ``e`` plural form operands introduced in CLDR 40 are parsed * Non-nominative forms of units are currently ignored. - * Messages: Implement ``--init-missing`` option for ``pybabel update`` + * Messages: Implement ``--init-missing`` option for ``pybabel update`` * Messages: For ``extract``, you can now replace the built-in ``.*`` / ``_*`` - ignored directory patterns with ones of your own. - * Messages: Add ``--check`` to verify if catalogs are up-to-date - * Messages: Add ``--header-comment`` to override default header comment + ignored directory patterns with ones of your own. + * Messages: Add ``--check`` to verify if catalogs are up-to-date + * Messages: Add ``--header-comment`` to override default header comment * Dates: ``parse_time`` now supports 12-hour clock, and is better at parsing partial times. * Dates: ``parse_date`` and ``parse_time`` now raise ``ParseError``, a subclass of ``ValueError``, in certain cases. * Dates: ``parse_date`` and ``parse_time`` now accept the ``format`` parameter. - * The internal ``babel/_compat.py`` module is no more - * Python 3.10 is officially supported - * There's now a friendly GitHub issue template. + * The internal ``babel/_compat.py`` module is no more + * Python 3.10 is officially supported + * There's now a friendly GitHub issue template. * Don't use the deprecated format_number function internally or in tests - * Add GitHub URL for PyPi - * Python 3.12 compatibility: Prefer setuptools imports to distutils imports - * Python 3.11 compatibility: Add deprecations to l*gettext variants - * CI: Babel is now tested with PyPy 3.7. - * Date formatting: Allow using ``other`` as fallback form + * Add GitHub URL for PyPi + * Python 3.12 compatibility: Prefer setuptools imports to distutils imports + * Python 3.11 compatibility: Add deprecations to l*gettext variants + * CI: Babel is now tested with PyPy 3.7. + * Date formatting: Allow using ``other`` as fallback form * Locales: ``Locale.parse - * A typo in the plural format for Maltese is fixed. - * Messages: Catalog date parsing is now timezone independent. - * Messages: Fix duplicate locations when writing without lineno - * Messages: Fix missing trailing semicolon in plural form headers - * CLI: Fix output of ``--list-locales`` to not be a bytes repr - * Documentation is now correctly built again, and up to date + * A typo in the plural format for Maltese is fixed. + * Messages: Catalog date parsing is now timezone independent. + * Messages: Fix duplicate locations when writing without lineno + * Messages: Fix missing trailing semicolon in plural form headers + * CLI: Fix output of ``--list-locales`` to not be a bytes repr + * Documentation is now correctly built again, and up to date ------------------------------------------------------------------- Tue Oct 5 14:53:29 UTC 2021 - Stefan Schubert @@ -185,7 +162,7 @@ Tue Oct 5 14:53:29 UTC 2021 - Stefan Schubert ------------------------------------------------------------------- Thu Sep 30 15:35:45 UTC 2021 - Stefan Schubert -- Use libalternatives instead of update-alternatives. +- Use libalternatives instead of update-alternatives. ------------------------------------------------------------------- Tue May 11 21:40:39 UTC 2021 - Dirk Müller @@ -263,7 +240,7 @@ Tue Jun 4 05:31:14 UTC 2019 - pgajdos@suse.com ``collections.OrderedDict`` from The Python standard library. Improvements * CLDR: Upgrade to CLDR 35.1 - Alberto Mardegan, Aarni Koskela (#626, #643) - * General: allow anchoring path patterns to the start of a string - + * General: allow anchoring path patterns to the start of a string - Brian Cappello (#600) * General: Bumped version requirement on pytz - @chrisbrake (#592) * Messages: `pybabel compile`: exit with code 1 if errors were encountered @@ -414,7 +391,7 @@ Mon May 2 19:00:01 UTC 2016 - dmueller@suse.com * CLDR: The lxml library is no longer used for CLDR importing, so it should not cause strange failures e * CLI: Every last single CLI usage regression should now be gone, and both distutils and stand-alone CLI * CLI: Usage regressions that had snuck in between 2.2 and 2.3 should be no more. (https://github.com/py - * Dates: Period (am/pm) formatting was broken in certain locales (namely zh_TW). Thanks to @jun66j5 for + * Dates: Period (am/pm) formatting was broken in certain locales (namely zh_TW). Thanks to @jun66j5 for * CLDR: Add an API for territory language data (https://github.com/python-babel/babel/pull/315) * Core: Character order and measurement system data is imported and exposed (https://github.com/python-b * Dates: Add an API for time interval formatting (https://github.com/python-babel/babel/pull/316) @@ -495,7 +472,7 @@ Mon Feb 1 10:40:23 UTC 2016 - toddrme2178@gmail.com - add skip-dst-tests.patch: drop DST related tests (workaround issue #156) - Add fix-timezone-test.patch: already included upstream -- Remove 0001-disable_timezone_tests.patch in favor of +- Remove 0001-disable_timezone_tests.patch in favor of fix-timezone-test.patch ------------------------------------------------------------------- @@ -517,7 +494,7 @@ Sat Nov 08 17:11:00 UTC 2014 - Led ------------------------------------------------------------------- Fri Aug 15 11:42:11 UTC 2014 - sfalken@opensuse.org -- Removed un-needed BuildRequire for timezone +- Removed un-needed BuildRequire for timezone ------------------------------------------------------------------- Fri Aug 15 02:54:46 UTC 2014 - sfalken@opensuse.org @@ -627,7 +604,7 @@ Fri Sep 27 19:59:09 UTC 2013 - dmueller@suse.com - run tests - use setuptools, not distribute - add missing dependency on pytz - + ------------------------------------------------------------------- Thu Sep 1 14:26:07 UTC 2011 - saschpe@suse.de @@ -658,11 +635,11 @@ Thu Sep 1 14:17:39 UTC 2011 - saschpe@suse.de string does not contain any string formattings (ticket #150). * Fix Serbian plural forms (ticket #213). * Small speed improvement in format_date() (ticket #216). - * Fix number formatting for locales where CLDR specifies alt or draft + * Fix number formatting for locales where CLDR specifies alt or draft items (ticket #217) * Fix bad check in format_time (ticket #257, reported with patch and tests by jomae) - * Fix so frontend.CommandLineInterface.run does not accumulate logging + * Fix so frontend.CommandLineInterface.run does not accumulate logging handlers (#227, reported with initial patch by dfraser) * Fix exception if environment contains an invalid locale setting (#200) - Renamed to python-Babel (from python-babel)