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 D45B613835C for ; Mon, 14 Jun 2021 02:27:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16B67E0E1D; Mon, 14 Jun 2021 02:27:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 F264CE0E15 for ; Mon, 14 Jun 2021 02:27:37 +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 DE698340D65 for ; Mon, 14 Jun 2021 02:27:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21F9A7B4 for ; Mon, 14 Jun 2021 02:27:34 +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: <1623637650.58809d829903647fb850f3c60c925706ff46c584.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/pytest-benchmark-3.4.1.ebuild X-VCS-Directories: dev-python/pytest-benchmark/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 58809d829903647fb850f3c60c925706ff46c584 X-VCS-Branch: dev Date: Mon, 14 Jun 2021 02:27:34 +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: 9c1318d3-ad06-4308-bcce-2faf81049cff X-Archives-Hash: 07762fa5a6deb8a7e4bee007c0eb0280 commit: 58809d829903647fb850f3c60c925706ff46c584 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Jun 14 01:11:20 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Mon Jun 14 02:27:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58809d82 dev-python/pytest-benchmark: add 3.4.1 Signed-off-by: Alessandro Barbieri gmail.com> dev-python/pytest-benchmark/Manifest | 1 + .../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 52 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest index e0224b528..339e0614a 100644 --- a/dev-python/pytest-benchmark/Manifest +++ b/dev-python/pytest-benchmark/Manifest @@ -1 +1,2 @@ DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53 +DIST pytest-benchmark-3.4.1.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5 diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild new file mode 100644 index 000000000..e342f4803 --- /dev/null +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{8..9} ) + +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" + +# during tests import fails because conflict with the already installed files +# not sure how to fix, it would require setting some python variables but that would +# probably lead to all other packages being unfindable by the tests +RESTRICT="test" + +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-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme + +python_test() { + # has to be run in source dir + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +}