1 |
commit: 58809d829903647fb850f3c60c925706ff46c584 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jun 14 01:11:20 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jun 14 02:27:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58809d82 |
7 |
|
8 |
dev-python/pytest-benchmark: add 3.4.1 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/pytest-benchmark/Manifest | 1 + |
13 |
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 52 ++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest |
17 |
index e0224b528..339e0614a 100644 |
18 |
--- a/dev-python/pytest-benchmark/Manifest |
19 |
+++ b/dev-python/pytest-benchmark/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53 |
22 |
+DIST pytest-benchmark-3.4.1.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5 |
23 |
|
24 |
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..e342f4803 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild |
29 |
@@ -0,0 +1,52 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="7" |
34 |
+ |
35 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
36 |
+PYTHON_COMPAT=( python3_{8..9} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="py.test fixture for benchmarking code " |
41 |
+HOMEPAGE=" |
42 |
+ https://pypi.python.org/pypi/pytest-benchmark |
43 |
+ https://github.com/ionelmc/pytest-benchmark |
44 |
+" |
45 |
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+# during tests import fails because conflict with the already installed files |
52 |
+# not sure how to fix, it would require setting some python variables but that would |
53 |
+# probably lead to all other packages being unfindable by the tests |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+BDEPEND=" |
60 |
+ ${RDEPEND} |
61 |
+ test? ( |
62 |
+ dev-python/aspectlib[${PYTHON_USEDEP}] |
63 |
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}] |
64 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
65 |
+ dev-python/hunter[${PYTHON_USEDEP}] |
66 |
+ dev-python/pygal[${PYTHON_USEDEP}] |
67 |
+ dev-python/pygaljs[${PYTHON_USEDEP}] |
68 |
+ dev-python/pytest-instafail[${PYTHON_USEDEP}] |
69 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme |
75 |
+ |
76 |
+python_test() { |
77 |
+ # has to be run in source dir |
78 |
+ PYTHONPATH="${S}" |
79 |
+ cd "${S}" || die |
80 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
81 |
+} |