1 |
commit: dd47c8f0f30a2ad205bf7c191032ae904a325ea9 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Jun 1 04:31:01 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 05:02:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd47c8f0 |
7 |
|
8 |
dev-python/pytest-benchmark: update DESCRIPTION, SRC_URI |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/pytest-benchmark/Manifest | 2 +- |
13 |
.../pytest-benchmark/pytest-benchmark-3.4.1.ebuild | 34 ++++++++++------------ |
14 |
2 files changed, 16 insertions(+), 20 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pytest-benchmark/Manifest b/dev-python/pytest-benchmark/Manifest |
17 |
index f02988a91..f59164a39 100644 |
18 |
--- a/dev-python/pytest-benchmark/Manifest |
19 |
+++ b/dev-python/pytest-benchmark/Manifest |
20 |
@@ -1 +1 @@ |
21 |
-DIST pytest-benchmark-3.4.1.tar.gz 322758 BLAKE2B d29254f412aee0955429e7957fa31e9443b3319bec256b601c456efa7020abbd5b4d9ed43799fda62f53f70f14de3f42a93b29b7366989294f037ec2ee3215fc SHA512 54fb5e3a176578b3c8f339878c7a9d047a0785befcbba42bb68c34b4b636d9b6f6a2097b36c5eefbbcf1a91f943bdae762c7978a0dba1af53514052f513ef4c5 |
22 |
+DIST pytest-benchmark-3.4.1.gh.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 |
index 3cc5d7a49..f8eabdb12 100644 |
26 |
--- a/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild |
27 |
+++ b/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild |
28 |
@@ -6,46 +6,42 @@ EAPI=8 |
29 |
PYTHON_COMPAT=( python3_{8..10} ) |
30 |
inherit distutils-r1 |
31 |
|
32 |
-DESCRIPTION="py.test fixture for benchmarking code " |
33 |
+DESCRIPTION="py.test fixture for benchmarking code" |
34 |
HOMEPAGE=" |
35 |
https://pypi.python.org/pypi/pytest-benchmark |
36 |
https://github.com/ionelmc/pytest-benchmark |
37 |
" |
38 |
-SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+SRC_URI="https://github.com/ionelmc/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
40 |
|
41 |
LICENSE="BSD-2" |
42 |
SLOT="0" |
43 |
KEYWORDS="~amd64 ~x86" |
44 |
|
45 |
-DOCS=( AUTHORS.rst CHANGELOG.rst README.rst ) |
46 |
+DOCS=( {AUTHORS,CHANGELOG,README}.rst ) |
47 |
|
48 |
-RDEPEND="dev-python/py-cpuinfo[${PYTHON_USEDEP}]" |
49 |
+RDEPEND=" |
50 |
+ dev-python/py-cpuinfo[${PYTHON_USEDEP}] |
51 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
52 |
+" |
53 |
BDEPEND="test? ( |
54 |
dev-python/aspectlib[${PYTHON_USEDEP}] |
55 |
+ dev-python/elasticsearch-py[${PYTHON_USEDEP}] |
56 |
dev-python/freezegun[${PYTHON_USEDEP}] |
57 |
dev-python/hunter[${PYTHON_USEDEP}] |
58 |
dev-python/pygal[${PYTHON_USEDEP}] |
59 |
dev-python/pygaljs[${PYTHON_USEDEP}] |
60 |
- $(python_gen_cond_dep \ |
61 |
- 'dev-python/elasticsearch-py[${PYTHON_USEDEP}]' python3_8 python3_9 ) |
62 |
)" |
63 |
|
64 |
+EPYTEST_DESELECT=( |
65 |
+ tests/test_cli.py::test_help |
66 |
+ tests/test_cli.py::test_help_compare |
67 |
+) |
68 |
+ |
69 |
distutils_enable_tests pytest |
70 |
-distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme |
71 |
|
72 |
-python_prepare() { |
73 |
- if [[ ${EPYTHON} == python3.10 ]]; then |
74 |
- rm tests/test_elasticsearch_storage.py || die |
75 |
- fi |
76 |
-} |
77 |
+distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme |
78 |
|
79 |
python_test() { |
80 |
local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}" |
81 |
- local epytest_args=( |
82 |
- -o markers=benchmark |
83 |
- --deselect tests/test_cli.py::test_help |
84 |
- --deselect tests/test_cli.py::test_help_compare |
85 |
- ) |
86 |
- |
87 |
- epytest "${epytest_args[@]}" |
88 |
+ epytest -o markers=benchmark |
89 |
} |