Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-cov/files/, dev-python/pytest-cov/
Date: Mon, 02 Jan 2023 20:03:15
Message-Id: 1672689780.f67cb41cea030242bb1193cd4b6dc3abb4335fd9.sam@gentoo
1 commit: f67cb41cea030242bb1193cd4b6dc3abb4335fd9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 20:02:28 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 20:03:00 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f67cb41c
7
8 dev-python/pytest-cov: enable py3.11
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../files/pytest-cov-4.0.0-pytest-xdist-2.5.0.patch | 21 +++++++++++++++++++++
13 dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild | 8 ++++++--
14 2 files changed, 27 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/pytest-cov/files/pytest-cov-4.0.0-pytest-xdist-2.5.0.patch b/dev-python/pytest-cov/files/pytest-cov-4.0.0-pytest-xdist-2.5.0.patch
17 new file mode 100644
18 index 000000000000..6ed3456597cf
19 --- /dev/null
20 +++ b/dev-python/pytest-cov/files/pytest-cov-4.0.0-pytest-xdist-2.5.0.patch
21 @@ -0,0 +1,21 @@
22 +https://github.com/pytest-dev/pytest-cov/issues/566
23 +https://github.com/pytest-dev/pytest-cov/pull/565
24 +
25 +From 97483386bde4febe7ff48726f887cc6423d308b9 Mon Sep 17 00:00:00 2001
26 +From: Chedi <chedi.toueiti@×××××.com>
27 +Date: Tue, 15 Nov 2022 11:18:31 +0100
28 +Subject: [PATCH] disabling boxed test if version xdist newer than 2.5.0
29 +
30 +--- a/tests/test_pytest_cov.py
31 ++++ b/tests/test_pytest_cov.py
32 +@@ -1555,7 +1555,8 @@ def test_foo():
33 +
34 + SCRIPT_SIMPLE_RESULT = '4 * 100%'
35 +
36 +-
37 ++@×××××××××××.skipif('tuple(map(int, xdist.__version__.split("."))) >= (2, 5, 0)',
38 ++ reason="--boxed option was removed in version 2.5.0")
39 + @pytest.mark.skipif('sys.platform == "win32"')
40 + def test_dist_boxed(testdir):
41 + script = testdir.makepyfile(SCRIPT_SIMPLE)
42 +
43
44 diff --git a/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild b/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild
45 index 61bbc23db863..50a1d98287f1 100644
46 --- a/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild
47 +++ b/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild
48 @@ -1,10 +1,10 @@
49 -# Copyright 1999-2022 Gentoo Authors
50 +# Copyright 1999-2023 Gentoo Authors
51 # Distributed under the terms of the GNU General Public License v2
52
53 EAPI=8
54
55 DISTUTILS_USE_PEP517=setuptools
56 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
57 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
58
59 inherit distutils-r1
60
61 @@ -33,6 +33,10 @@ BDEPEND="
62 )
63 "
64
65 +PATCHES=(
66 + "${FILESDIR}"/${PN}-4.0.0-pytest-xdist-2.5.0.patch
67 +)
68 +
69 distutils_enable_sphinx docs \
70 dev-python/sphinx-py3doc-enhanced-theme
71 distutils_enable_tests pytest