34 lines
995 B
Bash
34 lines
995 B
Bash
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# https://github.com/pytest-dev/pytest-runner#deprecation-notice
|
|
pkgname=python-pytest-runner
|
|
pkgver=6.0.1
|
|
_commit=9d13da8bd36ecd9634629b492315cb28eff44183
|
|
pkgrel=2
|
|
pkgdesc="Invoke py.test as distutils command with dependency resolution"
|
|
arch=('any')
|
|
license=('MIT')
|
|
url="https://github.com/pytest-dev/pytest-runner"
|
|
depends=('python-pytest' 'python-setuptools')
|
|
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
|
|
#checkdepends=('python-pytest-virtualenv' 'python-pytest-enabler')
|
|
source=("git+https://github.com/pytest-dev/pytest-runner.git#commit=$_commit")
|
|
sha512sums=('SKIP')
|
|
|
|
build() {
|
|
cd pytest-runner
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
# Tries to import barbazquux2
|
|
#check() {
|
|
# cd pytest-runner
|
|
# PYTHONPATH="$PWD" pytest
|
|
#}
|
|
|
|
package() {
|
|
cd pytest-runner
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|