dev-python/janus: fix tests and the setuptools warning

The tests failed on the `--cov` options in setup.cfg and on the missing pytest-
asyncio plugin. Drop the License classifier because setuptools deprecates it and the
CI fails on that QA notice.

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-10-20 17:59:37 +11:00
1 parent 64c8f5d7e5
commit 71c17a41b0
1 file changed
+9 -14
+9 -14
View File
@@ -14,20 +14,15 @@ LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="test"
RESTRICT="!test? ( test )"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)
"
EPYTEST_IGNORE=(
# needs pytest-codspeed, which is not packaged
tests/test_benchmarks.py
)
python_test() {
py.test -v || die "Tests fail with ${EPYTHON}"
}
python_install_all() {
distutils-r1_python_install_all
src_prepare() {
distutils-r1_src_prepare
sed -i -e '/License ::/d' -e '/^addopts = --cov/d' setup.cfg || die
}