Date: Monday, July 30, 2018 @ 03:23:35 Author: felixonmars Revision: 364904
archrelease: copy trunk to community-staging-any Added: python-txaio/repos/community-staging-any/PKGBUILD (from rev 364903, python-txaio/trunk/PKGBUILD) Deleted: python-txaio/repos/community-staging-any/PKGBUILD ----------+ PKGBUILD | 118 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-07-30 03:14:57 UTC (rev 364903) +++ PKGBUILD 2018-07-30 03:23:35 UTC (rev 364904) @@ -1,59 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Anatol Pomozov - -pkgbase=python-txaio -pkgname=(python-txaio python2-txaio) -pkgver=18.7.1 -pkgrel=1 -pkgdesc='Compatibility API between asyncio/Twisted/Trollius' -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') -source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz") -sha512sums=('d88cc8862340d269470e91a3e2d60c5c3ca6e169e838069f690e35bbf07d3db516b59e0e76cb83cfd1217ca73c0705fdae451df3d9c69adc421579eb2f1b68d9') - -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} - - # 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 - - 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') - - 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 -} Copied: python-txaio/repos/community-staging-any/PKGBUILD (from rev 364903, python-txaio/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-07-30 03:23:35 UTC (rev 364904) @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Anatol Pomozov + +pkgbase=python-txaio +pkgname=(python-txaio python2-txaio) +pkgver=18.7.1 +pkgrel=1 +pkgdesc='Compatibility API between asyncio/Twisted/Trollius' +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') +source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz") +sha512sums=('d88cc8862340d269470e91a3e2d60c5c3ca6e169e838069f690e35bbf07d3db516b59e0e76cb83cfd1217ca73c0705fdae451df3d9c69adc421579eb2f1b68d9') + +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} + + # 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 + + 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') + + 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 +}