forked from pool/python-Babel
- update to 2.3.4:
* 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 * 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) * Dates: More pattern formats and lengths are supported (https://github.com/python-babel/babel/pull/347) * Dates: Period IDs are imported and exposed (https://github.com/python-babel/babel/pull/349) * Dates: Support for date-time skeleton formats has been added (https://github.com/python-babel/babel/pu * Dates: Timezone formatting has been improved (https://github.com/python-babel/babel/pull/338) * Messages: JavaScript extraction now supports dotted names, ES6 template strings and JSX tags (https:// - drop fix-timezone-test.patch skip-dst-tests.patch, no longer necessary OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=26
This commit is contained in:
parent
c62ad5967a
commit
ac256de84d
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d8cb4c0e78148aee89560f9fe21587aa57739c975bb89ff66b1e842cc697428f
|
||||
size 6334150
|
3
Babel-2.3.4.tar.gz
Normal file
3
Babel-2.3.4.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875
|
||||
size 6866920
|
@ -1,13 +0,0 @@
|
||||
--- babel/dates.py.old 2015-01-28 16:54:06.306129842 -0800
|
||||
+++ babel/dates.py 2015-01-28 16:54:44.574118917 -0800
|
||||
@@ -308,7 +308,9 @@
|
||||
datetime = datetime.replace(tzinfo=UTC)
|
||||
locale = Locale.parse(locale)
|
||||
|
||||
- offset = datetime.tzinfo.utcoffset(datetime)
|
||||
+ # fix for mitsuhiko/babel#133 : Any time will do since we just want the
|
||||
+ # offset
|
||||
+ offset = datetime.tzinfo.utcoffset(datetime_.utcnow())
|
||||
seconds = offset.days * 24 * 60 * 60 + offset.seconds
|
||||
hours, seconds = divmod(seconds, 3600)
|
||||
if width == 'short':
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-Babel-doc
|
||||
Version: 2.2.0
|
||||
Version: 2.3.4
|
||||
Release: 0
|
||||
Url: http://babel.edgewall.org/
|
||||
Summary: Internationalization utilities
|
||||
|
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 2 19:00:01 UTC 2016 - dmueller@suse.com
|
||||
|
||||
- update to 2.3.4:
|
||||
* 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
|
||||
* 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)
|
||||
* Dates: More pattern formats and lengths are supported (https://github.com/python-babel/babel/pull/347)
|
||||
* Dates: Period IDs are imported and exposed (https://github.com/python-babel/babel/pull/349)
|
||||
* Dates: Support for date-time skeleton formats has been added (https://github.com/python-babel/babel/pu
|
||||
* Dates: Timezone formatting has been improved (https://github.com/python-babel/babel/pull/338)
|
||||
* Messages: JavaScript extraction now supports dotted names, ES6 template strings and JSX tags (https://
|
||||
- drop fix-timezone-test.patch skip-dst-tests.patch, no longer necessary
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 1 10:40:23 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -17,17 +17,13 @@
|
||||
|
||||
|
||||
Name: python-Babel
|
||||
Version: 2.2.0
|
||||
Version: 2.3.4
|
||||
Release: 0
|
||||
Url: http://babel.pocoo.org/
|
||||
Summary: Internationalization utilities
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/B/Babel/Babel-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE fix-timezone-test.patch (taken from upstream)
|
||||
Patch0: fix-timezone-test.patch
|
||||
# PATCH-FIX-OPENSUSE skip-dst-tests.patch -- drop DST related tests (#156)
|
||||
Patch1: skip-dst-tests.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
@ -55,8 +51,6 @@ A collection of tools for internationalizing Python applications.
|
||||
|
||||
%prep
|
||||
%setup -q -n Babel-%{version}
|
||||
%patch0 -p0
|
||||
%patch1 -p1
|
||||
sed -i "s/pybabel =/pybabel-%{py_ver} =/" setup.py
|
||||
|
||||
%build
|
||||
|
@ -1,37 +0,0 @@
|
||||
Index: Babel-2.1.1/tests/test_dates.py
|
||||
===================================================================
|
||||
--- Babel-2.1.1.orig/tests/test_dates.py
|
||||
+++ Babel-2.1.1/tests/test_dates.py
|
||||
@@ -175,18 +175,6 @@ class DateTimeFormatTestCase(unittest.Te
|
||||
fmt = dates.DateTimeFormat(d, locale='en_US')
|
||||
self.assertEqual('0000', fmt['AAAA'])
|
||||
|
||||
- def test_timezone_rfc822(self):
|
||||
- tz = timezone('Europe/Berlin')
|
||||
- t = tz.localize(datetime(2015, 1, 1, 15, 30))
|
||||
- fmt = dates.DateTimeFormat(t, locale='de_DE')
|
||||
- self.assertEqual('+0100', fmt['Z'])
|
||||
-
|
||||
- def test_timezone_gmt(self):
|
||||
- tz = timezone('Europe/Berlin')
|
||||
- t = tz.localize(datetime(2015, 1, 1, 15, 30))
|
||||
- fmt = dates.DateTimeFormat(t, locale='de_DE')
|
||||
- self.assertEqual('GMT+01:00', fmt['ZZZZ'])
|
||||
-
|
||||
def test_timezone_name(self):
|
||||
tz = timezone('Europe/Paris')
|
||||
dt = tz.localize(datetime(2007, 4, 1, 15, 30))
|
||||
@@ -379,13 +367,6 @@ def test_get_timezone_gmt():
|
||||
dt = datetime(2007, 4, 1, 15, 30)
|
||||
assert dates.get_timezone_gmt(dt, locale='en') == u'GMT+00:00'
|
||||
|
||||
- tz = timezone('America/Los_Angeles')
|
||||
- dt = tz.localize(datetime(2007, 4, 1, 15, 30))
|
||||
- assert dates.get_timezone_gmt(dt, locale='en') == u'GMT-07:00'
|
||||
- assert dates.get_timezone_gmt(dt, 'short', locale='en') == u'-0700'
|
||||
-
|
||||
- assert dates.get_timezone_gmt(dt, 'long', locale='fr_FR') == u'UTC-07:00'
|
||||
-
|
||||
|
||||
def test_get_timezone_location():
|
||||
tz = timezone('America/St_Johns')
|
Loading…
x
Reference in New Issue
Block a user