diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-07-16 15:45:00 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-07-16 15:45:00 (GMT) |
commit | 1d8a0047671e426bf4529df3ab8361dde02e4596 (patch) | |
tree | 07fe1b8ff51c4a84cdfd69d00d8daf43e6b26f91 /abs/core | |
parent | f8b2cc5b6a69d47f762d36e8beb3f3cdeffb512a (diff) | |
download | linhes_pkgbuild-1d8a0047671e426bf4529df3ab8361dde02e4596.zip linhes_pkgbuild-1d8a0047671e426bf4529df3ab8361dde02e4596.tar.gz linhes_pkgbuild-1d8a0047671e426bf4529df3ab8361dde02e4596.tar.bz2 |
python-pytest-runner: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core')
-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 + |