Files
gentoo-zh/dev-python/janus/janus-2.0.0.ebuild
T
Zakk 71c17a41b0 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>
2026-10-20 17:59:37 +11:00

29 lines
733 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} pypy3 )
PYPI_VERIFY_REPO=https://github.com/aio-libs/janus
inherit distutils-r1 pypi
DESCRIPTION="Mixed sync-async queue to interoperate between asyncio tasks and classic threads"
HOMEPAGE="https://github.com/aio-libs/janus"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# needs pytest-codspeed, which is not packaged
tests/test_benchmarks.py
)
src_prepare() {
distutils-r1_src_prepare
sed -i -e '/License ::/d' -e '/^addopts = --cov/d' setup.cfg || die
}