From f5cac009b40982a72d78618dc0f1f56f68660633 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Thu, 27 Apr 2023 00:07:13 +0500 Subject: [PATCH] dev-python/pytest-benchmark: enable py3.11 Signed-off-by: Anna (cybertailor) Vyalkova --- dev-python/pytest-benchmark/.maildir/.mu-prop | 3 ++ .../pytest-benchmark-4.0.0.ebuild | 43 +++++++++++++------ 2 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 dev-python/pytest-benchmark/.maildir/.mu-prop diff --git a/dev-python/pytest-benchmark/.maildir/.mu-prop b/dev-python/pytest-benchmark/.maildir/.mu-prop new file mode 100644 index 0000000000..c271d191eb --- /dev/null +++ b/dev-python/pytest-benchmark/.maildir/.mu-prop @@ -0,0 +1,3 @@ +uidnext: 1 +version: 3.15 + diff --git a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild index 8cb86fb2df..11891ff60c 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 @@ -24,19 +24,24 @@ RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] " -BDEPEND="test? ( - dev-python/aspectlib[${PYTHON_USEDEP}] - dev-python/elasticsearch-py[${PYTHON_USEDEP}] - dev-python/freezegun[${PYTHON_USEDEP}] - dev-python/hunter[${PYTHON_USEDEP}] - dev-python/pygal[${PYTHON_USEDEP}] - dev-python/pygaljs[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-vcs/git - dev-vcs/mercurial -)" # tests include pytest-xdist integration + +# tests include pytest-xdist integration +BDEPEND=" + test? ( + dev-python/aspectlib[${PYTHON_USEDEP}] + dev-python/elasticsearch-py[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/hunter[${PYTHON_USEDEP}] + dev-python/pygal[${PYTHON_USEDEP}] + dev-python/pygaljs[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-vcs/git + dev-vcs/mercurial + ) +" EPYTEST_DESELECT=( + tests/test_benchmark.py::test_help tests/test_cli.py::test_help tests/test_cli.py::test_help_compare ) @@ -45,3 +50,15 @@ distutils_enable_tests pytest distutils_enable_sphinx docs \ dev-python/sphinx-py3doc-enhanced-theme + +python_test() { + if [[ ${EPYTHON} == "python3.11" ]]; then + # https://github.com/ionelmc/pytest-benchmark/issues/231 + EPYTEST_DESELECT+=( + tests/test_benchmark.py::test_abort_broken + "tests/test_utils.py::test_clonefunc[]" + "tests/test_utils.py::test_clonefunc[f2]" + ) + fi + epytest +}