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 99177138334 for ; Fri, 22 Nov 2019 08:40:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB777E085A; Fri, 22 Nov 2019 08:40:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 98195E0857 for ; Fri, 22 Nov 2019 08:40:51 +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 8966734D1E5 for ; Fri, 22 Nov 2019 08:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 124E08BB for ; Fri, 22 Nov 2019 08:40:49 +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: <1574412044.4107d48f49c0d941d93c74e5358e09ad8d163bc7.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/priority/, dev-python/priority/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/priority/files/priority-1.3.0-test-timeout.patch dev-python/priority/priority-1.3.0.ebuild X-VCS-Directories: dev-python/priority/ dev-python/priority/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4107d48f49c0d941d93c74e5358e09ad8d163bc7 X-VCS-Branch: master Date: Fri, 22 Nov 2019 08:40:49 +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: f695bdc4-f5b7-4d73-aeba-b654ec223b9f X-Archives-Hash: c1b84d5475c0a9411aaa69e64d9fd367 commit: 4107d48f49c0d941d93c74e5358e09ad8d163bc7 Author: Michał Górny gentoo org> AuthorDate: Fri Nov 22 08:07:08 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 22 08:40:44 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4107d48f dev-python/priority: Enable py3.8, fix tests Signed-off-by: Michał Górny gentoo.org> .../priority/files/priority-1.3.0-test-timeout.patch | 20 ++++++++++++++++++++ dev-python/priority/priority-1.3.0.ebuild | 18 +++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/dev-python/priority/files/priority-1.3.0-test-timeout.patch b/dev-python/priority/files/priority-1.3.0-test-timeout.patch new file mode 100644 index 00000000000..3b904f34099 --- /dev/null +++ b/dev-python/priority/files/priority-1.3.0-test-timeout.patch @@ -0,0 +1,20 @@ +diff -dupr a/test/test_priority.py b/test/test_priority.py +--- a/test/test_priority.py 2017-01-27 11:57:03.000000000 +0100 ++++ b/test/test_priority.py 2019-11-22 09:03:52.772710452 +0100 +@@ -12,7 +12,7 @@ import itertools + + import pytest + +-from hypothesis import given ++from hypothesis import given, settings + from hypothesis.strategies import ( + integers, lists, tuples, sampled_from + ) +@@ -489,6 +489,7 @@ class TestPriorityTreeOutput(object): + fairness and equidistribution. + """ + @given(STREAMS_AND_WEIGHTS) ++ @settings(deadline=None) + def test_period_of_repetition(self, streams_and_weights): + """ + The period of repetition of a priority sequence is given by the sum of diff --git a/dev-python/priority/priority-1.3.0.ebuild b/dev-python/priority/priority-1.3.0.ebuild index 7ce73432ed6..fc22a3fbb74 100644 --- a/dev-python/priority/priority-1.3.0.ebuild +++ b/dev-python/priority/priority-1.3.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy) +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy) inherit distutils-r1 @@ -15,18 +15,14 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86" -IUSE="test" - -RDEPEND="" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}] - >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] - ) + test? ( >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] ) " -python_test() { - py.test -vv || die "Tests failed under ${EPYTHON}" -} +PATCHES=( + "${FILESDIR}"/priority-1.3.0-test-timeout.patch +) + +distutils_enable_tests pytest