[arch-commits] Commit in python-whelk/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Wed Nov 6 15:50:02 UTC 2019
Date: Wednesday, November 6, 2019 @ 15:50:01
Author: felixonmars
Revision: 524405
archrelease: copy trunk to community-staging-any
Added:
python-whelk/repos/community-staging-any/
python-whelk/repos/community-staging-any/PKGBUILD
(from rev 524404, python-whelk/trunk/PKGBUILD)
python-whelk/repos/community-staging-any/python-3.8.patch
(from rev 524404, python-whelk/trunk/python-3.8.patch)
------------------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
python-3.8.patch | 15 +++++++++++++++
2 files changed, 50 insertions(+)
Copied: python-whelk/repos/community-staging-any/PKGBUILD (from rev 524404, python-whelk/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-06 15:50:01 UTC (rev 524405)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-whelk
+pkgver=2.7.1
+pkgrel=4
+pkgdesc="Easy access to shell commands from python"
+arch=('any')
+license=('custom:zlib')
+url="https://pypi.python.org/pypi/whelk"
+depends=('python')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/seveas/whelk/archive/$pkgver.tar.gz"
+ python-3.8.patch)
+sha512sums=('39b73ed09a0d2442cdde5b8bae72805571a172c6acfa3f652c8cb125d3a400f2538fe6534179f95383d321e8975b6127115616372c60c736e8cd8ceba00ef093'
+ 'cb1f1cd86c78fce28e1515966547d66eaec9d474352b03710a83b5b4977cee650ee32501aea135c78a4065c40711ab9e8d32182ea770116c2b472fa94473ada9')
+
+prepare() {
+ cd whelk-$pkgver
+ patch -Np1 -i ../python-3.8.patch
+}
+
+build() {
+ cd whelk-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd whelk-$pkgver
+ python -munittest discover
+}
+
+package() {
+ cd whelk-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
Copied: python-whelk/repos/community-staging-any/python-3.8.patch (from rev 524404, python-whelk/trunk/python-3.8.patch)
===================================================================
--- community-staging-any/python-3.8.patch (rev 0)
+++ community-staging-any/python-3.8.patch 2019-11-06 15:50:01 UTC (rev 524405)
@@ -0,0 +1,15 @@
+diff -upr whelk-2.7.1.orig/whelk/subprocess_34.py whelk-2.7.1/whelk/subprocess_34.py
+--- whelk-2.7.1.orig/whelk/subprocess_34.py 2017-04-18 16:01:38.000000000 +0300
++++ whelk-2.7.1/whelk/subprocess_34.py 2019-11-06 17:46:00.946759802 +0200
+@@ -92,7 +92,10 @@ class Popen(subprocess.Popen):
+ raise TimeoutExpired(self.args, orig_timeout)
+
+ ready = selector.select(timeout)
+- self._check_timeout(endtime, orig_timeout)
++ if sys.version_info[:2] >= (3,8):
++ self._check_timeout(endtime, orig_timeout, stdout, stderr)
++ else:
++ self._check_timeout(endtime, orig_timeout)
+
+ # XXX Rewrite these to use non-blocking I/O on the file
+ # objects; they are no longer using C stdio!
More information about the arch-commits
mailing list