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
This commit is contained in:
parent
e68fde015b
commit
b03b0399f2
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.
3
Babel-2.13.1.tar.gz
Normal file
3
Babel-2.13.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:33e0952d7dd6374af8dbf6768cc4ddf3ccfefc244f9986d4074704f2fbd18900
|
||||
size 9909844
|
@ -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,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 <pgajdos@suse.com>
|
||||
|
||||
- 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 <daniel.garcia@suse.com>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user