mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 17:33:20 +08:00
[skip-ci] python-txaio: removed unused patch
This commit is contained in:
parent
1ea8b6dc1c
commit
f877a76007
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user