Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sure/
Date: Sat, 14 May 2022 08:26:04
Message-Id: 1652516753.5cc6ec2b6f9890dd9b93a7905504bc4819a9f91b.mgorny@gentoo
1 commit: 5cc6ec2b6f9890dd9b93a7905504bc4819a9f91b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 07:59:30 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 08:25:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc6ec2b
7
8 dev-python/sure: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/sure/sure-2.0.0-r1.ebuild | 37 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 37 insertions(+)
14
15 diff --git a/dev-python/sure/sure-2.0.0-r1.ebuild b/dev-python/sure/sure-2.0.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..fc548d3074ac
18 --- /dev/null
19 +++ b/dev-python/sure/sure-2.0.0-r1.ebuild
20 @@ -0,0 +1,37 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="idiomatic assertion toolkit with human-friendly failure messages"
32 +HOMEPAGE="
33 + https://github.com/gabrielfalcao/sure/
34 + https://pypi.org/project/sure/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="GPL-3+"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
41 +
42 +RDEPEND="
43 + dev-python/mock[${PYTHON_USEDEP}]
44 + dev-python/six[${PYTHON_USEDEP}]
45 +"
46 +
47 +distutils_enable_tests pytest
48 +
49 +EPYTEST_IGNORE=(
50 + # requires dev-python/nose
51 + tests/test_old_api.py
52 +)
53 +
54 +src_prepare() {
55 + sed -i -e 's:--cov=sure::' setup.cfg || die
56 + distutils-r1_src_prepare
57 +}