Sync from SUSE:SLFO:Main python-Babel revision d69a6f30f5b9e35dd9555361c8808023
This commit is contained in:
parent
4aab7cd3ae
commit
79c82b34fd
BIN
Babel-2.12.1.tar.gz
(Stored with Git LFS)
BIN
Babel-2.12.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
babel-2.16.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
babel-2.16.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,43 +0,0 @@
|
|||||||
From 641f58c9951d9f5746cd63743dd337f1340d7bff Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
|
||||||
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):
|
|
@ -1,3 +1,91 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 17 04:19:37 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Clean up {Build,}Requires to match reality.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 7 10:38:16 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.16.0
|
||||||
|
* CLDR: Upgrade to CLDR 45
|
||||||
|
* Lists: Support list format fallbacks
|
||||||
|
* Messages: Initial support for reading mapping configuration as TOML
|
||||||
|
* CLDR: Do not allow substituting alternates or drafts in derived locales
|
||||||
|
* Core: Allow falling back to modifier-less locale data
|
||||||
|
* Core: Allow use of importlib.metadata for finding entrypoints
|
||||||
|
* Dates: Avoid crashing on importing localtime when TZ is malformed
|
||||||
|
* Messages: Allow parsing .po files that have an extant but empty Language header
|
||||||
|
* Messages: Fix ``--ignore-dirs`` being incorrectly read
|
||||||
|
* Messages: Make pgettext search plurals when translation is not found
|
||||||
|
* Replace deprecated `ast.Str` with `ast.Constant`
|
||||||
|
* CI fixes
|
||||||
|
* Test on Python 3.13 beta releases
|
||||||
|
* Normalize package name to lower-case in setup.py
|
||||||
|
* Add a mention to the docs that `format_skeleton(..., fuzzy=True)` may raise
|
||||||
|
* Two hyperlinks (to CLDR) and some typos
|
||||||
|
- Adjust filename for dist file in %files section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 15 11:10:55 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.15.0
|
||||||
|
* Babel 2.15.0 will require Python 3.8 or newer
|
||||||
|
* CLDR: Upgrade to CLDR 44
|
||||||
|
* Dates: Support for the "fall back to short format"
|
||||||
|
logic for time delta formatting
|
||||||
|
* Message: More versatile .po IO functions
|
||||||
|
* Numbers: Improved support for alternate spaces
|
||||||
|
when parsing numbers
|
||||||
|
* Upgrade GitHub Actions
|
||||||
|
* The Unicode license is now included in `locale-data`
|
||||||
|
and in the documentation
|
||||||
|
- Adjust upstream source name in spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 27 09:37:51 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.14.0:
|
||||||
|
* ``Locale.number_symbols`` will now have first-level keys for
|
||||||
|
each numbering system.
|
||||||
|
* Babel no longer directly depends on either ``distutils`` or
|
||||||
|
``setuptools``; if you had been using the Babel setuptools
|
||||||
|
command extensions, you would need explicitly depend on
|
||||||
|
``setuptools``
|
||||||
|
* CLDR/Numbers: Add support of local numbering systems for
|
||||||
|
number symbols
|
||||||
|
* CLDR: Upgrade to CLDR 43
|
||||||
|
* Frontend: Allow last_translator to be passed as an option to
|
||||||
|
extract_message
|
||||||
|
* Frontend: Decouple `pybabel` CLI frontend from
|
||||||
|
distutils/setuptools
|
||||||
|
* Numbers: Improve parsing of malformed decimals
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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 <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- update to 2.13.1:
|
||||||
|
* 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.
|
||||||
|
* 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
|
||||||
|
* Freeze format_time() tests to a specific date to fix test
|
||||||
|
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 <daniel.garcia@suse.com>
|
Mon May 8 10:00:09 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Babel
|
# spec file for package python-Babel
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,22 +26,20 @@
|
|||||||
%define oldpython python
|
%define oldpython python
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-Babel
|
Name: python-Babel
|
||||||
Version: 2.12.1
|
Version: 2.16.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Internationalization utilities
|
Summary: Internationalization utilities
|
||||||
License: BSD-3-Clause
|
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
|
Source: https://files.pythonhosted.org/packages/source/b/babel/babel-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM: fix-tests.patch, gh#python-babel/babel#998
|
BuildRequires: %{python_module freezegun >= 1.0}
|
||||||
Patch0: fix-tests.patch
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module freezegun}
|
BuildRequires: %{python_module pytest >= 6.0}
|
||||||
BuildRequires: %{python_module py >= 1.4.14}
|
BuildRequires: %{python_module tzdata}
|
||||||
BuildRequires: %{python_module pytest >= 2.3.5}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{python_module pytz >= 2015.7}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros >= 20210929
|
BuildRequires: python-rpm-macros >= 20210929
|
||||||
Requires: python-pytz >= 2015.7
|
Requires: python-tzdata
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
Requires: alts
|
Requires: alts
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
@ -64,13 +62,13 @@ Obsoletes: python3-babel < %{version}
|
|||||||
A collection of tools for internationalizing Python applications.
|
A collection of tools for internationalizing Python applications.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Babel-%{version}
|
%autosetup -p1 -n babel-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pybabel
|
%python_clone -a %{buildroot}%{_bindir}/pybabel
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@ -95,6 +93,6 @@ A collection of tools for internationalizing Python applications.
|
|||||||
%doc CHANGES.rst
|
%doc CHANGES.rst
|
||||||
%python_alternative %{_bindir}/pybabel
|
%python_alternative %{_bindir}/pybabel
|
||||||
%{python_sitelib}/babel
|
%{python_sitelib}/babel
|
||||||
%{python_sitelib}/Babel-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/babel-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user