Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
Date: Sun, 05 Jun 2022 06:16:26
Message-Id: 1654409534.f287069080e56d8190348898b0f473ad34f38fb9.cybertailor@gentoo
1 commit: f287069080e56d8190348898b0f473ad34f38fb9
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Jun 4 22:07:14 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Sun Jun 5 06:12:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f2870690
7
8 dev-python/pytest-benchmark: disable tests broken with pytest7
9
10 Closes: https://bugs.gentoo.org/849605
11 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
12
13 .../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 28 ++++++++++++++++++++--
14 1 file changed, 26 insertions(+), 2 deletions(-)
15
16 diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
17 index a3a72616f..a37c92d0f 100644
18 --- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
19 +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
20 @@ -4,11 +4,12 @@
21 EAPI=8
22
23 PYTHON_COMPAT=( python3_{8..10} )
24 +DISTUTILS_USE_PEP517=setuptools
25 inherit distutils-r1
26
27 DESCRIPTION="py.test fixture for benchmarking code"
28 HOMEPAGE="
29 - https://pypi.python.org/pypi/pytest-benchmark
30 + https://pypi.python.org/pypi/pytest-benchmark/
31 https://github.com/ionelmc/pytest-benchmark
32 "
33 SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
34 @@ -30,11 +31,34 @@ BDEPEND="test? (
35 dev-python/hunter[${PYTHON_USEDEP}]
36 dev-python/pygal[${PYTHON_USEDEP}]
37 dev-python/pygaljs[${PYTHON_USEDEP}]
38 -)"
39 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
40 +)" # tests include pytest-xdist integration
41
42 EPYTEST_DESELECT=(
43 tests/test_cli.py::test_help
44 tests/test_cli.py::test_help_compare
45 +
46 + # test failures with pytest7, see:
47 + # https://github.com/ionelmc/pytest-benchmark/issues/214
48 + tests/test_benchmark.py::test_groups
49 + tests/test_benchmark.py::test_group_by_func
50 + tests/test_benchmark.py::test_group_by_fullfunc
51 + tests/test_benchmark.py::test_group_by_param_all
52 + tests/test_benchmark.py::test_group_by_param_select
53 + tests/test_benchmark.py::test_group_by_param_select_multiple
54 + tests/test_benchmark.py::test_group_by_fullname
55 + tests/test_benchmark.py::test_only_override_skip
56 + tests/test_benchmark.py::test_fixtures_also_skipped
57 + tests/test_benchmark.py::test_max_time_min_rounds
58 + tests/test_benchmark.py::test_max_time
59 + tests/test_benchmark.py::test_disable_gc
60 + tests/test_benchmark.py::test_custom_timer
61 + tests/test_benchmark.py::test_sort_by_mean
62 + tests/test_benchmark.py::test_basic
63 + tests/test_benchmark.py::test_skip
64 + tests/test_benchmark.py::test_disable
65 + tests/test_benchmark.py::test_mark_selection
66 + tests/test_benchmark.py::test_only_benchmarks
67 )
68
69 distutils_enable_tests pytest