1 |
commit: 0975ddab3af4e2a65e7dbb9262a64e752fcd271b |
2 |
Author: Lucian Poston <lucianposton <AT> pm <DOT> me> |
3 |
AuthorDate: Tue Feb 25 21:11:01 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 27 13:54:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0975ddab |
7 |
|
8 |
dev-python/ansicolor: Add python3_{7,8} |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Lucian Poston <lucianposton <AT> pm.me> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-python/ansicolor/ansicolor-0.2.6-r1.ebuild | 25 +++++++++++++++++++++ |
15 |
dev-python/ansicolor/ansicolor-9999.ebuild | 30 ++++++++++++-------------- |
16 |
2 files changed, 39 insertions(+), 16 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/ansicolor/ansicolor-0.2.6-r1.ebuild b/dev-python/ansicolor/ansicolor-0.2.6-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..25c10321fe6 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/ansicolor/ansicolor-0.2.6-r1.ebuild |
23 |
@@ -0,0 +1,25 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
30 |
+ |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+if [[ ${PV} == *9999 ]]; then |
34 |
+ inherit git-r3 |
35 |
+ EGIT_REPO_URI="https://github.com/numerodix/ansicolor.git" |
36 |
+ # pypi tars don't include tests and github repo is missing release tags, |
37 |
+ # so only enabling tests for 9999 at this time |
38 |
+ distutils_enable_tests pytest |
39 |
+else |
40 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
41 |
+ KEYWORDS="~amd64 ~x86" |
42 |
+fi |
43 |
+ |
44 |
+DESCRIPTION="Produce ansi color output and colored highlighting and diffing" |
45 |
+HOMEPAGE="https://github.com/numerodix/ansicolor https://pypi.org/project/ansicolor/" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
|
50 |
diff --git a/dev-python/ansicolor/ansicolor-9999.ebuild b/dev-python/ansicolor/ansicolor-9999.ebuild |
51 |
index e5f2a4f1961..25c10321fe6 100644 |
52 |
--- a/dev-python/ansicolor/ansicolor-9999.ebuild |
53 |
+++ b/dev-python/ansicolor/ansicolor-9999.ebuild |
54 |
@@ -1,27 +1,25 @@ |
55 |
# Copyright 1999-2020 Gentoo Authors |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
|
58 |
-EAPI=6 |
59 |
+EAPI=7 |
60 |
|
61 |
-PYTHON_COMPAT=( python3_6 ) |
62 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
63 |
|
64 |
-inherit distutils-r1 git-r3 |
65 |
+inherit distutils-r1 |
66 |
+ |
67 |
+if [[ ${PV} == *9999 ]]; then |
68 |
+ inherit git-r3 |
69 |
+ EGIT_REPO_URI="https://github.com/numerodix/ansicolor.git" |
70 |
+ # pypi tars don't include tests and github repo is missing release tags, |
71 |
+ # so only enabling tests for 9999 at this time |
72 |
+ distutils_enable_tests pytest |
73 |
+else |
74 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
75 |
+ KEYWORDS="~amd64 ~x86" |
76 |
+fi |
77 |
|
78 |
DESCRIPTION="Produce ansi color output and colored highlighting and diffing" |
79 |
HOMEPAGE="https://github.com/numerodix/ansicolor https://pypi.org/project/ansicolor/" |
80 |
-EGIT_REPO_URI="https://github.com/numerodix/ansicolor.git" |
81 |
|
82 |
LICENSE="Apache-2.0" |
83 |
SLOT="0" |
84 |
-KEYWORDS="" |
85 |
-IUSE="test" |
86 |
-RESTRICT="!test? ( test )" |
87 |
- |
88 |
-DEPEND=" |
89 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
90 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
91 |
-" |
92 |
- |
93 |
-python_test() { |
94 |
- py.test -v || die "Test suite failed with ${EPYTHON}" |
95 |
-} |