[arch-commits] Commit in python-treq/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Aug 1 15:24:36 UTC 2017
Date: Tuesday, August 1, 2017 @ 15:24:35
Author: felixonmars
Revision: 247324
upgpkg: python-treq 17.7.0-1
Modified:
python-treq/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-01 15:13:29 UTC (rev 247323)
+++ PKGBUILD 2017-08-01 15:24:35 UTC (rev 247324)
@@ -3,7 +3,7 @@
pkgbase=python-treq
pkgname=('python-treq' 'python2-treq')
-pkgver=17.3.1
+pkgver=17.7.0
pkgrel=1
pkgdesc="A requests-like API built on top of twisted.web's Agent"
arch=('any')
@@ -12,12 +12,15 @@
makedepends=('python-setuptools' 'python2-setuptools' 'python-incremental' 'python2-incremental'
'python-requests' 'python2-requests' 'python2-pyopenssl' 'python-pyopenssl'
'python-service-identity' 'python2-service-identity' 'python-idna' 'python2-idna'
- 'python-attrs' 'python2-attrs' 'python-twisted' 'python2-twisted')
-checkdepends=('python-mock' 'python2-mock')
+ 'python-attrs' 'python2-attrs' 'python-twisted' 'python2-twisted' 'httpbin'
+ 'python2-httpbin')
+checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/twisted/treq/archive/release-$pkgver.tar.gz")
-sha512sums=('43f166bd499d1ee9993c63a89fefa193aa57e7a37303f267ae80b6fd0d19233426c4bb5e1ce58a72211ee24bd3d318dd0c44c4993a02191862986383e54eeac1')
+sha512sums=('6e38dbf7a005b2d1cd4947cee0f30711ce16cc7731c53de4e489a533a3d76edfdd37b13ce603400c2f66a52378f3a23818248c36c6f940dc5fa10614480627b2')
prepare() {
+ sed -e '1iimport os' -e '/childFDs=/i env=os.environ,' -i treq-release-$pkgver/src/treq/test/local_httpbin/parent.py
+
cp -a treq-release-$pkgver{,-py2}
}
@@ -30,13 +33,11 @@
}
check() {
- # https://github.com/twisted/treq/issues/198
-
cd "$srcdir"/treq-release-$pkgver
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" trial3 treq || warning "Tests failed"
+ python setup.py pytest
cd "$srcdir"/treq-release-$pkgver-py2
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" trial treq || warning "Tests failed"
+ python2 setup.py pytest
}
package_python-treq() {
More information about the arch-commits
mailing list