commit:     58809d829903647fb850f3c60c925706ff46c584
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jun 14 01:11:20 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> 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 <lssndrbarbieri <AT> 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}"
+}

Reply via email to