[arch-commits] Commit in python-pyicu/trunk (PKGBUILD issue19.patch)
Felix Yan
fyan at archlinux.org
Mon May 30 06:18:58 UTC 2016
Date: Monday, May 30, 2016 @ 08:18:57
Author: fyan
Revision: 177455
upgpkg: python-pyicu 1.9.3-1
Added:
python-pyicu/trunk/issue19.patch
Modified:
python-pyicu/trunk/PKGBUILD
---------------+
PKGBUILD | 13 +++++++++----
issue19.patch | 18 ++++++++++++++++++
2 files changed, 27 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-30 06:00:07 UTC (rev 177454)
+++ PKGBUILD 2016-05-30 06:18:57 UTC (rev 177455)
@@ -4,8 +4,8 @@
pkgbase=python-pyicu
pkgname=('python-pyicu' 'python2-pyicu')
-pkgver=1.9.2
-pkgrel=3
+pkgver=1.9.3
+pkgrel=1
pkgdesc="Python binding for ICU"
arch=('i686' 'x86_64')
license=('MIT')
@@ -12,10 +12,15 @@
url="http://pyicu.osafoundation.org/"
makedepends=('python-setuptools' 'python2-setuptools' 'icu')
checkdepends=('python-fonttools' 'python2-fonttools')
-source=("https://pypi.python.org/packages/source/P/PyICU/PyICU-$pkgver.tar.gz")
-sha512sums=('1964464f5385dc8f65c4b88b63cd9f34ced1ae365562386708d92fc5c40090a40554578bd5e90d0a996ca6f012b3d2a8ab6e0fd07968e94a0dfe18894e8f08f4')
+source=("https://pypi.io/packages/source/P/PyICU/PyICU-$pkgver.tar.gz"
+ issue19.patch)
+sha512sums=('93720f6fd4131b6cff7fe89996a3851b5993c74859e85de7813883a30152b63a0065b8c51c536cd40417b6e3ccf0ec4e26ed471cec84cd48761a306a35bfd15c'
+ '037153c73076c1e6b291171de3794f79ac315a6495e6231dc6e8fc4ae2a4d750ab77a7706edc46a5021561ebf429902fa3103c5279d3d95b3ea8093ff75a1810')
prepare() {
+ # https://github.com/ovalhub/pyicu/issues/19
+ (cd PyICU-$pkgver; patch -p1 -i ../issue19.patch)
+
cp -a PyICU-$pkgver{,-py2}
}
Added: issue19.patch
===================================================================
--- issue19.patch (rev 0)
+++ issue19.patch 2016-05-30 06:18:57 UTC (rev 177455)
@@ -0,0 +1,18 @@
+commit 6ab20d48d85638acb3a811c8676f713bd26f0df9
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Sat May 28 15:08:44 2016 +0800
+
+ add setTimeZone in testGetBestPattern (fixes #19)
+
+diff --git a/test/test_DateTimeParserGenerator.py b/test/test_DateTimeParserGenerator.py
+index 5838e32..de8eb88 100644
+--- a/test/test_DateTimeParserGenerator.py
++++ b/test/test_DateTimeParserGenerator.py
+@@ -71,6 +71,7 @@ class TestDateTimePatternGenerator(TestCase):
+ for index, skeleton in enumerate(skeletons):
+ pattern = dtpg.getBestPattern(skeleton)
+ sdf = SimpleDateFormat(pattern, locale)
++ sdf.setTimeZone(self.tz)
+ self.assertEqual(sdf.format(self.date), locale_data[index])
+
+ def testReplaceFieldType(self):
More information about the arch-commits
mailing list