[arch-commits] Commit in python-txaio/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Jul 20 17:01:44 UTC 2018
Date: Friday, July 20, 2018 @ 17:01:44
Author: eschwartz
Revision: 362621
Make the tests actually run.
Modified:
python-txaio/trunk/PKGBUILD
----------+
PKGBUILD | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-20 15:51:48 UTC (rev 362620)
+++ PKGBUILD 2018-07-20 17:01:44 UTC (rev 362621)
@@ -5,17 +5,21 @@
pkgbase=python-txaio
pkgname=(python-txaio python2-txaio)
pkgver=2.10.0
-pkgrel=1
+pkgrel=2
pkgdesc='Compatibility API between asyncio/Twisted/Trollius'
arch=('any')
-url='https://github.com/tavendo/txaio'
+url="https://github.com/crossbario/txaio"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-twisted' 'python2-twisted')
+checkdepends=('python-pytest' 'python-mock' 'python-twisted' 'python2-pytest' 'python2-mock' 'python2-twisted')
source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz")
sha512sums=('45f85eca04dadc44f47bea0359902965db7c85892303b73d1c227b065965a1e83d8b3e555affcb8b43c6fdbd4d25c8d475d763c8ec8984f3e6fc1ad2befff6c4')
prepare() {
+ # This tests whether pip can install the sdist, and is completely broken
+ # except in their boutique setup. They won't fix it.
+ # https://github.com/crossbario/txaio/issues/77#issuecomment-246276723
+ rm txaio-$pkgver/test/test_packaging.py
cp -a txaio-$pkgver{,-py2}
}
@@ -29,10 +33,10 @@
check() {
cd "$srcdir"/txaio-$pkgver
- python setup.py test
+ python -m pytest
cd "$srcdir"/txaio-$pkgver-py2
- python2 setup.py test
+ python2 -m pytest
}
package_python-txaio() {
More information about the arch-commits
mailing list