public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Henri Gasc" <gasc@eurecom.fr>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/
Date: Sat, 13 Apr 2024 12:31:42 +0000 (UTC)	[thread overview]
Message-ID: <1713011495.95bb2b4d414b94292c754b9c88a4533d302d6bf4.gasc@gentoo> (raw)

commit:     95bb2b4d414b94292c754b9c88a4533d302d6bf4
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Sat Apr 13 12:21:17 2024 +0000
Commit:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
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 <gasc <AT> 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 @@
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<!-- maintainer-needed -->
-	<longdescription lang="en">
-    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.
-  </longdescription>
 	<upstream>
 		<remote-id type="github">ionelmc/pytest-benchmark</remote-id>
 		<remote-id type="pypi">pytest-benchmark</remote-id>

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[<lambda>]"
-			"tests/test_utils.py::test_clonefunc[f2]"
-		)
-	fi
-	epytest
-}


             reply	other threads:[~2024-04-13 12:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-13 12:31 Henri Gasc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-25 13:01 [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-benchmark/ Julien Roy
2024-05-25 12:41 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-04-15  9:34 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-04-15  9:26 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2023-07-24 20:26 Anna Vyalkova
2023-07-05 13:59 Anna Vyalkova
2023-05-04  2:02 Anna Vyalkova
2022-11-03  7:37 Anna Vyalkova
2022-06-05  6:16 Anna Vyalkova
2022-06-05  1:09 Alessandro Barbieri
2022-06-01  5:03 Anna Vyalkova
2021-08-14  2:00 Anna Vyalkova
2021-06-14 23:09 Alessandro Barbieri
2021-06-14  2:27 Alessandro Barbieri
2021-05-25 10:37 Anna Vyalkova
2021-05-06  0:22 Alessandro Barbieri
2020-09-24 12:17 Andrew Ammerlaan
2020-06-09 16:37 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-06-09 14:00 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-03-29 13:21 Andrew Ammerlaan
2020-03-29  9:29 Alessandro Barbieri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1713011495.95bb2b4d414b94292c754b9c88a4533d302d6bf4.gasc@gentoo \
    --to=gasc@eurecom.fr \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox