Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/asgi-lifespan/
Date: Thu, 03 Nov 2022 03:09:08
Message-Id: 1667438725.f1236fe7ee790a9117d0ab413ab20039958ccf4c.cybertailor@gentoo
1 commit: f1236fe7ee790a9117d0ab413ab20039958ccf4c
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Thu Nov 3 01:04:16 2022 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Thu Nov 3 01:25:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f1236fe7
7
8 dev-python/asgi-lifespan: new package, add 1.0.1
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 dev-python/asgi-lifespan/Manifest | 1 +
13 .../asgi-lifespan/asgi-lifespan-1.0.1.ebuild | 45 ++++++++++++++++++++++
14 dev-python/asgi-lifespan/metadata.xml | 11 ++++++
15 3 files changed, 57 insertions(+)
16
17 diff --git a/dev-python/asgi-lifespan/Manifest b/dev-python/asgi-lifespan/Manifest
18 new file mode 100644
19 index 000000000..16c63d274
20 --- /dev/null
21 +++ b/dev-python/asgi-lifespan/Manifest
22 @@ -0,0 +1 @@
23 +DIST asgi-lifespan-1.0.1.gh.tar.gz 10745 BLAKE2B cebf0d8a152cae10c69764497624e384d878b4f98d8f8ca22648daee0315742503c0fa6c2f452f051d0f0c49b2fafea6b5f96660609b68395a2b441a1cd714ce SHA512 70acad39954749154461a9d6435d5ae78eb9aa22e7717303158780cde90f532f2c33656da7ccefab0edfc2916db92339969228b383c29be9832fe933fe1206b9
24
25 diff --git a/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild b/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild
26 new file mode 100644
27 index 000000000..17269b352
28 --- /dev/null
29 +++ b/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild
30 @@ -0,0 +1,45 @@
31 +# Copyright 2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +DISTUTILS_USE_PEP517=setuptools
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Programmatic startup/shutdown of ASGI apps"
41 +HOMEPAGE="
42 + https://pypi.org/project/asgi-lifespan/
43 + https://github.com/florimondmanca/asgi-lifespan
44 +"
45 +SRC_URI="https://github.com/florimondmanca/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +RDEPEND="dev-python/sniffio[${PYTHON_USEDEP}]"
52 +BDEPEND="
53 + test? (
54 + dev-python/pytest-asyncio[${PYTHON_USEDEP}]
55 + dev-python/pytest-trio[${PYTHON_USEDEP}]
56 + dev-python/starlette[${PYTHON_USEDEP}]
57 + dev-python/trio[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +EPYTEST_DESELECT=(
62 + "tests/test_manager.py::test_lifespan_manager[asyncio-None-ValueError-None]"
63 + "tests/test_manager.py::test_lifespan_manager[asyncio-ValueError-None-None]"
64 + "tests/test_manager.py::test_lifespan_manager[asyncio-ValueError-ValueError-None]"
65 + "tests/test_manager.py::test_lifespan_manager[trio-None-ValueError-None]"
66 + "tests/test_manager.py::test_lifespan_manager[trio-ValueError-None-None]"
67 + "tests/test_manager.py::test_lifespan_manager[trio-ValueError-ValueError-None]"
68 +)
69 +
70 +distutils_enable_tests pytest
71 +
72 +python_prepare_all() {
73 + rm setup.cfg || die
74 + distutils-r1_python_prepare_all
75 +}
76
77 diff --git a/dev-python/asgi-lifespan/metadata.xml b/dev-python/asgi-lifespan/metadata.xml
78 new file mode 100644
79 index 000000000..efdcd91e2
80 --- /dev/null
81 +++ b/dev-python/asgi-lifespan/metadata.xml
82 @@ -0,0 +1,11 @@
83 +<?xml version="1.0" encoding="UTF-8"?>
84 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
85 +<pkgmetadata>
86 + <maintainer type="person">
87 + <email>cyber+gentoo@×××××.in</email>
88 + <name>Anna</name>
89 + </maintainer>
90 + <upstream>
91 + <remote-id type="pypi">asgi-lifespan</remote-id>
92 + </upstream>
93 +</pkgmetadata>