From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 83390138353 for ; Mon, 27 Apr 2020 07:18:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC30AE090F; Mon, 27 Apr 2020 07:18:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A95B5E090F for ; Mon, 27 Apr 2020 07:18:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C540534FB3C for ; Mon, 27 Apr 2020 07:18:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 86CAD1F6 for ; Mon, 27 Apr 2020 07:18:56 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1587971903.2dc900899c88366b2a511e223cd0863a05cc5d97.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/parver/files/, dev-python/parver/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/parver/files/parver-0.3-test.patch dev-python/parver/metadata.xml dev-python/parver/parver-0.3.ebuild X-VCS-Directories: dev-python/parver/files/ dev-python/parver/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2dc900899c88366b2a511e223cd0863a05cc5d97 X-VCS-Branch: master Date: Mon, 27 Apr 2020 07:18:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 09f8e984-6ea0-4e14-9f9e-36759c3f5149 X-Archives-Hash: 6d7a30431b6144e56c0f3450f032bfca commit: 2dc900899c88366b2a511e223cd0863a05cc5d97 Author: Michał Górny gentoo org> AuthorDate: Mon Apr 27 06:02:28 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Apr 27 07:18:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dc90089 dev-python/parver: Take to python@ Signed-off-by: Michał Górny gentoo.org> dev-python/parver/files/parver-0.3-test.patch | 34 +++++++++++++++++++++++++++ dev-python/parver/metadata.xml | 6 +++-- dev-python/parver/parver-0.3.ebuild | 5 ++++ 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/dev-python/parver/files/parver-0.3-test.patch b/dev-python/parver/files/parver-0.3-test.patch new file mode 100644 index 00000000000..f062b317f61 --- /dev/null +++ b/dev-python/parver/files/parver-0.3-test.patch @@ -0,0 +1,34 @@ +From 83c64f08ea95e40b3fa208c2743b8eaba3296a63 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Mon, 27 Apr 2020 08:25:18 +0200 +Subject: [PATCH] Suppress too_slow on test_parse_hypothesis + +The generator is apparently too slow on busy systems, so suppress +the health check to avoid a test failure. +--- + tests/test_parse.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/tests/test_parse.py b/tests/test_parse.py +index 6d58379..43494e3 100644 +--- a/tests/test_parse.py ++++ b/tests/test_parse.py +@@ -2,13 +2,14 @@ + from __future__ import absolute_import, division, print_function + + import pytest +-from hypothesis import assume, given ++from hypothesis import assume, given, settings, HealthCheck + + from parver import ParseError, Version + + from .strategies import version_string, whitespace + + ++@settings(suppress_health_check=[HealthCheck.too_slow]) + @given(whitespace, version_string(), whitespace) + def test_parse_hypothesis(prefix, version, suffix): + Version.parse(prefix + version + suffix) +-- +2.26.2 + diff --git a/dev-python/parver/metadata.xml b/dev-python/parver/metadata.xml index a6935c9d085..85a7736752b 100644 --- a/dev-python/parver/metadata.xml +++ b/dev-python/parver/metadata.xml @@ -1,11 +1,13 @@ - + + python@gentoo.org + Python + RazerM/parver https://parver.readthedocs.io/en/latest/ https://github.com/RazerM/parver/issues - diff --git a/dev-python/parver/parver-0.3.ebuild b/dev-python/parver/parver-0.3.ebuild index 0b21ac219bb..d2af95d88e8 100644 --- a/dev-python/parver/parver-0.3.ebuild +++ b/dev-python/parver/parver-0.3.ebuild @@ -29,6 +29,11 @@ DEPEND=" distutils_enable_tests pytest +PATCHES=( + # https://github.com/RazerM/parver/pull/6 + "${FILESDIR}"/${P}-test.patch +) + src_prepare() { # unlock dependencies sed -i -e 's:~=:>=:g' setup.py || die