Date: Friday, March 23, 2018 @ 14:20:01 Author: felixonmars Revision: 311329
archrelease: copy trunk to community-any Added: python-pytest/repos/community-any/PKGBUILD (from rev 311328, python-pytest/trunk/PKGBUILD) Deleted: python-pytest/repos/community-any/PKGBUILD ----------+ PKGBUILD | 128 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 65 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-03-23 14:19:38 UTC (rev 311328) +++ PKGBUILD 2018-03-23 14:20:01 UTC (rev 311329) @@ -1,63 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Felix Kaiser <felix.kai...@fxkr.net> - -pkgbase=python-pytest -pkgname=('python-pytest' 'python2-pytest') -pkgver=3.4.2 -pkgrel=1 -pkgdesc="Simple powerful testing with Python" -arch=('any') -license=('MIT') -url="http://pytest.org/" -makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-pluggy' - 'python2-pluggy' 'python-attrs' 'python2-attrs' 'python2-funcsigs') -checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-tox' - 'python2-tox' 'python-yaml' 'python2-yaml' 'python-pytest-xdist' - 'python2-pytest-xdist' 'python-twisted' 'python2-twisted' 'python-requests' - 'python2-requests' 'python-hypothesis' 'python2-hypothesis') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz") -sha512sums=('6765325353122ebfe1cc03798d64009ef05dbcaa9d8d5dfa6b9d63f8b81282e73c7e95cd17c7668f70f2cb50e222dbf93a31dc39947c1d2552a352fab7b192b3') - -prepare() { - cp -a pytest-$pkgver{,-py2} - - export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver -} - -build() { - cd "$srcdir"/pytest-$pkgver - python setup.py build - - cd "$srcdir"/pytest-$pkgver-py2 - python2 setup.py build -} - -check() { - # Expected failure due to xdist, also present on official travis - - cd "$srcdir"/pytest-$pkgver - python setup.py test || warning "Tests failed" - - cd "$srcdir"/pytest-$pkgver-py2 - python2 setup.py test || warning "Tests failed" -} - -package_python-pytest() { - depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs') - - cd pytest-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-pytest() { - depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' 'python2-funcsigs') - - cd pytest-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - mv "$pkgdir"/usr/bin/py.test{,2} - mv "$pkgdir"/usr/bin/pytest{,2} -} Copied: python-pytest/repos/community-any/PKGBUILD (from rev 311328, python-pytest/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-03-23 14:20:01 UTC (rev 311329) @@ -0,0 +1,65 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Felix Kaiser <felix.kai...@fxkr.net> + +pkgbase=python-pytest +pkgname=('python-pytest' 'python2-pytest') +pkgver=3.5.0 +pkgrel=1 +pkgdesc="Simple powerful testing with Python" +arch=('any') +license=('MIT') +url="http://pytest.org/" +makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-pluggy' + 'python2-pluggy' 'python-attrs' 'python2-attrs' 'python-more-itertools' + 'python2-more-itertools' 'python2-funcsigs') +checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-tox' + 'python2-tox' 'python-yaml' 'python2-yaml' 'python-pytest-xdist' + 'python2-pytest-xdist' 'python-twisted' 'python2-twisted' 'python-requests' + 'python2-requests' 'python-hypothesis' 'python2-hypothesis') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz") +sha512sums=('3e67f411b45f0cce6921d65926b3c6b7bcf6169a8e96eb8f74465d795a49d690c7027db3cb3147868ce238d5b416a6e87de27728598e4a526bf6bbb7a5506913') + +prepare() { + cp -a pytest-$pkgver{,-py2} + + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver +} + +build() { + cd "$srcdir"/pytest-$pkgver + python setup.py build + + cd "$srcdir"/pytest-$pkgver-py2 + python2 setup.py build +} + +check() { + # Expected failure due to xdist, also present on official travis + + cd "$srcdir"/pytest-$pkgver + python setup.py test || warning "Tests failed" + + cd "$srcdir"/pytest-$pkgver-py2 + python2 setup.py test || warning "Tests failed" +} + +package_python-pytest() { + depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools') + + cd pytest-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pytest() { + depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' + 'python2-more-itertools' 'python2-funcsigs') + + cd pytest-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + mv "$pkgdir"/usr/bin/py.test{,2} + mv "$pkgdir"/usr/bin/pytest{,2} +}