Date: Tuesday, July 16, 2019 @ 06:30:03 Author: felixonmars Revision: 489902
archrelease: copy trunk to community-any Added: python-pytest/repos/community-any/PKGBUILD (from rev 489901, python-pytest/trunk/PKGBUILD) Deleted: python-pytest/repos/community-any/PKGBUILD ----------+ PKGBUILD | 134 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 67 insertions(+), 67 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-07-16 06:29:47 UTC (rev 489901) +++ PKGBUILD 2019-07-16 06:30:03 UTC (rev 489902) @@ -1,67 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Felix Kaiser <felix.kai...@fxkr.net> - -pkgbase=python-pytest -pkgname=('python-pytest' 'python2-pytest') -pkgver=4.6.2 -pkgrel=1 -pkgdesc="Simple powerful testing with Python" -arch=('any') -license=('MIT') -url="http://pytest.org/" -makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-py' 'python2-py' 'python-pluggy' - 'python2-pluggy' 'python-attrs' 'python2-attrs' 'python-more-itertools' - 'python2-more-itertools' 'python-atomicwrites' 'python2-atomicwrites' - 'python2-funcsigs' 'python2-pathlib2' 'python-wcwidth' 'python2-wcwidth') -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=('cb84885bd4ab4e1a430870c50e657554943b76fcfd91c29ecc595c29f4b506a61cf11eff97c410ce75676ba4bd7c2a677a2f10e280b90bf50cefe2e2793c0a5a') - -prepare() { - sed -i 's/==0/>=0/' pytest-$pkgver/setup.py - 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() { - # Skip test_collect_pyargs_with_testpaths because it mangles PYTHONPATH - - cd "$srcdir"/pytest-$pkgver - PYTHONPATH="$PWD"/build/lib python src/pytest.py -k 'not test_collect_pyargs_with_testpaths' - - cd "$srcdir"/pytest-$pkgver-py2 - PYTHONPATH="$PWD"/build/lib python2 src/pytest.py -k 'not test_collect_pyargs_with_testpaths' -} - -package_python-pytest() { - depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools' - 'python-atomicwrites' 'python-wcwidth') - - 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-wcwidth' - 'python2-more-itertools' 'python2-atomicwrites' 'python2-funcsigs' 'python2-pathlib2') - - 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 489901, python-pytest/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-07-16 06:30:03 UTC (rev 489902) @@ -0,0 +1,67 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Felix Kaiser <felix.kai...@fxkr.net> + +pkgbase=python-pytest +pkgname=('python-pytest' 'python2-pytest') +pkgver=4.6.3 +pkgrel=1 +pkgdesc="Simple powerful testing with Python" +arch=('any') +license=('MIT') +url="http://pytest.org/" +makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-py' 'python2-py' 'python-pluggy' + 'python2-pluggy' 'python-attrs' 'python2-attrs' 'python-more-itertools' + 'python2-more-itertools' 'python-atomicwrites' 'python2-atomicwrites' + 'python2-funcsigs' 'python2-pathlib2' 'python-wcwidth' 'python2-wcwidth') +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=('4421ed9786c275b02a94528f98ca915de419151c6a7ea2d6c0b465c49c2ba1beb4a622269bdb5a66e29fa83b9a476481e850de51ebb980c4d44d4fc8e744a4fa') + +prepare() { + sed -i 's/==0/>=0/' pytest-$pkgver/setup.py + 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() { + # Skip test_collect_pyargs_with_testpaths because it mangles PYTHONPATH + + cd "$srcdir"/pytest-$pkgver + PYTHONPATH="$PWD"/build/lib python src/pytest.py -k 'not test_collect_pyargs_with_testpaths' + + cd "$srcdir"/pytest-$pkgver-py2 + PYTHONPATH="$PWD"/build/lib python2 src/pytest.py -k 'not test_collect_pyargs_with_testpaths' +} + +package_python-pytest() { + depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools' + 'python-atomicwrites' 'python-wcwidth') + + 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-wcwidth' + 'python2-more-itertools' 'python2-atomicwrites' 'python2-funcsigs' 'python2-pathlib2') + + 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} +}