dev-python/asgi-lifespan: add 2.1.0-r1, update ebuild

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-03-12 15:53:31 +01:00
parent 86712a456d
commit 1a7e9e7bda
3 changed files with 48 additions and 39 deletions

View File

@@ -1 +1 @@
DIST asgi-lifespan-2.1.0.gh.tar.gz 10652 BLAKE2B 95a37be55b361741f8afe6c102b719e5b21582f642712988f342c93d848dcf164b53b7112c0f423b1f035a7eeb060867b68f177aead0bf398e7997043da8aeb3 SHA512 cd2be831a8ae7eac1545e87b43158dfe2fc52edf25538907edb6efe54eb7155ccac9f3972fdd10cff41974cd32fe312f7648a4757ee2ab40dc295f1a61875348
DIST asgi-lifespan-2.1.0.tar.gz 15627 BLAKE2B 5186bf02455cab05c010907589bf4125110e6f03f1b6d9e711d44dcf132aa979edeb8991211cebe5d1fd3f7cd9e8a76e37ff5cb788b00cc3c3d07acc7b4cff75 SHA512 a1e3ba7b2cb5154afd71bfd89ccd49e7e9ecccb39ee695731f80e18f5d2637704fd57d5d047f60157a49f6aedcbabd62cda5fe6dc8595405ccaddada3462a190

View File

@@ -0,0 +1,47 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="Programmatic startup/shutdown of ASGI apps"
HOMEPAGE="
https://github.com/florimondmanca/asgi-lifespan/
https://pypi.org/project/asgi-lifespan/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/sniffio[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/starlette[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
)
"
EPYTEST_DESELECT=(
# https://github.com/florimondmanca/asgi-lifespan/issues/63
tests/test_manager.py::test_lifespan_manager
tests/test_manager.py::test_lifespan_not_supported
tests/test_manager.py::test_lifespan_timeout
# https://github.com/florimondmanca/asgi-lifespan/issues/65
tests/test_manager.py::test_lifespan_state_async_cm
)
EPYTEST_PLUGINS=( pytest-asyncio pytest-trio )
distutils_enable_tests pytest
python_test() {
epytest -o addopts=
}

View File

@@ -1,38 +0,0 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_12 )
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"
RDEPEND="dev-python/sniffio[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/starlette[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
rm setup.cfg || die
}