mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 05:31:25 +02:00
38 lines
970 B
Plaintext
38 lines
970 B
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-pytest-runner
|
|
_pkgname=pytest-runner
|
|
pkgver=5.3.2
|
|
pkgrel=1
|
|
pkgdesc="Invoke py.test as distutils command"
|
|
options="!check" # Requires unpackaged pytest-{checkdocs,flake8,virtualenv}
|
|
url="https://github.com/pytest-dev/pytest-runner"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -e '/setuptools_scm/d' -i setup.py -i setup.cfg
|
|
sed -e "/^\[metadata\]/a version = $pkgver" -i setup.cfg
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
477a307233667be56a5df2c8094eb6ac9235939ee78bbaea79e5d132888774705167cf4cef980c67939a6bfdbaf17396b8f76646aad8b07bb200e200a81440c2 pytest-runner-5.3.2.tar.gz
|
|
"
|