1 |
commit: 8a000ba421740a784b25c855bcf4b89e0df9766e |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Mar 29 09:20:02 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun Mar 29 09:29:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8a000ba4 |
7 |
|
8 |
dev-python/pytest-benchmark: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/pytest-benchmark/Manifest | 1 + |
14 |
dev-python/pytest-benchmark/metadata.xml | 23 ++++++++++++ |
15 |
.../pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 41 ++++++++++++++++++++++ |
16 |
3 files changed, 65 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..e0224b5 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/pytest-benchmark/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST pytest-benchmark-3.2.3.tar.gz 321127 BLAKE2B a9fb3a01ac9850d813f9b72d1975010b63b4f9d35d48c683b8dfa5d0020b17c59339135ff63b6152efab3ac33fecbc09aacbe6bcc3a7b0b260a00da317db00bf SHA512 952dbe2a9af1ae5de966543eae3b4523a5418c8441785714cbb7a5d17697046f060befb4a40cf216526e2a9a63d91c598d65e65618bd78fc2d889c92cecbbe53 |
25 |
|
26 |
diff --git a/dev-python/pytest-benchmark/metadata.xml b/dev-python/pytest-benchmark/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..707882f |
29 |
--- /dev/null |
30 |
+++ b/dev-python/pytest-benchmark/metadata.xml |
31 |
@@ -0,0 +1,23 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>lssndrbarbieri@×××××.com</email> |
37 |
+ <name>Alessandro Barbieri</name> |
38 |
+ </maintainer> |
39 |
+ <longdescription lang="en"> |
40 |
+ 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. |
41 |
+ |
42 |
+ Few notes: |
43 |
+ |
44 |
+ 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. |
45 |
+ 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. |
46 |
+ 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. |
47 |
+ |
48 |
+This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it. |
49 |
+ </longdescription> |
50 |
+ <upstream> |
51 |
+ <remote-id type="github">ionelm/pytest-benchmark</remote-id> |
52 |
+ <remote-id type="pypi">pytest-benchmark</remote-id> |
53 |
+ </upstream> |
54 |
+</pkgmetadata> |
55 |
|
56 |
diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild |
57 |
new file mode 100644 |
58 |
index 0000000..82b9e64 |
59 |
--- /dev/null |
60 |
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild |
61 |
@@ -0,0 +1,41 @@ |
62 |
+# Copyright 1999-2020 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI="7" |
66 |
+ |
67 |
+#DISTUTILS_USE_SETUPTOOLS=rdepend |
68 |
+PYTHON_COMPAT=( python3_6 ) |
69 |
+ |
70 |
+inherit distutils-r1 |
71 |
+ |
72 |
+DESCRIPTION="py.test fixture for benchmarking code " |
73 |
+HOMEPAGE=" |
74 |
+ https://pypi.python.org/pypi/pytest-benchmark |
75 |
+ https://github.com/ionelmc/pytest-benchmark |
76 |
+" |
77 |
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
78 |
+ |
79 |
+LICENSE="BSD-2" |
80 |
+SLOT="0" |
81 |
+KEYWORDS="~amd64 ~x86" |
82 |
+ |
83 |
+RDEPEND=" |
84 |
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}] |
85 |
+" |
86 |
+BDEPEND=" |
87 |
+ ${RDEPEND} |
88 |
+ test? ( |
89 |
+ dev-python/aspectlib[${PYTHON_USEDEP}] |
90 |
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}] |
91 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
92 |
+ dev-python/hunter[${PYTHON_USEDEP}] |
93 |
+ dev-python/pygal[${PYTHON_USEDEP}] |
94 |
+ dev-python/pygaljs[${PYTHON_USEDEP}] |
95 |
+ dev-python/pytest-instafail[${PYTHON_USEDEP}] |
96 |
+ dev-python/pytest-travis-fold[${PYTHON_USEDEP}] |
97 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
98 |
+ ) |
99 |
+" |
100 |
+ |
101 |
+distutils_enable_tests pytest |
102 |
+distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme |