Skip to content
Snippets Groups Projects
Commit 90bd2648 authored by Celeste's avatar Celeste Committed by J0WI
Browse files

main/py3-pytest-timeout: upgrade to 2.2.0 & use gpep517 packaging

also, re-enable tests
parent a7f3fb40
No related branches found
No related tags found
1 merge request!53194main/py3-pytest-timeout: upgrade to 2.2.0 & use gpep517 packaging
Pipeline #186354 skipped
......@@ -2,35 +2,36 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-pytest-timeout
_pyname=pytest-timeout
pkgver=2.1.0
pkgrel=2
pkgver=2.2.0
pkgrel=0
pkgdesc="py.test plugin to abort hanging tests"
url="https://github.com/pytest-dev/pytest-timeout/"
arch="noarch"
license="MIT"
depends="py3-pytest"
makedepends="py3-setuptools"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pexpect"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pytest-timeout/pytest-timeout-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # tests broken
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$PWD/build/lib" python3 -m pytest -x
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -x
}
package() {
python3 setup.py install \
--prefix=/usr \
--root="$pkgdir" \
--single-version-externally-managed
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
5750e5183669ed9b83fbb76bd7fc9fc1f5f6eef3d9b675dc44f6c7edfd2c6d15739d71e845ededaa192c93da73026ac3376a3295be9f7d3f3eac325660ce7bf3 pytest-timeout-2.1.0.tar.gz
11a0c4e958b324bff3e149bf2a7dc5bf6ab6549405d5061856f8f1ad0e43df1cddce83df4c804b717276bfbcfcf60ee6b400625d0f4e4e73c98785146c22164f pytest-timeout-2.2.0.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment