Date: Thursday, December 13, 2018 @ 19:09:57 Author: felixonmars Revision: 416086
archrelease: copy trunk to community-any Added: python-pytest-xdist/repos/community-any/PKGBUILD (from rev 416085, python-pytest-xdist/trunk/PKGBUILD) Deleted: python-pytest-xdist/repos/community-any/PKGBUILD ----------+ PKGBUILD | 116 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 58 insertions(+), 58 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-12-13 19:09:48 UTC (rev 416085) +++ PKGBUILD 2018-12-13 19:09:57 UTC (rev 416086) @@ -1,58 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-pytest-xdist -pkgname=('python-pytest-xdist' 'python2-pytest-xdist') -pkgver=1.24.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' 'python-pytest-forked' 'python2-pytest-forked' - 'python-filelock' 'python2-filelock') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz") -sha512sums=('1998c08ccc9d528ee676dcb174667fe17f5fdad8461392276c506ab7b29fe040b2cd246e22ff078d4637e4bb19aca2c17a68446d344541281fea528fa69d35ce') - -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 - - cd "$srcdir"/pytest-xdist-$pkgver - python setup.py install --root="$PWD/tmp_install" --optimize=1 - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" py.test - - 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 -} - -package_python-pytest-xdist() { - depends=('python-pytest-forked' '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-forked' '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 416085, python-pytest-xdist/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-12-13 19:09:57 UTC (rev 416086) @@ -0,0 +1,58 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-pytest-xdist +pkgname=('python-pytest-xdist' 'python2-pytest-xdist') +pkgver=1.25.0 +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' 'python-pytest-forked' 'python2-pytest-forked' + 'python-filelock' 'python2-filelock') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz") +sha512sums=('0de788107dae37e1cd845b0f170d06fe0c560a7f4e2caa95069af78ff0ca2e4eab11838e17979e0482057a668f1741c1f6c8be35532309aca3d2c9caaecab527') + +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 + + cd "$srcdir"/pytest-xdist-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" py.test + + 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 +} + +package_python-pytest-xdist() { + depends=('python-pytest-forked' '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-forked' '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: