Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/anyio/
Date: Mon, 30 Nov 2020 12:35:35
Message-Id: 1606662967.f928ec27e7b4c3d126429eff2cd268e706ce132b.andrewammerlaan@gentoo
1 commit: f928ec27e7b4c3d126429eff2cd268e706ce132b
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 29 15:15:38 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sun Nov 29 15:16:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f928ec27
7
8 dev-python/anyio: new package
9
10 Package-Manager: Portage-3.0.10, Repoman-3.0.2
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/anyio/Manifest | 1 +
14 dev-python/anyio/anyio-2.0.2.ebuild | 58 +++++++++++++++++++++++++++++++++++++
15 dev-python/anyio/metadata.xml | 33 +++++++++++++++++++++
16 3 files changed, 92 insertions(+)
17
18 diff --git a/dev-python/anyio/Manifest b/dev-python/anyio/Manifest
19 new file mode 100644
20 index 00000000..0d009d2c
21 --- /dev/null
22 +++ b/dev-python/anyio/Manifest
23 @@ -0,0 +1 @@
24 +DIST anyio-2.0.2.tar.gz 91805 BLAKE2B 26a7bd16f3f7b9d59cec7b93e13a48a3bd09c459ed1e751d0189836218a8384979ec5778feb29b00dc6871640c2e67e1b4b3162d050253e195536e02902cb89a SHA512 5ce46e6cf167b2ee526e92642e65d1e715f443750b4c8b12d0c449ad460afd0280be920bcde0653f478eb52ab9db035a35ccb6908460bf425e85d7d0aa3f1799
25
26 diff --git a/dev-python/anyio/anyio-2.0.2.ebuild b/dev-python/anyio/anyio-2.0.2.ebuild
27 new file mode 100644
28 index 00000000..f9cf5b07
29 --- /dev/null
30 +++ b/dev-python/anyio/anyio-2.0.2.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="7"
36 +
37 +PYTHON_COMPAT=( python3_7 )
38 +
39 +DOCBUILDER="sphinx"
40 +DOCDIR="${S}/docs"
41 +DOCDEPEND="
42 + dev-python/anyio
43 + >=dev-python/sphinx-autodoc-typehints-1.2.0
44 + dev-python/sphinx_rtd_theme
45 +"
46 +AUTODOC=1
47 +
48 +inherit distutils-r1 docs
49 +
50 +DESCRIPTION="High level compatibility layer for multiple asynchronous event loop implementations"
51 +HOMEPAGE="
52 + https://github.com/agronholm/anyio
53 + https://pypi.org/project/anyio
54 +"
55 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
56 +
57 +LICENSE="MIT"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~x86"
60 +
61 +RDEPEND="
62 + >=dev-python/curio-1.4[${PYTHON_USEDEP}]
63 + >=dev-python/idna-2.8[${PYTHON_USEDEP}]
64 + >=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
65 + >=dev-python/trio-0.16[${PYTHON_USEDEP}]
66 +"
67 +#remember to add
68 +# $(python_gen_cond_dep 'dev-python/typing_extensions[${PYTHON_USEDEP}]' python3_7)
69 +DEPEND="
70 + ${RDEPEND}
71 + test? (
72 + >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}]
73 + >=dev-python/pytest-6.0[${PYTHON_USEDEP}]
74 + dev-python/trustme[${PYTHON_USEDEP}]
75 + dev-python/uvloop[${PYTHON_USEDEP}]
76 + )
77 +"
78 +
79 +distutils_enable_tests pytest
80 +
81 +python_test() {
82 + distutils_install_for_testing
83 + pytest -vv \
84 + --deselect tests/test_sockets.py::test_getaddrinfo[asyncio] \
85 + --deselect tests/test_sockets.py::test_getaddrinfo[asyncio+uvloop] \
86 + --deselect tests/test_sockets.py::test_getaddrinfo[curio] \
87 + --deselect tests/test_sockets.py::test_getaddrinfo[trio] \
88 + || die
89 +}
90 \ No newline at end of file
91
92 diff --git a/dev-python/anyio/metadata.xml b/dev-python/anyio/metadata.xml
93 new file mode 100644
94 index 00000000..1dcac0ae
95 --- /dev/null
96 +++ b/dev-python/anyio/metadata.xml
97 @@ -0,0 +1,33 @@
98 +<?xml version='1.0' encoding='UTF-8'?>
99 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
100 +<pkgmetadata>
101 + <maintainer type="person">
102 + <email>lssndrbarbieri@×××××.com</email>
103 + <name>Alessandro Barbieri</name>
104 + </maintainer>
105 + <longdescription lang="en">
106 +AnyIO is a asynchronous compatibility API that allows applications and libraries written against it to run unmodified on asyncio, curio and trio.
107 +
108 +It bridges the following functionality:
109 +
110 +Task groups
111 +Cancellation
112 +Threads
113 +Signal handling
114 +Asynchronous file I/O
115 +Subprocesses
116 +Inter-task synchronization and communication (locks, conditions, events, semaphores, object streams)
117 +High level networking (TCP, UDP and UNIX sockets)
118 +You can even use it together with native libraries from your selected backend in applications. Doing this in libraries is not advisable however since it limits the usefulness of your library.
119 +
120 +AnyIO comes with its own pytest plugin which also supports asynchronous fixtures. It even works with the popular Hypothesis library.
121 + </longdescription>
122 + <upstream>
123 + <remote-id type="github">agronholm/anyio</remote-id>
124 + <remote-id type="pypi">anyio</remote-id>
125 + <maintainer status="unknown">
126 + <email>alex.gronholm@×××××××.fi</email>
127 + <name>Alex Grönholm</name>
128 + </maintainer>
129 + </upstream>
130 +</pkgmetadata>