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/trio-asyncio/
Date: Wed, 31 Aug 2022 13:07:45
Message-Id: 1661951214.1244989d9b3f6e6b3ecf17dce7df4404bc56faf1.andrewammerlaan@gentoo
1 commit: 1244989d9b3f6e6b3ecf17dce7df4404bc56faf1
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 31 13:05:42 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 13:06:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1244989d
7
8 dev-python/trio-asyncio: update EAPI 7 -> 8, pep517
9
10 Closes: https://bugs.gentoo.org/834955
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/trio-asyncio/Manifest | 1 +
14 .../trio-asyncio/trio-asyncio-0.12.0-r1.ebuild | 41 ++++++++++++++++++++++
15 2 files changed, 42 insertions(+)
16
17 diff --git a/dev-python/trio-asyncio/Manifest b/dev-python/trio-asyncio/Manifest
18 index a4fd4634294e..6b789ea8d080 100644
19 --- a/dev-python/trio-asyncio/Manifest
20 +++ b/dev-python/trio-asyncio/Manifest
21 @@ -1 +1,2 @@
22 +DIST trio-asyncio-0.12.0.gh.tar.gz 72508 BLAKE2B f2dad48e20dadb81f603f8e7edf5d108f5c1dec332e65599e06495a9e3b919d20a15e3cb0d4f06c46a0e844cd79a88c172043b5cae2bc632661679a9ac854c04 SHA512 da630bf95d0736efd419a7b84d3fcb55f4440ef5f3ac584f36b2eca9188145d4581b20d4842b1322b07f176822f7c76e32ae57ac71899ea2445ce1783bcd382c
23 DIST trio-asyncio-0.12.0.tar.gz 72508 BLAKE2B f2dad48e20dadb81f603f8e7edf5d108f5c1dec332e65599e06495a9e3b919d20a15e3cb0d4f06c46a0e844cd79a88c172043b5cae2bc632661679a9ac854c04 SHA512 da630bf95d0736efd419a7b84d3fcb55f4440ef5f3ac584f36b2eca9188145d4581b20d4842b1322b07f176822f7c76e32ae57ac71899ea2445ce1783bcd382c
24
25 diff --git a/dev-python/trio-asyncio/trio-asyncio-0.12.0-r1.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.12.0-r1.ebuild
26 new file mode 100644
27 index 000000000000..0130aa355548
28 --- /dev/null
29 +++ b/dev-python/trio-asyncio/trio-asyncio-0.12.0-r1.ebuild
30 @@ -0,0 +1,41 @@
31 +# Copyright 1999-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..10} )
37 +DISTUTILS_USE_PEP517=setuptools
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="a re-implementation of the asyncio mainloop on top of Trio"
41 +HOMEPAGE="
42 + https://github.com/python-trio/trio-asyncio
43 + https://pypi.org/project/trio-asyncio/
44 +"
45 +SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
46 +
47 +LICENSE="|| ( Apache-2.0 MIT )"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +
51 +RDEPEND="
52 + dev-python/outcome[${PYTHON_USEDEP}]
53 + dev-python/sniffio[${PYTHON_USEDEP}]
54 + >=dev-python/trio-0.15.0[${PYTHON_USEDEP}]
55 +"
56 +BDEPEND="
57 + test? (
58 + >=dev-python/pytest-trio-0.6[${PYTHON_USEDEP}]
59 + )
60 +"
61 +PATCHES=( "${FILESDIR}/no-pytest-runner.patch" )
62 +
63 +EPYTEST_DESELECT=(
64 + # RuntimeError: You're within a Trio environment.
65 + # https://bugs.gentoo.org/834955
66 + /Python-3.10/test_asyncio/test_locks.py::ConditionTests::test_ambiguo
67 + /Python-3.11/test_asyncio/test_locks.py::ConditionTests::test_ambiguo
68 +)
69 +
70 +distutils_enable_tests pytest
71 +distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio dev-python/sphinx_rtd_theme