[arch-commits] Commit in python-txaio/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 9 22:14:44 UTC 2019
Date: Saturday, November 9, 2019 @ 22:14:43
Author: arojas
Revision: 524912
Drop python2
Modified:
python-txaio/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++-----------------------
1 file changed, 5 insertions(+), 23 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-09 22:13:20 UTC (rev 524911)
+++ PKGBUILD 2019-11-09 22:14:43 UTC (rev 524912)
@@ -1,8 +1,7 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Anatol Pomozov
-pkgbase=python-txaio
-pkgname=(python-txaio python2-txaio)
+pkgname=python-txaio
pkgver=18.8.1
pkgrel=3
pkgdesc='Compatibility API between asyncio/Twisted/Trollius'
@@ -9,8 +8,9 @@
arch=('any')
url="https://github.com/crossbario/txaio"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python-mock' 'python-twisted' 'python2-pytest' 'python2-mock' 'python2-twisted')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-mock' 'python-twisted')
source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz"
'make-pytest-happy.patch')
sha512sums=('5aa0024b32211534b0c673da13b092ba08e15195b3b016bc21104618605d5c0b49096fa2795e13d9d5c4247defa1d72f903cbcc8d00a21359825224faab64b64'
@@ -25,8 +25,6 @@
# https://github.com/crossbario/txaio/issues/140
patch -Np1 -d txaio-$pkgver <make-pytest-happy.patch
- 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
}
@@ -34,31 +32,15 @@
build() {
cd "$srcdir"/txaio-$pkgver
python setup.py build
-
- cd "$srcdir"/txaio-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/txaio-$pkgver
python -m pytest
-
- cd "$srcdir"/txaio-$pkgver-py2
- python2 -m pytest
}
-package_python-txaio() {
- depends=('python-six')
-
+package() {
cd txaio-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-txaio() {
- depends=('python2-six')
-
- cd txaio-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list