diff --git a/python-txaio/PKGBUILD b/python-txaio/PKGBUILD index 0e6e15476..7c765609f 100644 --- a/python-txaio/PKGBUILD +++ b/python-txaio/PKGBUILD @@ -3,7 +3,7 @@ pkgbase=python-txaio pkgname=(python3-txaio python2-txaio) pkgver=18.8.1 -pkgrel=1 +pkgrel=2 pkgdesc='Compatibility API between asyncio/Twisted/Trollius' arch=('x86_64') url="https://github.com/crossbario/txaio" @@ -19,14 +19,11 @@ prepare() { # https://github.com/crossbario/txaio/issues/77#issuecomment-246276723 rm txaio-$pkgver/test/test_packaging.py cp -a txaio-$pkgver{,-py2} - - # Fix tests on Python 3.7 (https://github.com/crossbario/txaio/issues/134) - sed -i 's/asyncio\.test_utils/test.test_asyncio.utils/' txaio-$pkgver/test/*.py } build() { cd "$srcdir"/txaio-$pkgver - python setup.py build + python3 setup.py build cd "$srcdir"/txaio-$pkgver-py2 python2 setup.py build @@ -34,7 +31,7 @@ build() { check() { cd "$srcdir"/txaio-$pkgver - python -m pytest + python3 -m pytest cd "$srcdir"/txaio-$pkgver-py2 python2 -m pytest @@ -44,7 +41,7 @@ package_python3-txaio() { depends=('python3-six') cd txaio-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python3 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }