commit:     1a7e9e7bdae454d91527e93593c36bafd723735f
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Mar 12 14:53:31 2026 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Thu Mar 12 14:53:31 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a7e9e7b

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

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 dev-python/asgi-lifespan/Manifest                  |  2 +-
 .../asgi-lifespan/asgi-lifespan-2.1.0-r1.ebuild    | 47 ++++++++++++++++++++++
 .../asgi-lifespan/asgi-lifespan-2.1.0.ebuild       | 38 -----------------
 3 files changed, 48 insertions(+), 39 deletions(-)

diff --git a/dev-python/asgi-lifespan/Manifest 
b/dev-python/asgi-lifespan/Manifest
index e32f4569fd..4d0ef5ff1c 100644
--- a/dev-python/asgi-lifespan/Manifest
+++ b/dev-python/asgi-lifespan/Manifest
@@ -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

diff --git a/dev-python/asgi-lifespan/asgi-lifespan-2.1.0-r1.ebuild 
b/dev-python/asgi-lifespan/asgi-lifespan-2.1.0-r1.ebuild
new file mode 100644
index 0000000000..dd592082a4
--- /dev/null
+++ b/dev-python/asgi-lifespan/asgi-lifespan-2.1.0-r1.ebuild
@@ -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=
+}

diff --git a/dev-python/asgi-lifespan/asgi-lifespan-2.1.0.ebuild 
b/dev-python/asgi-lifespan/asgi-lifespan-2.1.0.ebuild
deleted file mode 100644
index d1af0889e0..0000000000
--- a/dev-python/asgi-lifespan/asgi-lifespan-2.1.0.ebuild
+++ /dev/null
@@ -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
-}

Reply via email to