summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-pytest-runner
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-12-09 14:34:12 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-12-09 14:34:12 (GMT)
commitf06d8e1bedfcf6d424a4736d43f366d95fb33690 (patch)
treea78baa8ac9914820a0c470c391772bcdb9e17b4d /abs/core/python_modules/python-pytest-runner
parentada13c3f17134c5885f686509d128080450efa1b (diff)
parente4b0dec19f02e6d8e995b19a22110cac26f07ac4 (diff)
downloadlinhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.zip
linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.tar.gz
linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-pytest-runner')
-rw-r--r--abs/core/python_modules/python-pytest-runner/PKGBUILD52
-rw-r--r--abs/core/python_modules/python-pytest-runner/__changelog2
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
+