dev-python/asgi-lifespan: new package, add 1.0.1

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova 2022-11-03 06:04:16 +05:00
parent 531861b3b7
commit f1236fe7ee
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST asgi-lifespan-1.0.1.gh.tar.gz 10745 BLAKE2B cebf0d8a152cae10c69764497624e384d878b4f98d8f8ca22648daee0315742503c0fa6c2f452f051d0f0c49b2fafea6b5f96660609b68395a2b441a1cd714ce SHA512 70acad39954749154461a9d6435d5ae78eb9aa22e7717303158780cde90f532f2c33656da7ccefab0edfc2916db92339969228b383c29be9832fe933fe1206b9

View File

@ -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
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
<upstream>
<remote-id type="pypi">asgi-lifespan</remote-id>
</upstream>
</pkgmetadata>