blob: cebb4e91acd0a2a4885c6540c1ab3d589a11a147 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_USE_PEP517=setuptools
inherit click-app distutils-r1 pypi
DESCRIPTION="Suite of tools and fixtures to manage daemons for testing"
HOMEPAGE="
https://pypi.org/project/pifpaf/
https://github.com/jd/pifpaf
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test" # missing dependency <kafka-bin-4.0::gentoo
RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
dev-python/daiquiri[${PYTHON_USEDEP}]
dev-python/fixtures[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
|| (
dev-python/pyxattr[${PYTHON_USEDEP}]
dev-python/xattr[${PYTHON_USEDEP}]
)'
)
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
"
# test? (
# app-admin/consul
# app-admin/vault
# dev-db/etcd[server]
# dev-db/postgresql[server]
# dev-db/redis
# dev-python/httpbin[${PYTHON_USEDEP}]
# dev-python/requests[${PYTHON_USEDEP}]
# dev-python/testtools[${PYTHON_USEDEP}]
# <net-misc/kafka-bin-4.0
# net-misc/memcached
# net-misc/rabbitmq-server
# sys-cluster/ceph
# virtual/mysql[server]
# )
EPYTEST_PLUGINS=( )
EPYTEST_DESELECT=(
# Drivers need fixes
pifpaf/tests/test_drivers.py::TestDrivers::test_influxdb
pifpaf/tests/test_drivers.py::TestDrivers::test_mongodb
pifpaf/tests/test_drivers.py::TestDrivers::test_redis_sentinel
)
# distutils_enable_tests pytest
click-app_enable_completions pifpaf
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
python_test() {
# RabbitMQ wrappers installed to /usr/sbin require to be run as root.
local -x PATH="${BUILD_DIR}/install${EPREFIX}/usr/bin:${BROOT}/usr/libexec/rabbitmq:${PATH}"
epytest
}
|