[arch-commits] Commit in python-blist/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 19 20:25:09 UTC 2020


    Date: Thursday, November 19, 2020 @ 20:25:09
  Author: felixonmars
Revision: 757727

archrelease: copy trunk to community-staging-x86_64

Added:
  python-blist/repos/community-staging-x86_64/
  python-blist/repos/community-staging-x86_64/PKGBUILD
    (from rev 757726, python-blist/trunk/PKGBUILD)
  python-blist/repos/community-staging-x86_64/python3.7.patch
    (from rev 757726, python-blist/trunk/python3.7.patch)

-----------------+
 PKGBUILD        |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 python3.7.patch |   16 ++++++++++++++++
 2 files changed, 62 insertions(+)

Copied: python-blist/repos/community-staging-x86_64/PKGBUILD (from rev 757726, python-blist/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-19 20:25:09 UTC (rev 757727)
@@ -0,0 +1,46 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: Chris Baker <baker.chris.3 at gmail.com>
+
+pkgname=python-blist
+_pkgname=blist
+pkgver=1.3.6
+pkgrel=9
+pkgdesc='List-like type with better asymptotic performance'
+url='http://stutzbachenterprises.com/blist'
+arch=('x86_64')
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/DanielStutzbach/blist/archive/v${pkgver}.tar.gz
+        python3.7.patch
+        blist-python3.9.patch::https://github.com/DanielStutzbach/blist/pull/91.patch)
+sha512sums=('f46ded57aeb2a33fc5450420210d015aa37c2fc91034a771dfb1a184ef2655d8e5dc97bee61139059e6211569fcb7358f972071d3830733e9dbb8908e1b0e14c'
+            'ecf08ebbfd39a069e8cd93723fefe3d0ee223d618f8748032927416dd6c813396fa271b20dd74fdaed0369b19046b4d2954b70c77f72258cc5551699eaa1281f'
+            'd207959966784ae94f1571f661f7de20ddb006cd103917ee571e74095a4939829762569c5dcfc4a3b605d50a3b6f5b96514c4af0108ffd39744f57936dd29415')
+
+prepare() {
+  patch -d $_pkgname-$pkgver -p1 < python3.7.patch
+  patch -d $_pkgname-$pkgver -p1 < blist-python3.9.patch
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py test
+  )
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --skip-build -O1 --root="${pkgdir}"
+  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:

Copied: python-blist/repos/community-staging-x86_64/python3.7.patch (from rev 757726, python-blist/trunk/python3.7.patch)
===================================================================
--- community-staging-x86_64/python3.7.patch	                        (rev 0)
+++ community-staging-x86_64/python3.7.patch	2020-11-19 20:25:09 UTC (rev 757727)
@@ -0,0 +1,16 @@
+diff --git a/blist/_sortedlist.py b/blist/_sortedlist.py
+index b34f69e..d6143c4 100644
+--- a/blist/_sortedlist.py
++++ b/blist/_sortedlist.py
+@@ -420,7 +420,10 @@ class _setmixin(object):
+     def __iter__(self):
+         it = super(_setmixin, self).__iter__()
+         while True:
+-            item = next(it)
++            try:
++                item = next(it)
++            except StopIteration:
++                return
+             n = len(self)
+             yield item
+             if n != len(self):



More information about the arch-commits mailing list