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/testscenarios/
Date: Sat, 21 May 2022 11:22:29
Message-Id: 1653132139.3f30bb55c4cf7ebd4311daff680bf066c34a644b.mgorny@gentoo
1 commit: 3f30bb55c4cf7ebd4311daff680bf066c34a644b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 21 10:32:21 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 21 11:22:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f30bb55
7
8 dev-python/testscenarios: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../testscenarios/testscenarios-0.5.0-r2.ebuild | 36 ++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-python/testscenarios/testscenarios-0.5.0-r2.ebuild b/dev-python/testscenarios/testscenarios-0.5.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..6c7392220389
18 --- /dev/null
19 +++ b/dev-python/testscenarios/testscenarios-0.5.0-r2.ebuild
20 @@ -0,0 +1,36 @@
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} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="A pyunit extension for dependency injection"
32 +HOMEPAGE="
33 + https://launchpad.net/testscenarios/
34 + https://github.com/testing-cabal/testscenarios/
35 + https://pypi.org/project/testscenarios/
36 +"
37 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
38 +
39 +LICENSE="Apache-2.0"
40 +SLOT="0"
41 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
42 +
43 +RDEPEND="
44 + dev-python/testtools[${PYTHON_USEDEP}]
45 +"
46 +
47 +# using pytest for tests since unittest loader fails with py3.5+
48 +BDEPEND="
49 + >=dev-python/pbr-0.11[${PYTHON_USEDEP}]
50 +"
51 +
52 +distutils_enable_tests pytest
53 +
54 +EPYTEST_DESELECT=(
55 + testscenarios/tests/test_testcase.py
56 +)