Date: Friday, September 5, 2014 @ 14:47:42 Author: fyan Revision: 118340
archrelease: copy trunk to community-any Added: python-pytest/repos/community-any/PKGBUILD (from rev 118339, python-pytest/trunk/PKGBUILD) Deleted: python-pytest/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-09-05 12:47:24 UTC (rev 118339) +++ PKGBUILD 2014-09-05 12:47:42 UTC (rev 118340) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@gmail.com> -# Contributor: Felix Kaiser <felix.kai...@fxkr.net> - -pkgbase=python-pytest -pkgname=('python-pytest' 'python2-pytest') -pkgver=2.6.1 -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') -checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-twisted' 'python2-twisted' 'python-mock' 'python2-mock' 'python-yaml' 'python2-yaml' 'python-pexpect' 'python2-pexpect') -source=("http://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.tar.gz") -sha512sums=('1bfbe27491800943484616a37cfe0f2f8677e3b2a25aee19f842bdf66a9c0205af8c2aecaeb50823970ab9f7042b1bb9115e3c4d689fe568a17a062c50ead829') - -prepare() { - cp -r pytest-${pkgver}{,-py2} -} - -build() { - cd "$srcdir/pytest-${pkgver}" - python setup.py build - - cd "$srcdir/pytest-${pkgver}-py2" - python2 setup.py build -} - -check() { - cd "$srcdir/pytest-${pkgver}" - python setup.py test - - cd "$srcdir/pytest-${pkgver}-py2" - python2 setup.py test -} - -package_python-pytest() { - depends=('python' 'python-py' 'python-setuptools') - - 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' 'python2-py' 'python2-setuptools') - - 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" "${pkgdir}/usr/bin/py.test2" -} - Copied: python-pytest/repos/community-any/PKGBUILD (from rev 118339, python-pytest/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-09-05 12:47:42 UTC (rev 118340) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@gmail.com> +# Contributor: Felix Kaiser <felix.kai...@fxkr.net> + +pkgbase=python-pytest +pkgname=('python-pytest' 'python2-pytest') +pkgver=2.6.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') +checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-twisted' 'python2-twisted' 'python-mock' 'python2-mock' 'python-yaml' 'python2-yaml' 'python-pexpect' 'python2-pexpect') +source=("http://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.tar.gz") +sha512sums=('cfe62ea2ddb05f7295028e5527b146eef8561132afdca526df8c5eb5ddf37b096aee38f4015fcfdecb47b62ce9873d006cb075d3087a74b3544d2d496f730bd7') + +prepare() { + cp -a pytest-${pkgver}{,-py2} +} + +build() { + cd "$srcdir/pytest-${pkgver}" + python setup.py build + + cd "$srcdir/pytest-${pkgver}-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/pytest-${pkgver}" + python setup.py test + + cd "$srcdir/pytest-${pkgver}-py2" + python2 setup.py test +} + +package_python-pytest() { + depends=('python' 'python-py' 'python-setuptools') + + 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' 'python2-py' 'python2-setuptools') + + 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" "${pkgdir}/usr/bin/py.test2" +} +