diff --git a/dev-python/asgi-lifespan/Manifest b/dev-python/asgi-lifespan/Manifest new file mode 100644 index 0000000000..16c63d2745 --- /dev/null +++ b/dev-python/asgi-lifespan/Manifest @@ -0,0 +1 @@ +DIST asgi-lifespan-1.0.1.gh.tar.gz 10745 BLAKE2B cebf0d8a152cae10c69764497624e384d878b4f98d8f8ca22648daee0315742503c0fa6c2f452f051d0f0c49b2fafea6b5f96660609b68395a2b441a1cd714ce SHA512 70acad39954749154461a9d6435d5ae78eb9aa22e7717303158780cde90f532f2c33656da7ccefab0edfc2916db92339969228b383c29be9832fe933fe1206b9 diff --git a/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild b/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild new file mode 100644 index 0000000000..17269b3521 --- /dev/null +++ b/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild @@ -0,0 +1,45 @@ +# 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 +} diff --git a/dev-python/asgi-lifespan/metadata.xml b/dev-python/asgi-lifespan/metadata.xml new file mode 100644 index 0000000000..efdcd91e20 --- /dev/null +++ b/dev-python/asgi-lifespan/metadata.xml @@ -0,0 +1,11 @@ + + + + + cyber+gentoo@sysrq.in + Anna + + + asgi-lifespan + +