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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2DA60138353 for ; Sun, 29 Mar 2020 09:29:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 138FBE0B15; Sun, 29 Mar 2020 09:29:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D49D9E0B13 for ; Sun, 29 Mar 2020 09:29:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB88734FAB9 for ; Sun, 29 Mar 2020 09:29:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F3B4C1B0 for ; Sun, 29 Mar 2020 09:29:08 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1585474143.8a000ba421740a784b25c855bcf4b89e0df9766e.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-benchmark/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-benchmark/Manifest dev-python/pytest-benchmark/metadata.xml dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild X-VCS-Directories: dev-python/pytest-benchmark/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 8a000ba421740a784b25c855bcf4b89e0df9766e X-VCS-Branch: dev Date: Sun, 29 Mar 2020 09:29:08 +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: 67ada97e-4a8c-49ae-af17-214deffa68f4 X-Archives-Hash: 0e8ddc0fba38e499ca366b28a1eade2f commit: 8a000ba421740a784b25c855bcf4b89e0df9766e Author: Alessandro Barbieri gmail com> AuthorDate: Sun Mar 29 09:20:02 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sun Mar 29 09:29:03 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8a000ba4 dev-python/pytest-benchmark: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri gmail.com> dev-python/pytest-benchmark/Manifest | 1 + dev-python/pytest-benchmark/metadata.xml | 23 ++++++++++++ .../pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 41 ++++++++++++++++++++++ 3 files changed, 65 insertions(+) diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest new file mode 100644 index 0000000..e0224b5 --- /dev/null +++ b/dev-python/pytest-benchmark/Manifest @@ -0,0 +1 @@ +DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53 diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml new file mode 100644 index 0000000..707882f --- /dev/null +++ b/dev-python/pytest-benchmark/metadata.xml @@ -0,0 +1,23 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + 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. + + + ionelm/pytest-benchmark + pytest-benchmark + + diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild new file mode 100644 index 0000000..82b9e64 --- /dev/null +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +#DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_6 ) + +inherit distutils-r1 + +DESCRIPTION="py.test fixture for benchmarking code " +HOMEPAGE=" + https://pypi.python.org/pypi/pytest-benchmark + https://github.com/ionelmc/pytest-benchmark +" +SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/py-cpuinfo[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + 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-instafail[${PYTHON_USEDEP}] + dev-python/pytest-travis-fold[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme