1 |
commit: a52206a7038e5ee992f0e811760c73433835ae66 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 18 10:26:45 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 18 10:46:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a52206a7 |
7 |
|
8 |
dev-python/ansicolor: EAPI8, py3.11, PEP517 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
.../{ansicolor-9999.ebuild => ansicolor-0.3.2-r1.ebuild} | 16 ++++++++++------ |
13 |
dev-python/ansicolor/ansicolor-9999.ebuild | 16 ++++++++++------ |
14 |
2 files changed, 20 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/ansicolor/ansicolor-9999.ebuild b/dev-python/ansicolor/ansicolor-0.3.2-r1.ebuild |
17 |
similarity index 70% |
18 |
copy from dev-python/ansicolor/ansicolor-9999.ebuild |
19 |
copy to dev-python/ansicolor/ansicolor-0.3.2-r1.ebuild |
20 |
index d678863551e3..ceb39bf7b7df 100644 |
21 |
--- a/dev-python/ansicolor/ansicolor-9999.ebuild |
22 |
+++ b/dev-python/ansicolor/ansicolor-0.3.2-r1.ebuild |
23 |
@@ -1,20 +1,22 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
-EAPI=7 |
29 |
+EAPI=8 |
30 |
|
31 |
-PYTHON_COMPAT=( python3_{8..10} ) |
32 |
+PYTHON_COMPAT=( python3_{8..11} ) |
33 |
+DISTUTILS_USE_PEP517=setuptools |
34 |
|
35 |
inherit distutils-r1 |
36 |
|
37 |
if [[ ${PV} == *9999 ]]; then |
38 |
inherit git-r3 |
39 |
EGIT_REPO_URI="https://github.com/numerodix/ansicolor.git" |
40 |
+else |
41 |
# pypi tars don't include tests and github repo is missing release tags, |
42 |
# so only enabling tests for 9999 at this time |
43 |
- distutils_enable_tests pytest |
44 |
-else |
45 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
46 |
+ SRC_URI=" |
47 |
+ https://github.com/numerodix/ansicolor/archive/${PV}.tar.gz |
48 |
+ -> ${P}.gh.tar.gz" |
49 |
KEYWORDS="~amd64 ~x86" |
50 |
fi |
51 |
|
52 |
@@ -23,3 +25,5 @@ HOMEPAGE="https://github.com/numerodix/ansicolor https://pypi.org/project/ansico |
53 |
|
54 |
LICENSE="Apache-2.0" |
55 |
SLOT="0" |
56 |
+ |
57 |
+distutils_enable_tests pytest |
58 |
|
59 |
diff --git a/dev-python/ansicolor/ansicolor-9999.ebuild b/dev-python/ansicolor/ansicolor-9999.ebuild |
60 |
index d678863551e3..ceb39bf7b7df 100644 |
61 |
--- a/dev-python/ansicolor/ansicolor-9999.ebuild |
62 |
+++ b/dev-python/ansicolor/ansicolor-9999.ebuild |
63 |
@@ -1,20 +1,22 @@ |
64 |
-# Copyright 1999-2021 Gentoo Authors |
65 |
+# Copyright 1999-2022 Gentoo Authors |
66 |
# Distributed under the terms of the GNU General Public License v2 |
67 |
|
68 |
-EAPI=7 |
69 |
+EAPI=8 |
70 |
|
71 |
-PYTHON_COMPAT=( python3_{8..10} ) |
72 |
+PYTHON_COMPAT=( python3_{8..11} ) |
73 |
+DISTUTILS_USE_PEP517=setuptools |
74 |
|
75 |
inherit distutils-r1 |
76 |
|
77 |
if [[ ${PV} == *9999 ]]; then |
78 |
inherit git-r3 |
79 |
EGIT_REPO_URI="https://github.com/numerodix/ansicolor.git" |
80 |
+else |
81 |
# pypi tars don't include tests and github repo is missing release tags, |
82 |
# so only enabling tests for 9999 at this time |
83 |
- distutils_enable_tests pytest |
84 |
-else |
85 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
86 |
+ SRC_URI=" |
87 |
+ https://github.com/numerodix/ansicolor/archive/${PV}.tar.gz |
88 |
+ -> ${P}.gh.tar.gz" |
89 |
KEYWORDS="~amd64 ~x86" |
90 |
fi |
91 |
|
92 |
@@ -23,3 +25,5 @@ HOMEPAGE="https://github.com/numerodix/ansicolor https://pypi.org/project/ansico |
93 |
|
94 |
LICENSE="Apache-2.0" |
95 |
SLOT="0" |
96 |
+ |
97 |
+distutils_enable_tests pytest |