From 7bc9c63c9da678a7e6fceb095d56c634afd22c56 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Dec 2019 18:09:03 +0000 Subject: gentoo resync : 15.12.2019 --- dev-python/pytest-timeout/Manifest | 3 +++ .../files/pytest-timeout-1.3.3-tests.patch | 25 +++++++++++++++++++ .../pytest-timeout/pytest-timeout-1.3.3.ebuild | 29 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 dev-python/pytest-timeout/files/pytest-timeout-1.3.3-tests.patch create mode 100644 dev-python/pytest-timeout/pytest-timeout-1.3.3.ebuild (limited to 'dev-python/pytest-timeout') diff --git a/dev-python/pytest-timeout/Manifest b/dev-python/pytest-timeout/Manifest index 3d12f3b39fff..f39249ae2855 100644 --- a/dev-python/pytest-timeout/Manifest +++ b/dev-python/pytest-timeout/Manifest @@ -1,5 +1,8 @@ +AUX pytest-timeout-1.3.3-tests.patch 1113 BLAKE2B 88e8158169bb254b4c36c6eb3a32a4f9c78b3e47ef080e2d28703ef0826267b3c925bd6de84b72f1e5b30b4109fcc99fd830704f2790e5505d5974eca90af676 SHA512 3543b0240d17a7e6e3aed29553e22a9638b285817110dd1fddbc26f667ab3c00864572ea4f9e4564c81e7dca60203b24e7ea2b317b6e328a48d518853e7ea26a DIST pytest-timeout-1.2.0.tar.gz 13258 BLAKE2B 71c137fb0440c15cc8285b4bef51405a6b53deb850c109d1a892159e8758c712e9d1bae8f400adadf1b85cf399c0b87bd2cab51d959b4eb68023052f6c42788c SHA512 b86548843e9ff8c8f7d1c39735025cdfa98befe2860e2a8a5d422d08bd7f542032384f147125a2a2841268154cc3a3874ef0aa4765d454fd5390edb773b106ae DIST pytest-timeout-1.2.1.tar.gz 11498 BLAKE2B 65b50ed52409ed0031c7c9b07ef5b96c088cdf98c0155c1a6405e701fbddc2da1070a9f5a63e22428bd2d18e0ad4eec4050239f7d786fa854256c86eb6be0b1b SHA512 749a0dad83b82e93a97a8590900f2285679ec368612fdcfe3f5f7a5b64774ac85196dc31df111c6a99efda92dc03f751f17ec20862bed1f6aea7d7e4140a06bb +DIST pytest-timeout-1.3.3.tar.gz 11627 BLAKE2B e20348cc461ad03e95c22a16e753b72441ee70da9769214f4d07db15818a8997339ced47244b15de62a61107eb749dff8d6f41ddb4720c925ef1e6eb9962db27 SHA512 633f5aee550d568e403b958f4490ecb828eb322811c9f18cfefb26613be4fc36da14232ecbef8666fcf2dc693a93674c00a853ab546ea8328a07ea34da79fb84 EBUILD pytest-timeout-1.2.0.ebuild 549 BLAKE2B 9a64aa765063feb8a3f8d1f26cc34c146e4cc7ecb2e610d7b1f4eddc477d6db2d846eaf548ed6643e30d18cc9a2ba3bf7f6f78a2d6962639024a45939c27e0a7 SHA512 bb7bbc6944140406e64d514bc9ce1ac53f2d41a8c1d03369a7952a20ded3d17f241739a9457a87a6ed2498bc0ebacb07a5bd206d732e70704fc3a79c25569d31 EBUILD pytest-timeout-1.2.1.ebuild 562 BLAKE2B ff1e18723c15b162c52123d7ee97fe61a9353bbdb77625b4fde56840e84ad746b942caa4391be0e35579653b012cd812cccfb727b8f50ffbb527b3c3b49344a5 SHA512 27399963f96a9fe8c0fe2bd81f19d101f8e5d6dd37780b4ec571222a81d93cc75ed46a92c2b3b8411802c65f2481920ab357b4fd575304ca4d8c141a3aac5307 +EBUILD pytest-timeout-1.3.3.ebuild 692 BLAKE2B 1e8a9d5c1f1fde28458b5ac497c274941511f20f7b6e24f8b0a3f4d7b3c4804e9c2ccfb950ebbe8367655668305728ed6645c895c6ff111bfd5dee3ac020ace8 SHA512 37deda05a25af5fb0426b171e823df1782be407d6ddea73b0d329bd6510dd87a76166da70f69fd122b37a7f1214a80e36eea8ae8dd9b595e96f1c1dfb0df4e39 MISC metadata.xml 327 BLAKE2B 23dc2e5e6f023223ab4774206b2d94fd27fc0a6b2592c8e0c317e1c1a0e7c26ed4f8e23187c5499b7fc9c4acc0df601a056ab1dced8115a47a9e72697037fa32 SHA512 6040289d134f65896f2fb80538d9caa4ce628911c5ed21568a30087d1b0ffb14b9acbf874956720b1d9c56290c78bb965ac9299bc400fd89a258f3627180780a diff --git a/dev-python/pytest-timeout/files/pytest-timeout-1.3.3-tests.patch b/dev-python/pytest-timeout/files/pytest-timeout-1.3.3-tests.patch new file mode 100644 index 000000000000..d3fa9ca0fd34 --- /dev/null +++ b/dev-python/pytest-timeout/files/pytest-timeout-1.3.3-tests.patch @@ -0,0 +1,25 @@ +diff -ur pytest-timeout-1.3.3.orig/test_pytest_timeout.py pytest-timeout-1.3.3/test_pytest_timeout.py +--- pytest-timeout-1.3.3.orig/test_pytest_timeout.py 2018-11-16 03:41:33.000000000 -0800 ++++ pytest-timeout-1.3.3/test_pytest_timeout.py 2019-11-21 22:34:08.429287370 -0800 +@@ -1,4 +1,5 @@ + import os ++import platform + import os.path + import signal + import time +@@ -93,6 +94,6 @@ + # assert 'Timeout' in result.stdout.str() + result.stderr.str() + + +-@pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) ++@pytest.mark.parametrize('meth', [pytest.param('signal', marks=have_sigalrm), 'thread']) + @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) + def test_fix_setup(meth, scope, testdir): +@@ -133,6 +134,6 @@ + assert 'Timeout' not in result.stdout.str() + result.stderr.str() + + +-@pytest.mark.parametrize('meth', [have_sigalrm('signal'), 'thread']) ++@pytest.mark.parametrize('meth', [pytest.param('signal', marks=have_sigalrm), 'thread']) + @pytest.mark.parametrize('scope', ['function', 'class', 'module', 'session']) + def test_fix_finalizer(meth, scope, testdir): diff --git a/dev-python/pytest-timeout/pytest-timeout-1.3.3.ebuild b/dev-python/pytest-timeout/pytest-timeout-1.3.3.ebuild new file mode 100644 index 000000000000..6f64383c9728 --- /dev/null +++ b/dev-python/pytest-timeout/pytest-timeout-1.3.3.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="py.test plugin to abort hanging tests" +HOMEPAGE="https://pypi.org/project/pytest-timeout/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="amd64 ~arm arm64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/pytest-timeout-1.3.3-tests.patch" +) + +python_test() { + distutils_install_for_testing + + pytest -vv || die "Tests fail with ${EPYTHON}" +} -- cgit v1.2.3