diff options
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r-- | abs/core/python_modules/python-pytest-runner/PKGBUILD | 52 | ||||
-rw-r--r-- | abs/core/python_modules/python-pytest-runner/__changelog | 2 |
2 files changed, 54 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pytest-runner/PKGBUILD b/abs/core/python_modules/python-pytest-runner/PKGBUILD new file mode 100644 index 0000000..5d106ce --- /dev/null +++ b/abs/core/python_modules/python-pytest-runner/PKGBUILD @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> + +pkgbase=python-pytest-runner +pkgname=('python2-pytest-runner') +pkgver=2.11.1 +pkgrel=1 +pkgdesc="Invoke py.test as distutils command with dependency resolution" +arch=('any') +license=('MIT') +url="https://github.com/pytest-dev/pytest-runner" +makedepends=('python2-pytest' 'python2-setuptools-scm' 'git') +source=("git+https://github.com/pytest-dev/pytest-runner.git#tag=$pkgver") +sha512sums=('SKIP') + +prepare() { + cp -a pytest-runner{,-py2} +} + +build() { +# cd "$srcdir"/pytest-runner +# python setup.py build + + cd "$srcdir"/pytest-runner-py2 + python2 setup.py build +} + +check() { +# cd "$srcdir"/pytest-runner +# python setup.py egg_info +# PYTHONPATH="$PWD" pytest + + cd "$srcdir"/pytest-runner-py2 + python2 setup.py egg_info + PYTHONPATH="$PWD" pytest2 +} + +package_python-pytest-runner() { + depends=('python-pytest') + + cd pytest-runner + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pytest-runner() { + depends=('python2-pytest') + + cd pytest-runner-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/abs/core/python_modules/python-pytest-runner/__changelog b/abs/core/python_modules/python-pytest-runner/__changelog new file mode 100644 index 0000000..4f818ef --- /dev/null +++ b/abs/core/python_modules/python-pytest-runner/__changelog @@ -0,0 +1,2 @@ +PKGBUILD: don't build py 3 stuff + |