commit:     f1236fe7ee790a9117d0ab413ab20039958ccf4c
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Thu Nov  3 01:04:16 2022 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Thu Nov  3 01:25:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f1236fe7

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

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/asgi-lifespan/Manifest                  |  1 +
 .../asgi-lifespan/asgi-lifespan-1.0.1.ebuild       | 45 ++++++++++++++++++++++
 dev-python/asgi-lifespan/metadata.xml              | 11 ++++++
 3 files changed, 57 insertions(+)

diff --git a/dev-python/asgi-lifespan/Manifest 
b/dev-python/asgi-lifespan/Manifest
new file mode 100644
index 000000000..16c63d274
--- /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 000000000..17269b352
--- /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 000000000..efdcd91e2
--- /dev/null
+++ b/dev-python/asgi-lifespan/metadata.xml
@@ -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>[email protected]</email>
+               <name>Anna</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">asgi-lifespan</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to