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: Wed, 28 Apr 2021 08:08:21
Message-Id: 1619577332.476cca70ab50e320c06510578e36bd9c8ebe2e03.andrewammerlaan@gentoo
1 commit: 476cca70ab50e320c06510578e36bd9c8ebe2e03
2 Author: Theo Anderson <telans <AT> posteo <DOT> de>
3 AuthorDate: Wed Apr 28 02:35:32 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Wed Apr 28 02:35:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=476cca70
7
8 dev-python/anyio: add 3.0.0
9
10 Signed-off-by: Theo Anderson <telans <AT> posteo.de>
11
12 dev-python/anyio/Manifest | 1 +
13 dev-python/anyio/anyio-3.0.0.ebuild | 61 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-python/anyio/Manifest b/dev-python/anyio/Manifest
17 index 9ed5a6fc5..0f682ca7d 100644
18 --- a/dev-python/anyio/Manifest
19 +++ b/dev-python/anyio/Manifest
20 @@ -1,2 +1,3 @@
21 DIST anyio-2.1.0.tar.gz 95186 BLAKE2B 5dcb110e0e3d543525bb5081c948124e0e0f6bb0a80038104a8ab793ecf961a56d56576ad96a78b0fb69f3c7731dea3d9573b757f859ee8e61e65490432b9b69 SHA512 923467cdfbf6d0f427345704e99aec44cafc21f78a8b3b88d1ca9be93fb52a77d472229a242664977a873faf05c7c47a44a55aa4d0158959f60bf4ac8a46cdeb
22 DIST anyio-2.2.0.tar.gz 97217 BLAKE2B 7b50d997fd83950d16c0e562519b60dbef32bfd6d21e61583a83dd94edc26e27fcd26c7c630f22daaddebea5e148487db1a8c81e0bd82cf4641812dfac8807de SHA512 bca1265eec30830bea5f6fe15f3059793599e9c47d292b3008fcd86c802d76bd692f1a340fd6e3b0aa2401c38576459e516b3defa1ddf8353f18d51280fd73ab
23 +DIST anyio-3.0.0.tar.gz 116952 BLAKE2B d797afbd372d7e0ba3b9b5cd0c7df6d8c8a91e8616aa9af9abf6c7e20cb940592a50d6534eed63619c7a4ead5e431ba12238a0e8b78cc00949b0944012d687e8 SHA512 e677506cb5edfa86381a6e309fd6c1393d4280d3b31e2382b4adef1aef08b678a2418cbf669e9c5607f855066e72fdb9b3dbd196db10aa42a7ef6445ea737fbd
24
25 diff --git a/dev-python/anyio/anyio-3.0.0.ebuild b/dev-python/anyio/anyio-3.0.0.ebuild
26 new file mode 100644
27 index 000000000..f74abd408
28 --- /dev/null
29 +++ b/dev-python/anyio/anyio-3.0.0.ebuild
30 @@ -0,0 +1,61 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7,8} )
37 +
38 +# Build with USE="-doc" first because of circular dependency
39 +# otherwise one gets the error that sphinx-autodoc-typehints
40 +
41 +DOCS_BUILDER="sphinx"
42 +DOCS_DIR="docs"
43 +DOCS_AUTODOC=1
44 +
45 +inherit distutils-r1 docs
46 +
47 +DESCRIPTION="Compatibility layer for multiple asynchronous event loop implementations"
48 +HOMEPAGE="
49 + https://github.com/agronholm/anyio
50 + https://pypi.org/project/anyio
51 +"
52 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
53 +
54 +LICENSE="MIT"
55 +SLOT="0"
56 +KEYWORDS="~amd64"
57 +
58 +RDEPEND="
59 + >=dev-python/curio-1.4[${PYTHON_USEDEP}]
60 + >=dev-python/idna-2.8[${PYTHON_USEDEP}]
61 + >=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
62 + >=dev-python/trio-0.16[${PYTHON_USEDEP}]
63 + $(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7)
64 +"
65 +
66 +BDEPEND="
67 + ${RDEPEND}
68 + doc? (
69 + dev-python/anyio[${PYTHON_USEDEP}]
70 + >=dev-python/sphinx-autodoc-typehints-1.2.0[${PYTHON_USEDEP}]
71 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
72 + )
73 + test? (
74 + >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}]
75 + >=dev-python/pytest-6.0[${PYTHON_USEDEP}]
76 + dev-python/trustme[${PYTHON_USEDEP}]
77 + >=dev-python/uvloop-0.15[${PYTHON_USEDEP}]
78 + )
79 +"
80 +
81 +distutils_enable_tests pytest
82 +
83 +python_test() {
84 + distutils_install_for_testing
85 + pytest -vv \
86 + --deselect tests/test_sockets.py::test_getaddrinfo[asyncio] \
87 + --deselect tests/test_sockets.py::test_getaddrinfo[asyncio+uvloop] \
88 + --deselect tests/test_sockets.py::test_getaddrinfo[curio] \
89 + --deselect tests/test_sockets.py::test_getaddrinfo[trio] \
90 + || die
91 +}