From f54da8e9d3a6250e66eccc98f2340afd4d1afba4 Mon Sep 17 00:00:00 2001 From: kmos Date: Fri, 27 Dec 2019 05:16:59 +0000 Subject: [PATCH] devel/py-test-timeout "This is a plugin which will terminate tests after a certain timeout. When doing so it will show a stack dump of all threads running at the time. This is useful when running tests under a continuous integration server or simply if you don't know why the test suite hangs." Needed to enable tests on (at least) www/py-aiohttp Version 1.3.3 OK kn@ --- devel/py-test-timeout/Makefile | 33 +++++++++++++++++++++++++++++++++ devel/py-test-timeout/distinfo | 2 ++ devel/py-test-timeout/pkg/DESCR | 5 +++++ devel/py-test-timeout/pkg/PLIST | 10 ++++++++++ 4 files changed, 50 insertions(+) create mode 100644 devel/py-test-timeout/Makefile create mode 100644 devel/py-test-timeout/distinfo create mode 100644 devel/py-test-timeout/pkg/DESCR create mode 100644 devel/py-test-timeout/pkg/PLIST diff --git a/devel/py-test-timeout/Makefile b/devel/py-test-timeout/Makefile new file mode 100644 index 00000000000..04cf2ecae9f --- /dev/null +++ b/devel/py-test-timeout/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2019/12/27 05:16:59 kmos Exp $ + +COMMENT = pytest plugin to abort hanging tests + +MODPY_EGG_VERSION = 1.3.3 + +DISTNAME = pytest-timeout-${MODPY_EGG_VERSION} +PKGNAME = ${DISTNAME:S/py/py-/} + +CATEGORIES = devel + +HOMEPAGE = https://github.com/pytest-dev/pytest-timeout + +MAINTAINER = Kurt Mosiejczuk + +# MIT +PERMIT_PACKAGE = Yes + +MODULES = lang/python + +MODPY_PI = Yes +MODPY_SETUPTOOLS = Yes +MODPY_PYTEST = Yes + +RUN_DEPENDS = devel/py-test${MODPY_FLAVOR} +TEST_DEPENDS = ${FULLPKGNAME}:${FULLPKGPATH} + +TEST_ENV += PYTHONPATH="." + +FLAVORS = python3 +FLAVOR ?= + +.include diff --git a/devel/py-test-timeout/distinfo b/devel/py-test-timeout/distinfo new file mode 100644 index 00000000000..ad4cf3e7572 --- /dev/null +++ b/devel/py-test-timeout/distinfo @@ -0,0 +1,2 @@ +SHA256 (pytest-timeout-1.3.3.tar.gz) = SjC6doN6Mse3zVyE7pkz/eS5AisM0g6n1KV3wqFkn7E= +SIZE (pytest-timeout-1.3.3.tar.gz) = 11627 diff --git a/devel/py-test-timeout/pkg/DESCR b/devel/py-test-timeout/pkg/DESCR new file mode 100644 index 00000000000..8d50fcc7919 --- /dev/null +++ b/devel/py-test-timeout/pkg/DESCR @@ -0,0 +1,5 @@ +This is a plugin which will terminate tests after a certain timeout. +When doing so it will show a stack dump of all threads running at +the time. This is useful when running tests under a continuous +integration server or simply if you don't know why the test suite +hangs. diff --git a/devel/py-test-timeout/pkg/PLIST b/devel/py-test-timeout/pkg/PLIST new file mode 100644 index 00000000000..df2551f5eda --- /dev/null +++ b/devel/py-test-timeout/pkg/PLIST @@ -0,0 +1,10 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2019/12/27 05:16:59 kmos Exp $ +lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}pytest_timeout.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/pytest_timeout-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/pytest_timeout.py