1 |
commit: 4c0d9d511c57bcb89a2ad3a890cfc22656fb389b |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 12:47:40 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 13:15:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c0d9d51 |
7 |
|
8 |
dev-python/jaraco-itertools: add PyPy3, fix setuptools warning |
9 |
|
10 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/jaraco-itertools/jaraco-itertools-5.0.0.ebuild | 14 ++++++++++---- |
14 |
1 file changed, 10 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/jaraco-itertools/jaraco-itertools-5.0.0.ebuild b/dev-python/jaraco-itertools/jaraco-itertools-5.0.0.ebuild |
17 |
index 427399b7651..f36262075b5 100644 |
18 |
--- a/dev-python/jaraco-itertools/jaraco-itertools-5.0.0.ebuild |
19 |
+++ b/dev-python/jaraco-itertools/jaraco-itertools-5.0.0.ebuild |
20 |
@@ -1,10 +1,11 @@ |
21 |
-# Copyright 1999-2019 Gentoo Authors |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=7 |
26 |
|
27 |
-# Tests fail with PyPy 3 |
28 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
29 |
+PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) |
30 |
+# [options.entry_points] is present in setup.cfg but it is empty |
31 |
+DISTUTILS_USE_SETUPTOOLS=manual |
32 |
|
33 |
inherit distutils-r1 |
34 |
|
35 |
@@ -28,6 +29,7 @@ RDEPEND=" |
36 |
>=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] |
37 |
" |
38 |
BDEPEND=" |
39 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
40 |
>=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
41 |
test? ( |
42 |
${RDEPEND} |
43 |
@@ -40,9 +42,13 @@ distutils_enable_sphinx docs '>=dev-python/jaraco-packaging-3.2' \ |
44 |
S="${WORKDIR}/${MY_PN}-${PV}" |
45 |
|
46 |
python_test() { |
47 |
+ # https://github.com/jaraco/jaraco.itertools/issues/7 |
48 |
+ if [[ "${EPYTHON}" == pypy3 ]]; then |
49 |
+ local extra_pytest_args="--deselect jaraco/itertools.py::jaraco.itertools.always_iterable" |
50 |
+ fi |
51 |
# Override pytest options to skip flake8 |
52 |
PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \ |
53 |
- || die "tests failed with ${EPYTHON}" |
54 |
+ ${extra_pytest_args} || die "tests failed with ${EPYTHON}" |
55 |
} |
56 |
|
57 |
# https://wiki.gentoo.org/wiki/Project:Python/Namespace_packages#File_collisions_between_pkgutil-style_packages |