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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1787B158041 for ; Sat, 13 Apr 2024 15:04:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E92562BC026; Sat, 13 Apr 2024 15:04:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB9342BC01F for ; Sat, 13 Apr 2024 15:04:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E52243433A6 for ; Sat, 13 Apr 2024 15:04:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 70C6516E4 for ; Sat, 13 Apr 2024 15:04:48 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1713011495.95bb2b4d414b94292c754b9c88a4533d302d6bf4.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-benchmark/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-benchmark/metadata.xml dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild X-VCS-Directories: dev-python/pytest-benchmark/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 95bb2b4d414b94292c754b9c88a4533d302d6bf4 X-VCS-Branch: master Date: Sat, 13 Apr 2024 15:04:48 +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: 17d61c56-626e-45f0-8a7a-71d916a2a875 X-Archives-Hash: c6eb362badf33e7cd5e78302f3b1f9da commit: 95bb2b4d414b94292c754b9c88a4533d302d6bf4 Author: Henri Gasc eurecom fr> AuthorDate: Sat Apr 13 12:21:17 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Sat Apr 13 12:31:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=95bb2b4d dev-python/pytest-benchmark: enable py3.12 Signed-off-by: Henri Gasc eurecom.fr> dev-python/pytest-benchmark/metadata.xml | 11 -------- .../pytest-benchmark/pytest-benchmark-4.0.0.ebuild | 33 ++++++++-------------- 2 files changed, 12 insertions(+), 32 deletions(-) diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml index 7bd24eb11e..61f67f33d1 100644 --- a/dev-python/pytest-benchmark/metadata.xml +++ b/dev-python/pytest-benchmark/metadata.xml @@ -2,17 +2,6 @@ - - This plugin tightly integrates into pytest. To use this effectively you should know a thing or two about pytest first. Take a look at the introductory material or watch talks. - - Few notes: - - This plugin benchmarks functions and only that. If you want to measure block of code or whole programs you will need to write a wrapper function. - In a test you can only benchmark one function. If you want to benchmark many functions write more tests or use parametrization http://docs.pytest.org/en/latest/parametrize.html. - To run the benchmarks you simply use pytest to run your "tests". The plugin will automatically do the benchmarking and generate a result table. Run pytest --help for more details. - -This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it. - ionelmc/pytest-benchmark pytest-benchmark 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 91438a338d..c1b86c0d61 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-4.0.0.ebuild @@ -1,11 +1,16 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 + +DOCS_BUILDER="sphinx" +DOCS_DEPEND="dev-python/sphinx-py3doc-enhanced-theme" +DOCS_DIR="docs" + +inherit distutils-r1 docs DESCRIPTION="py.test fixture for benchmarking code" HOMEPAGE=" @@ -22,10 +27,8 @@ DOCS=( {AUTHORS,CHANGELOG,README}.rst ) RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] " -# tests include pytest-xdist integration BDEPEND=" test? ( dev-python/aspectlib[${PYTHON_USEDEP}] @@ -41,24 +44,12 @@ BDEPEND=" " EPYTEST_DESELECT=( - tests/test_benchmark.py::test_help + # The equality test is not correct (the format changed but the tests did not) + # This also deselect other tests for some reason tests/test_cli.py::test_help tests/test_cli.py::test_help_compare + tests/test_benchmark.py::test_abort_broken + tests/test_utils.py::test_clonefunc ) 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 -}