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/trio/
Date: Sat, 28 Nov 2020 13:57:59
Message-Id: 1606435222.842067df269c24d850775b44bd88c123d9595bc5.andrewammerlaan@gentoo
1 commit: 842067df269c24d850775b44bd88c123d9595bc5
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed May 20 02:30:16 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Fri Nov 27 00:00:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=842067df
7
8 dev-python/trio: remove one more test
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/trio/trio-0.14.0-r1.ebuild | 67 +++++++++++++++++++++++++++++++++++
14 1 file changed, 67 insertions(+)
15
16 diff --git a/dev-python/trio/trio-0.14.0-r1.ebuild b/dev-python/trio/trio-0.14.0-r1.ebuild
17 new file mode 100644
18 index 00000000..2da46257
19 --- /dev/null
20 +++ b/dev-python/trio/trio-0.14.0-r1.ebuild
21 @@ -0,0 +1,67 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python3_{6,7} )
28 +
29 +inherit distutils-r1 linux-info
30 +
31 +DESCRIPTION="Python library for async concurrency and I/O"
32 +HOMEPAGE="
33 + https://github.com/python-trio/trio
34 + https://pypi.org/project/trio
35 +"
36 +SRC_URI="https://github.com/python-trio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="|| ( Apache-2.0 MIT )"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +RDEPEND="
43 + dev-python/async_generator[${PYTHON_USEDEP}]
44 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
45 + dev-python/idna[${PYTHON_USEDEP}]
46 + dev-python/outcome[${PYTHON_USEDEP}]
47 + dev-python/sniffio[${PYTHON_USEDEP}]
48 + dev-python/sortedcontainers[${PYTHON_USEDEP}]
49 + $(python_gen_cond_dep 'dev-python/contextvars[${PYTHON_USEDEP}]' python3_6)
50 +"
51 +DEPEND="${RDEPEND}
52 + test? (
53 + >=dev-python/astor-0.8.0[${PYTHON_USEDEP}]
54 + >=dev-python/immutables-0.6[${PYTHON_USEDEP}]
55 + dev-python/ipython[${PYTHON_USEDEP}]
56 + dev-python/jedi[${PYTHON_USEDEP}]
57 + dev-python/pylint[${PYTHON_USEDEP}]
58 + dev-python/pyopenssl[${PYTHON_USEDEP}]
59 + dev-python/trustme[${PYTHON_USEDEP}]
60 + dev-python/yapf[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +distutils_enable_sphinx docs/source \
66 + ">=dev-python/immutables-0.6" \
67 + dev-python/sphinxcontrib-trio \
68 + dev-python/sphinx_rtd_theme \
69 + dev-python/towncrier
70 +
71 +python_prepare_all() {
72 + # Disable tests require IPv6
73 + if ! linux_config_exists || ! linux_chkconfig_present IPV6; then
74 + sed -i -e "/for family in/s/, AF_INET6//" \
75 + -e "/test_getaddrinfo/i@×××××××××××.skip(reason='no IPv6')" \
76 + trio/tests/test_socket.py || die "sed failed for test_socket.py"
77 + fi
78 +
79 + # these tests require internet access
80 + rm trio/tests/test_ssl.py || die
81 + rm trio/tests/test_highlevel_ssl_helpers.py || die
82 +
83 + distutils-r1_python_prepare_all
84 +}
85 +
86 +python_test() {
87 + pytest -vv --deselect "trio/tests/test_exports.py::test_static_tool_sees_all_symbols[jedi-trio.socket]" || die
88 +}