[arch-commits] Commit in python-blist/repos/community-staging-x86_64 (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 04:01:21 UTC 2019
Date: Monday, November 4, 2019 @ 04:01:20
Author: felixonmars
Revision: 523092
archrelease: copy trunk to community-staging-x86_64
Added:
python-blist/repos/community-staging-x86_64/PKGBUILD
(from rev 523091, python-blist/trunk/PKGBUILD)
python-blist/repos/community-staging-x86_64/python3.7.patch
(from rev 523091, python-blist/trunk/python3.7.patch)
Deleted:
python-blist/repos/community-staging-x86_64/PKGBUILD
python-blist/repos/community-staging-x86_64/python3.7.patch
-----------------+
PKGBUILD | 118 +++++++++++++++++++++++++++---------------------------
python3.7.patch | 32 +++++++-------
2 files changed, 75 insertions(+), 75 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-04 04:00:58 UTC (rev 523091)
+++ PKGBUILD 2019-11-04 04:01:20 UTC (rev 523092)
@@ -1,59 +0,0 @@
-# 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>
-
-pkgbase=python-blist
-pkgname=('python-blist' 'python2-blist')
-_pkgname=blist
-pkgver=1.3.6
-pkgrel=7
-pkgdesc='List-like type with better asymptotic performance'
-url='http://stutzbachenterprises.com/blist'
-arch=('x86_64')
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/DanielStutzbach/blist/archive/v${pkgver}.tar.gz
- python3.7.patch)
-sha512sums=('f46ded57aeb2a33fc5450420210d015aa37c2fc91034a771dfb1a184ef2655d8e5dc97bee61139059e6211569fcb7358f972071d3830733e9dbb8908e1b0e14c'
- 'ecf08ebbfd39a069e8cd93723fefe3d0ee223d618f8748032927416dd6c813396fa271b20dd74fdaed0369b19046b4d2954b70c77f72258cc5551699eaa1281f')
-
-prepare() {
- (cd $_pkgname-$pkgver; patch -p1 -i ../python3.7.patch)
- cp -ra ${_pkgname}-${pkgver}{,-py2}
-}
-
-build() {
- (cd ${_pkgname}-${pkgver}
- python setup.py build
- )
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py build
- )
-}
-
-check() {
- (cd ${_pkgname}-${pkgver}
- python setup.py test
- )
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py test
- )
-}
-
-package_python-blist() {
- depends=('python')
- 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"
-}
-
-package_python2-blist() {
- depends=('python2')
- cd ${_pkgname}-${pkgver}-py2
- python2 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/PKGBUILD (from rev 523091, python-blist/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-04 04:01:20 UTC (rev 523092)
@@ -0,0 +1,59 @@
+# 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>
+
+pkgbase=python-blist
+pkgname=('python-blist' 'python2-blist')
+_pkgname=blist
+pkgver=1.3.6
+pkgrel=8
+pkgdesc='List-like type with better asymptotic performance'
+url='http://stutzbachenterprises.com/blist'
+arch=('x86_64')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/DanielStutzbach/blist/archive/v${pkgver}.tar.gz
+ python3.7.patch)
+sha512sums=('f46ded57aeb2a33fc5450420210d015aa37c2fc91034a771dfb1a184ef2655d8e5dc97bee61139059e6211569fcb7358f972071d3830733e9dbb8908e1b0e14c'
+ 'ecf08ebbfd39a069e8cd93723fefe3d0ee223d618f8748032927416dd6c813396fa271b20dd74fdaed0369b19046b4d2954b70c77f72258cc5551699eaa1281f')
+
+prepare() {
+ (cd $_pkgname-$pkgver; patch -p1 -i ../python3.7.patch)
+ cp -ra ${_pkgname}-${pkgver}{,-py2}
+}
+
+build() {
+ (cd ${_pkgname}-${pkgver}
+ python setup.py build
+ )
+ (cd ${_pkgname}-${pkgver}-py2
+ python2 setup.py build
+ )
+}
+
+check() {
+ (cd ${_pkgname}-${pkgver}
+ python setup.py test
+ )
+ (cd ${_pkgname}-${pkgver}-py2
+ python2 setup.py test
+ )
+}
+
+package_python-blist() {
+ depends=('python')
+ 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"
+}
+
+package_python2-blist() {
+ depends=('python2')
+ cd ${_pkgname}-${pkgver}-py2
+ python2 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:
Deleted: python3.7.patch
===================================================================
--- python3.7.patch 2019-11-04 04:00:58 UTC (rev 523091)
+++ python3.7.patch 2019-11-04 04:01:20 UTC (rev 523092)
@@ -1,16 +0,0 @@
-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):
Copied: python-blist/repos/community-staging-x86_64/python3.7.patch (from rev 523091, python-blist/trunk/python3.7.patch)
===================================================================
--- python3.7.patch (rev 0)
+++ python3.7.patch 2019-11-04 04:01:20 UTC (rev 523092)
@@ -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