mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Copyright 2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8..11} )
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Programmatic startup/shutdown of ASGI apps"
|
|
HOMEPAGE="
|
|
https://pypi.org/project/asgi-lifespan/
|
|
https://github.com/florimondmanca/asgi-lifespan
|
|
"
|
|
SRC_URI="https://github.com/florimondmanca/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
RDEPEND="dev-python/sniffio[${PYTHON_USEDEP}]"
|
|
BDEPEND="
|
|
test? (
|
|
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
|
dev-python/pytest-trio[${PYTHON_USEDEP}]
|
|
dev-python/starlette[${PYTHON_USEDEP}]
|
|
dev-python/trio[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
EPYTEST_DESELECT=(
|
|
"tests/test_manager.py::test_lifespan_manager[asyncio-None-ValueError-None]"
|
|
"tests/test_manager.py::test_lifespan_manager[asyncio-ValueError-None-None]"
|
|
"tests/test_manager.py::test_lifespan_manager[asyncio-ValueError-ValueError-None]"
|
|
"tests/test_manager.py::test_lifespan_manager[trio-None-ValueError-None]"
|
|
"tests/test_manager.py::test_lifespan_manager[trio-ValueError-None-None]"
|
|
"tests/test_manager.py::test_lifespan_manager[trio-ValueError-ValueError-None]"
|
|
)
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
python_prepare_all() {
|
|
rm setup.cfg || die
|
|
distutils-r1_python_prepare_all
|
|
}
|