projects/aports·blob master · refs

42 lines · 1.4 KiB

1# Contributor: Dmitry Romanenko <[email protected]>
2# Maintainer: Dmitry Romanenko <[email protected]>
3pkgname=py3-pytest-xdist
4pkgver=3.8.0
5pkgrel=1
6pkgdesc="pytest xdist plugin for distributed testing and loop-on-failing modes"
7url="https://pytest-xdist.readthedocs.io"
8arch="noarch"
9license="MIT"
10depends="py3-execnet py3-pytest"
11checkdepends="py3-filelock py3-py py3-pexpect py3-psutil"
12makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
13subpackages="$pkgname-pyc"
14source="https://files.pythonhosted.org/packages/source/p/pytest_xdist/pytest_xdist-$pkgver.tar.gz
15 pytest9.patch
16 "
17builddir="$srcdir/pytest_xdist-$pkgver"
18
19replaces="pytest-xdist" # Backwards compatibility
20provides="pytest-xdist=$pkgver-r$pkgrel" # Backwards compatibility
21
22build() {
23 gpep517 build-wheel \
24 --wheel-dir .dist \
25 --output-fd 3 3>&1 >&2
26}
27
28check() {
29 python3 -m venv --clear --without-pip --system-site-packages .testenv
30 .testenv/bin/python3 -m installer .dist/pytest_xdist*.whl
31 .testenv/bin/python3 -m pytest
32}
33
34package() {
35 python3 -m installer -d "$pkgdir" \
36 .dist/pytest_xdist*.whl
37}
38
39sha512sums="
40fedea555be872afe09409cb1a2a3e5c183efefacc2f0eb6edeb306b855ac0ebd1d0b0063186c8c434410c0c35a178f5a80133d7f4b48ad71a4e4e0110315396b pytest_xdist-3.8.0.tar.gz
41021c1d71c5b1ef1106caea3125d711af5077fff6c336fcccf1408ffbabfa17ca1c0c565c58c5d48167cc8b73e4744b38d2d67e39a65baa4c9b5caa4d8712ea6b pytest9.patch
42"