mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=py3-pytest-xdist
|
|
pkgver=1.30.0
|
|
pkgrel=1
|
|
pkgdesc="pytest xdist plugin for distributed testing and loop-on-failing modes"
|
|
url="https://github.com/pytest-dev/pytest-xdist"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-execnet py3-pytest py3-pytest-forked py3-six"
|
|
checkdepends="py3-filelock py3-py"
|
|
makedepends="py3-setuptools py3-setuptools_scm"
|
|
source="https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest-xdist-$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-xdist-$pkgver"
|
|
|
|
replaces="pytest-xdist" # Backwards compatibility
|
|
provides="pytest-xdist=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
mkdir -p tmp_py3
|
|
python3 setup.py install --root="$builddir/tmp_py3" --optimize=1
|
|
local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
|
|
PYTHONPATH="$builddir/tmp_py3/usr/lib/python$_py3ver/site-packages:$PYTHONPATH" python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="978b67df2366d916db62af21f2c610ac5d2de43cecf3260ec9bf52f904098514c3052ce8ca2195c17addd4012f3c5d38ce8a701d26c8158142a821b0d0cf9122 pytest-xdist-1.30.0.tar.gz"
|