[arch-commits] Commit in python-pyicu/repos (6 files)

Felix Yan fyan at archlinux.org
Mon May 30 06:19:25 UTC 2016


    Date: Monday, May 30, 2016 @ 08:19:24
  Author: fyan
Revision: 177456

archrelease: copy trunk to community-i686, community-x86_64

Added:
  python-pyicu/repos/community-i686/PKGBUILD
    (from rev 177455, python-pyicu/trunk/PKGBUILD)
  python-pyicu/repos/community-i686/issue19.patch
    (from rev 177455, python-pyicu/trunk/issue19.patch)
  python-pyicu/repos/community-x86_64/PKGBUILD
    (from rev 177455, python-pyicu/trunk/PKGBUILD)
  python-pyicu/repos/community-x86_64/issue19.patch
    (from rev 177455, python-pyicu/trunk/issue19.patch)
Deleted:
  python-pyicu/repos/community-i686/PKGBUILD
  python-pyicu/repos/community-x86_64/PKGBUILD

--------------------------------+
 /PKGBUILD                      |  114 +++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD        |   52 -----------------
 community-i686/issue19.patch   |   18 ++++++
 community-x86_64/PKGBUILD      |   52 -----------------
 community-x86_64/issue19.patch |   18 ++++++
 5 files changed, 150 insertions(+), 104 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2016-05-30 06:18:57 UTC (rev 177455)
+++ community-i686/PKGBUILD	2016-05-30 06:19:24 UTC (rev 177456)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Jonathan Liu <net147 at gmail.com>
-
-pkgbase=python-pyicu
-pkgname=('python-pyicu' 'python2-pyicu')
-pkgver=1.9.2
-pkgrel=3
-pkgdesc="Python binding for ICU"
-arch=('i686' 'x86_64')
-license=('MIT')
-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')
-
-prepare() {
-  cp -a PyICU-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir/PyICU-$pkgver"
-  python setup.py build
-
-  cd "$srcdir/PyICU-$pkgver-py2"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/PyICU-$pkgver"
-  python setup.py test
-
-  cd "$srcdir/PyICU-$pkgver-py2"
-  python2 setup.py test
-}
-
-package_python-pyicu() {
-  depends=('python' 'icu')
-
-  cd PyICU-$pkgver
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-pyicu() {
-  depends=('python2' 'icu')
-
-  cd PyICU-$pkgver-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-pyicu/repos/community-i686/PKGBUILD (from rev 177455, python-pyicu/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-05-30 06:19:24 UTC (rev 177456)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+
+pkgbase=python-pyicu
+pkgname=('python-pyicu' 'python2-pyicu')
+pkgver=1.9.3
+pkgrel=1
+pkgdesc="Python binding for ICU"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="http://pyicu.osafoundation.org/"
+makedepends=('python-setuptools' 'python2-setuptools' 'icu')
+checkdepends=('python-fonttools' 'python2-fonttools')
+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}
+}
+
+build() {
+  cd "$srcdir/PyICU-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/PyICU-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/PyICU-$pkgver"
+  python setup.py test
+
+  cd "$srcdir/PyICU-$pkgver-py2"
+  python2 setup.py test
+}
+
+package_python-pyicu() {
+  depends=('python' 'icu')
+
+  cd PyICU-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyicu() {
+  depends=('python2' 'icu')
+
+  cd PyICU-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-pyicu/repos/community-i686/issue19.patch (from rev 177455, python-pyicu/trunk/issue19.patch)
===================================================================
--- community-i686/issue19.patch	                        (rev 0)
+++ community-i686/issue19.patch	2016-05-30 06:19:24 UTC (rev 177456)
@@ -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):

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2016-05-30 06:18:57 UTC (rev 177455)
+++ community-x86_64/PKGBUILD	2016-05-30 06:19:24 UTC (rev 177456)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Jonathan Liu <net147 at gmail.com>
-
-pkgbase=python-pyicu
-pkgname=('python-pyicu' 'python2-pyicu')
-pkgver=1.9.2
-pkgrel=3
-pkgdesc="Python binding for ICU"
-arch=('i686' 'x86_64')
-license=('MIT')
-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')
-
-prepare() {
-  cp -a PyICU-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir/PyICU-$pkgver"
-  python setup.py build
-
-  cd "$srcdir/PyICU-$pkgver-py2"
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir/PyICU-$pkgver"
-  python setup.py test
-
-  cd "$srcdir/PyICU-$pkgver-py2"
-  python2 setup.py test
-}
-
-package_python-pyicu() {
-  depends=('python' 'icu')
-
-  cd PyICU-$pkgver
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python2-pyicu() {
-  depends=('python2' 'icu')
-
-  cd PyICU-$pkgver-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-pyicu/repos/community-x86_64/PKGBUILD (from rev 177455, python-pyicu/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-05-30 06:19:24 UTC (rev 177456)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+
+pkgbase=python-pyicu
+pkgname=('python-pyicu' 'python2-pyicu')
+pkgver=1.9.3
+pkgrel=1
+pkgdesc="Python binding for ICU"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="http://pyicu.osafoundation.org/"
+makedepends=('python-setuptools' 'python2-setuptools' 'icu')
+checkdepends=('python-fonttools' 'python2-fonttools')
+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}
+}
+
+build() {
+  cd "$srcdir/PyICU-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/PyICU-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/PyICU-$pkgver"
+  python setup.py test
+
+  cd "$srcdir/PyICU-$pkgver-py2"
+  python2 setup.py test
+}
+
+package_python-pyicu() {
+  depends=('python' 'icu')
+
+  cd PyICU-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyicu() {
+  depends=('python2' 'icu')
+
+  cd PyICU-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-pyicu/repos/community-x86_64/issue19.patch (from rev 177455, python-pyicu/trunk/issue19.patch)
===================================================================
--- community-x86_64/issue19.patch	                        (rev 0)
+++ community-x86_64/issue19.patch	2016-05-30 06:19:24 UTC (rev 177456)
@@ -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