Date: Saturday, September 6, 2014 @ 04:13:02 Author: fyan Revision: 118448
addpkg: python-tox 1.7.2-3 Added: python-tox/ python-tox/repos/ python-tox/trunk/ python-tox/trunk/PKGBUILD ----------+ PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) Added: python-tox/trunk/PKGBUILD =================================================================== --- python-tox/trunk/PKGBUILD (rev 0) +++ python-tox/trunk/PKGBUILD 2014-09-06 02:13:02 UTC (rev 118448) @@ -0,0 +1,57 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Weißschuh <thomas t-8ch.de> +# Contributor: George Brooke <george+arch....@george-brooke.co.uk> +# Contributor: Sebastian Wiesner <lunaryorn googlemail com> + +pkgbase=python-tox +pkgname=(python-tox python2-tox) +pkgver=1.7.2 +pkgrel=3 +pkgdesc='Python virtualenv management and testing tool' +arch=('any') +url='http://testrun.org/tox/latest/' +license=('GPL2') +makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-virtualenv' 'python2-virtualenv') +checkdepends=('python-pytest' 'python2-pytest') +source=("http://pypi.python.org/packages/source/t/tox/tox-${pkgver}.tar.gz") +sha256sums=('267fc86871ae2a398d3e7b4b03e8113b3305533c72ef8de616cbc7258039f1f8') + +prepare() { + cp -a tox-$pkgver{,-py2} +} + +build() { + cd "$srcdir/tox-$pkgver" + python setup.py build + + cd "$srcdir/tox-$pkgver-py2" + python2 setup.py build +} + +check() { + # Not working correctly, as some tests need the "tox" executable + + cd "$srcdir/tox-$pkgver" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test || warning "Tests failed" + + cd "$srcdir/tox-$pkgver-py2" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 || warning "Tests failed" +} + +package_python-tox() { + depends=('python-py' 'python-virtualenv') + + cd "$srcdir/tox-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + ln -s tox "${pkgdir}/usr/bin/tox3" +} + +package_python2-tox() { + depends=('python2-py' 'python2-virtualenv') + + cd "$srcdir/tox-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + mv "${pkgdir}"/usr/bin/tox{,2} + mv "${pkgdir}"/usr/bin/{tox-quickstart,tox2-quickstart} +} Property changes on: python-tox/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property