Date: Thursday, August 10, 2017 @ 17:28:19 Author: felixonmars Revision: 249743
archrelease: copy trunk to community-any Added: python-pytest-xdist/repos/community-any/PKGBUILD (from rev 249742, python-pytest-xdist/trunk/PKGBUILD) Deleted: python-pytest-xdist/repos/community-any/PKGBUILD ----------+ PKGBUILD | 118 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-08-10 17:27:59 UTC (rev 249742) +++ PKGBUILD 2017-08-10 17:28:19 UTC (rev 249743) @@ -1,59 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-pytest-xdist -pkgname=('python-pytest-xdist' 'python2-pytest-xdist') -pkgver=1.18.2 -pkgrel=1 -pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes' -arch=('any') -license=('MIT') -url='https://bitbucket.org/pytest-dev/pytest-xdist' -makedepends=('python-pytest' 'python2-pytest' 'python-setuptools_scm' 'python2-setuptools_scm' - 'python-execnet' 'python2-execnet') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz") -sha512sums=('0f7e6d004386ef07fcfacc4fa221cfee320319433937a7dac494739a0661223739d55072d4675d591461ca3eaa4b4ae7fb5ddd5c18d70b97b477018951ce37ac') - -prepare() { - cp -a pytest-xdist-$pkgver{,-py2} - - export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver -} - -build() { - cd "$srcdir"/pytest-xdist-$pkgver - python setup.py build - - cd "$srcdir"/pytest-xdist-$pkgver-py2 - python2 setup.py build -} - -check() { - # Hack entry points by installing it - # https://github.com/pytest-dev/pytest-xdist/issues/163 - - cd "$srcdir"/pytest-xdist-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test || warning "Tests failed" - - cd "$srcdir"/pytest-xdist-$pkgver-py2 - python2 setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2 || warning "Tests failed" -} - -package_python-pytest-xdist() { - depends=('python-pytest' 'python-execnet') - - cd pytest-xdist-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-pytest-xdist() { - depends=('python2-pytest' 'python2-execnet') - - cd pytest-xdist-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} -# vim:set ts=2 sw=2 et: Copied: python-pytest-xdist/repos/community-any/PKGBUILD (from rev 249742, python-pytest-xdist/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-08-10 17:28:19 UTC (rev 249743) @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-pytest-xdist +pkgname=('python-pytest-xdist' 'python2-pytest-xdist') +pkgver=1.19.1 +pkgrel=1 +pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes' +arch=('any') +license=('MIT') +url='https://bitbucket.org/pytest-dev/pytest-xdist' +makedepends=('python-pytest' 'python2-pytest' 'python-setuptools_scm' 'python2-setuptools_scm' + 'python-execnet' 'python2-execnet') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz") +sha512sums=('3c61f7f23bcb0f4fa761c0ab77b48117452c4f4db53699cb55ccc62a28279e15356d6f9cbd7b9f14fc69ae981fac4f18bcac3d214149d8ecef6a02d2293c6ca6') + +prepare() { + cp -a pytest-xdist-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd "$srcdir"/pytest-xdist-$pkgver + python setup.py build + + cd "$srcdir"/pytest-xdist-$pkgver-py2 + python2 setup.py build +} + +check() { + # Hack entry points by installing it + # https://github.com/pytest-dev/pytest-xdist/issues/163 + + cd "$srcdir"/pytest-xdist-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test || warning "Tests failed" + + cd "$srcdir"/pytest-xdist-$pkgver-py2 + python2 setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2 || warning "Tests failed" +} + +package_python-pytest-xdist() { + depends=('python-pytest' 'python-execnet') + + cd pytest-xdist-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pytest-xdist() { + depends=('python2-pytest' 'python2-execnet') + + cd pytest-xdist-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +# vim:set ts=2 sw=2 et: