1 |
commit: 0490f04def6899404e33e2dbbd28787cab38330f |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 10:50:10 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 11:24:29 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0490f04d |
7 |
|
8 |
dev-python/testscenarios: Add python3.5 support |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
.../testscenarios/testscenarios-0.5.0-r1.ebuild | 32 ++++++++++++++++++++++ |
14 |
1 file changed, 32 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild b/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..f7be22f |
19 |
--- /dev/null |
20 |
+++ b/dev-python/testscenarios/testscenarios-0.5.0-r1.ebuild |
21 |
@@ -0,0 +1,32 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="A pyunit extension for dependency injection" |
33 |
+HOMEPAGE="https://launchpad.net/testscenarios" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="Apache-2.0" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
39 |
+ |
40 |
+RDEPEND="dev-python/testtools[${PYTHON_USEDEP}]" |
41 |
+DEPEND="${RDEPEND} |
42 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/pbr-0.11[${PYTHON_USEDEP}]" |
44 |
+ |
45 |
+python_prepare_all() { |
46 |
+ # Remove a faulty file from tests, missing a required attribute |
47 |
+ rm ${PN}/tests/test_testcase.py || die |
48 |
+ distutils-r1_python_prepare_all |
49 |
+} |
50 |
+ |
51 |
+python_test() { |
52 |
+ "${PYTHON}" -m unittest discover |
53 |
+} |