diff --git a/Babel-2.2.0.tar.gz b/Babel-2.2.0.tar.gz deleted file mode 100644 index 681fb6b..0000000 --- a/Babel-2.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8cb4c0e78148aee89560f9fe21587aa57739c975bb89ff66b1e842cc697428f -size 6334150 diff --git a/Babel-2.3.4.tar.gz b/Babel-2.3.4.tar.gz new file mode 100644 index 0000000..b073a38 --- /dev/null +++ b/Babel-2.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875 +size 6866920 diff --git a/fix-timezone-test.patch b/fix-timezone-test.patch deleted file mode 100644 index 991bb2c..0000000 --- a/fix-timezone-test.patch +++ /dev/null @@ -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': diff --git a/python-Babel-doc.spec b/python-Babel-doc.spec index 912a018..c40796c 100644 --- a/python-Babel-doc.spec +++ b/python-Babel-doc.spec @@ -17,13 +17,13 @@ Name: python-Babel-doc -Version: 2.2.0 +Version: 2.3.4 Release: 0 Url: http://babel.edgewall.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 +Source: https://pypi.python.org/packages/6e/96/ba2a2462ed25ca0e651fb7b66e7080f5315f91425a07ea5b34d7c870c114/Babel-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-Sphinx %if 0%{?suse_version} && 0%{?suse_version} <= 1110 diff --git a/python-Babel.changes b/python-Babel.changes index ccf69af..026ffcd 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -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 diff --git a/python-Babel.spec b/python-Babel.spec index 179eb2e..36c54bd 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -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 +Source: https://pypi.python.org/packages/6e/96/ba2a2462ed25ca0e651fb7b66e7080f5315f91425a07ea5b34d7c870c114/Babel-%{version}.tar.gz 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 diff --git a/skip-dst-tests.patch b/skip-dst-tests.patch deleted file mode 100644 index d884e28..0000000 --- a/skip-dst-tests.patch +++ /dev/null @@ -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')