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-asyncio/
Date: Sun, 29 Mar 2020 13:21:46
Message-Id: 1585484729.5809afe66f9d0a59bcb35f6f894e3874b62bf78c.andrewammerlaan@gentoo
1 commit: 5809afe66f9d0a59bcb35f6f894e3874b62bf78c
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Sun Mar 29 12:25:29 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sun Mar 29 12:25:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5809afe6
7
8 dev-python/trio-asyncio: do not depend on pytest-runner
9
10 it is deprecated
11
12 also tired to fix tests
13 should probably depend on pytest-marks
14
15 Package-Manager: Portage-2.3.96, Repoman-2.3.22
16 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
17
18 dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 21 ++++++++++++++-------
19 1 file changed, 14 insertions(+), 7 deletions(-)
20
21 diff --git a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
22 index eac1549..ccf267c 100644
23 --- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
24 +++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
25 @@ -3,7 +3,7 @@
26
27 EAPI=7
28
29 -PYTHON_COMPAT=( python3_6 )
30 +PYTHON_COMPAT=( python3_{6,7} )
31
32 inherit distutils-r1
33
34 @@ -18,24 +18,31 @@ LICENSE=" || ( Apache-2.0 MIT )"
35 SLOT="0"
36 KEYWORDS="~amd64 ~x86"
37
38 +# ImportError: cannot import name 'MarkInfo'
39 +# might be an issue in pytest-marks
40 +RESTRICT="test"
41 +
42 RDEPEND="
43 >=dev-python/async_generator-1.6[${PYTHON_USEDEP}]
44 dev-python/outcome[${PYTHON_USEDEP}]
45 >=dev-python/trio-0.12.0[${PYTHON_USEDEP}]
46 $(python_gen_cond_dep '>=dev-python/contextvars-2.1[${PYTHON_USEDEP}]' python3_6)
47 "
48 -DEPEND="
49 - ${RDEPEND}
50 - dev-python/pytest-runner[${PYTHON_USEDEP}]
51 -"
52 +
53 +DEPEND="test? (
54 + dev-python/pytest-marks[${PYTHON_USEDEP}]
55 +)"
56
57 distutils_enable_tests pytest
58 distutils_enable_sphinx docs/source
59
60 -src_prepare() {
61 +python_prepare_all() {
62 + # do not depend on deprecated dep
63 + sed -i -e '/pytest-runner/d' setup.py || die
64 +
65 #remove tests from installed packages
66 #TODO: remove hardcoded
67 sed -i 's|packages=find_packages()|packages=["trio_asyncio"]|' setup.py || die
68
69 - default
70 + distutils-r1_python_prepare_all
71 }