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