Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/executing/
Date: Sun, 13 Sep 2020 07:01:54
Message-Id: 1599980505.e65a8cdfe91cb334bbab25f7d9a06f45c8e198dd.sam@gentoo
1 commit: e65a8cdfe91cb334bbab25f7d9a06f45c8e198dd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 13 07:01:45 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 13 07:01:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e65a8cdf
7
8 dev-python/executing: strip wheel dep, add others
9
10 Needed dev-python/{setuptools_scm, toml}.
11
12 Closes: https://bugs.gentoo.org/741747
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 dev-python/executing/executing-0.5.2.ebuild | 9 +++++++++
17 1 file changed, 9 insertions(+)
18
19 diff --git a/dev-python/executing/executing-0.5.2.ebuild b/dev-python/executing/executing-0.5.2.ebuild
20 index 0f05179cc81..ca2d34b8710 100644
21 --- a/dev-python/executing/executing-0.5.2.ebuild
22 +++ b/dev-python/executing/executing-0.5.2.ebuild
23 @@ -20,6 +20,8 @@ KEYWORDS="~amd64 ~x86"
24
25 # asttokens is optional runtime dep
26 BDEPEND="
27 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
28 + dev-python/toml[${PYTHON_USEDEP}]
29 test? (
30 dev-python/asttokens[${PYTHON_USEDEP}]
31 )"
32 @@ -28,6 +30,13 @@ distutils_enable_tests pytest
33
34 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
35
36 +src_prepare() {
37 + # Kill off useless wheel dep
38 + sed -i -e 's/wheel; //' setup.cfg || die
39 +
40 + distutils-r1_src_prepare
41 +}
42 +
43 python_test() {
44 # this test explodes when collected by pytest
45 "${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}"