Date: Thursday, March 26, 2015 @ 15:05:17 Author: fyan Revision: 129962
archrelease: copy trunk to community-any Added: python-pytest/repos/community-any/PKGBUILD (from rev 129961, python-pytest/trunk/PKGBUILD) Deleted: python-pytest/repos/community-any/PKGBUILD ----------+ PKGBUILD | 110 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-03-26 14:05:04 UTC (rev 129961) +++ PKGBUILD 2015-03-26 14:05:17 UTC (rev 129962) @@ -1,55 +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=2.6.4 -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=('b17f79b0f3c0f6051bedb0d7acadc5d569b3b90b2fce2eddda06a21b654f6077f934aaa9617152d6b2f8babb95c37494f18e050841af601f7f37de25c15b32fd') - -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" -} - Copied: python-pytest/repos/community-any/PKGBUILD (from rev 129961, python-pytest/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-03-26 14:05:17 UTC (rev 129962) @@ -0,0 +1,55 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Felix Kaiser <felix.kai...@fxkr.net> + +pkgbase=python-pytest +pkgname=('python-pytest' 'python2-pytest') +pkgver=2.7.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') +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=('80c7a804895ac4dad2e4f47de130df9159076c63016fe64eefcea92d5bff339fcbf5c103258ade7e4068566caf1508d2d737f449a934a1e2673533e4ed7412cb') + +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" +} +