summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-10-25 20:33:25 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-10-25 20:33:25 (GMT)
commit7ef31a713847f93b29be3917645ba945c6c9baab (patch)
tree0c955d437779b04174e7eae0a9144c790d2d070c /abs/core
parent33cbbb47416b8b84b686835c67e04157e57a5d8a (diff)
downloadlinhes_pkgbuild-7ef31a713847f93b29be3917645ba945c6c9baab.zip
linhes_pkgbuild-7ef31a713847f93b29be3917645ba945c6c9baab.tar.gz
linhes_pkgbuild-7ef31a713847f93b29be3917645ba945c6c9baab.tar.bz2
python-pytest-runner: 5.2
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-pytest-runner/PKGBUILD31
1 files changed, 15 insertions, 16 deletions
diff --git a/abs/core/python_modules/python-pytest-runner/PKGBUILD b/abs/core/python_modules/python-pytest-runner/PKGBUILD
index 8928aa0..891ce11 100644
--- a/abs/core/python_modules/python-pytest-runner/PKGBUILD
+++ b/abs/core/python_modules/python-pytest-runner/PKGBUILD
@@ -1,44 +1,43 @@
-# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-pytest-runner
pkgname=('python-pytest-runner' 'python2-pytest-runner')
-pkgver=2.11.1
-pkgrel=2
+pkgver=5.2
+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=('python-pytest' 'python-setuptools-scm' 'python2-pytest' 'python2-setuptools-scm' 'git')
-source=("git+https://github.com/pytest-dev/pytest-runner.git#tag=$pkgver")
-sha512sums=('SKIP')
+makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
+checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-virtualenv'
+ 'python-pytest-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz")
+sha512sums=('0ce9c191481ab97795d0f45bdea7669cb61c3ac6aac476954d34c3e09e6fb08fd6bf73f192c014cb7ff2bd90dbfeb0f01d9a9ba7a9c6caeb371e40b42b558d63')
prepare() {
- cp -a pytest-runner{,-py2}
+ cp -a pytest-runner-$pkgver{,-py2}
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}
build() {
- cd "$srcdir"/pytest-runner
+ cd "$srcdir"/pytest-runner-$pkgver
python setup.py build
- cd "$srcdir"/pytest-runner-py2
+ cd "$srcdir"/pytest-runner-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/pytest-runner
+ cd pytest-runner-$pkgver
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
+ cd pytest-runner-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
@@ -46,7 +45,7 @@ package_python-pytest-runner() {
package_python2-pytest-runner() {
depends=('python2-pytest')
- cd pytest-runner-py2
+ cd pytest-runner-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}