Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cram/
Date: Thu, 30 May 2019 20:57:55
Message-Id: 1559249839.ef74c44c238483b682040c420b4a566ad483d11e.soap@gentoo
1 commit: ef74c44c238483b682040c420b4a566ad483d11e
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 20:57:19 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 20:57:19 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef74c44c
7
8 dev-util/cram: Add pypy3 and py3.7 support
9
10 * EAPI=7
11 * Add test suite
12 * Remove py2, as it causes failures in the test suite
13 when dev-python/configparser is installed
14
15 Package-Manager: Portage-2.3.67, Repoman-2.3.13
16 Signed-off-by: David Seifert <soap <AT> gentoo.org>
17
18 dev-util/cram/cram-0.7.ebuild | 11 ++++++-----
19 1 file changed, 6 insertions(+), 5 deletions(-)
20
21 diff --git a/dev-util/cram/cram-0.7.ebuild b/dev-util/cram/cram-0.7.ebuild
22 index 05dedeb0a0a..80888de3e6c 100644
23 --- a/dev-util/cram/cram-0.7.ebuild
24 +++ b/dev-util/cram/cram-0.7.ebuild
25 @@ -1,9 +1,9 @@
26 # Copyright 1999-2019 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 -EAPI=6
30 +EAPI=7
31
32 -PYTHON_COMPAT=( python{2_7,3_{5,6}} )
33 +PYTHON_COMPAT=( python3_{5,6,7} pypy3 )
34
35 inherit distutils-r1
36
37 @@ -14,7 +14,8 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
38 LICENSE="GPL-2"
39 SLOT="0"
40 KEYWORDS="amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd"
41 -IUSE=""
42
43 -DEPEND=""
44 -RDEPEND="${DEPEND}"
45 +python_test() {
46 + distutils_install_for_testing
47 + "${EPYTHON}" "${TEST_DIR}"/scripts/cram tests || die "Tests fail with ${EPYTHON}"
48 +}