1 |
commit: e3eaeecdc730dfec9f3858ad682068a80eb73a07 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 26 16:49:39 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 26 21:53:30 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3eaeecd |
7 |
|
8 |
dev-python/ansicolor: add live ebuild. |
9 |
|
10 |
It has tests! |
11 |
|
12 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/7285 |
14 |
|
15 |
dev-python/ansicolor/ansicolor-9999.ebuild | 26 ++++++++++++++++++++++++++ |
16 |
1 file changed, 26 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/ansicolor/ansicolor-9999.ebuild b/dev-python/ansicolor/ansicolor-9999.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..bbb99ff83a3 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/ansicolor/ansicolor-9999.ebuild |
23 |
@@ -0,0 +1,26 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) |
30 |
+ |
31 |
+inherit distutils-r1 git-r3 |
32 |
+ |
33 |
+DESCRIPTION="Produce ansi color output and colored highlighting and diffing" |
34 |
+HOMEPAGE="https://github.com/numerodix/ansicolor" |
35 |
+EGIT_REPO_URI="https://github.com/numerodix/ansicolor.git" |
36 |
+ |
37 |
+LICENSE="Apache-2.0" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="" |
40 |
+IUSE="test" |
41 |
+ |
42 |
+DEPEND=" |
43 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
44 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
45 |
+" |
46 |
+ |
47 |
+python_test() { |
48 |
+ py.test -v || die "Test suite failed with ${EPYTHON}" |
49 |
+} |