Files
guru/dev-python/pytest-benchmark/pytest-benchmark-3.4.1.ebuild
T
2022-06-01 10:02:48 +05:00

48 lines
1.1 KiB
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
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}.gh.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DOCS=( {AUTHORS,CHANGELOG,README}.rst )
RDEPEND="
dev-python/py-cpuinfo[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
"
BDEPEND="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}]
)"
EPYTEST_DESELECT=(
tests/test_cli.py::test_help
tests/test_cli.py::test_help_compare
)
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
python_test() {
local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
epytest -o markers=benchmark
}