Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/anyio/
Date: Thu, 10 Jun 2021 09:58:25
Message-Id: 1623319093.4988fd0c3cd4efafb5a961eb4c98170a0dbb1a7f.andrewammerlaan@gentoo
1 commit: 4988fd0c3cd4efafb5a961eb4c98170a0dbb1a7f
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 10 08:50:04 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 10 09:58:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4988fd0c
7
8 dev-python/anyio: import from ::guru
9
10 Package-Manager: Portage-3.0.19, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/anyio/Manifest | 1 +
14 dev-python/anyio/anyio-3.1.0.ebuild | 42 +++++++++++++++++++++++++++++++++++++
15 dev-python/anyio/metadata.xml | 34 ++++++++++++++++++++++++++++++
16 3 files changed, 77 insertions(+)
17
18 diff --git a/dev-python/anyio/Manifest b/dev-python/anyio/Manifest
19 new file mode 100644
20 index 00000000000..d37dd4e2703
21 --- /dev/null
22 +++ b/dev-python/anyio/Manifest
23 @@ -0,0 +1 @@
24 +DIST anyio-3.1.0.tar.gz 122097 BLAKE2B 4a16a5d231cc5262dd4138f628b9d210180733bda4b9e81ced0c0e0c7f49e1760c8dd22db0a1db3b7a21f3210072f4e1c543e52a7dc716ad3f0415827da48e38 SHA512 120d8e3e24f542c06caedd0a67d16b3fb69c94f5feaebde5262e54f8ffba3f1cf927c82030d65fa2efb3479ee64abd968b6ce67aee767ea33ccef6b0e3fbd358
25
26 diff --git a/dev-python/anyio/anyio-3.1.0.ebuild b/dev-python/anyio/anyio-3.1.0.ebuild
27 new file mode 100644
28 index 00000000000..53b2893ab60
29 --- /dev/null
30 +++ b/dev-python/anyio/anyio-3.1.0.ebuild
31 @@ -0,0 +1,42 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Compatibility layer for multiple asynchronous event loop implementations"
42 +HOMEPAGE="
43 + https://github.com/agronholm/anyio
44 + https://pypi.org/project/anyio/
45 +"
46 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +
52 +# This will pull in dev-python/trio and a whole bunch of other new things
53 +# And trio does not yet have a release compatible with python3.9.
54 +RESTRICT="test"
55 +
56 +RDEPEND="
57 + >=dev-python/idna-2.8[${PYTHON_USEDEP}]
58 + >=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
59 +"
60 +
61 +BDEPEND="
62 + test? (
63 + >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}]
64 + >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
65 + dev-python/trustme[${PYTHON_USEDEP}]
66 + >=dev-python/uvloop-0.15[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +distutils_enable_tests --install pytest
71 +distutils_enable_sphinx docs \
72 + dev-python/sphinx_rtd_theme \
73 + dev-python/sphinx-autodoc-typehints
74
75 diff --git a/dev-python/anyio/metadata.xml b/dev-python/anyio/metadata.xml
76 new file mode 100644
77 index 00000000000..99d53f71191
78 --- /dev/null
79 +++ b/dev-python/anyio/metadata.xml
80 @@ -0,0 +1,34 @@
81 +<?xml version='1.0' encoding='UTF-8'?>
82 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
83 +<pkgmetadata>
84 + <maintainer type="project">
85 + <email>sci@g.o</email>
86 + <name>Gentoo Science Project</name>
87 + </maintainer>
88 + <stabilize-allarches/>
89 + <longdescription lang="en">
90 +AnyIO is a asynchronous compatibility API that allows applications and libraries written against it to run unmodified on asyncio, curio and trio.
91 +
92 +It bridges the following functionality:
93 +
94 +Task groups
95 +Cancellation
96 +Threads
97 +Signal handling
98 +Asynchronous file I/O
99 +Subprocesses
100 +Inter-task synchronization and communication (locks, conditions, events, semaphores, object streams)
101 +High level networking (TCP, UDP and UNIX sockets)
102 +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.
103 +
104 +AnyIO comes with its own pytest plugin which also supports asynchronous fixtures. It even works with the popular Hypothesis library.
105 + </longdescription>
106 + <upstream>
107 + <remote-id type="github">agronholm/anyio</remote-id>
108 + <remote-id type="pypi">anyio</remote-id>
109 + <maintainer status="unknown">
110 + <email>alex.gronholm@×××××××.fi</email>
111 + <name>Alex Grönholm</name>
112 + </maintainer>
113 + </upstream>
114 +</pkgmetadata>