1 |
commit: 5eedd4c1e68c264d32109a2819ebee1496604e52 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 09:11:04 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 09:16:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eedd4c1 |
7 |
|
8 |
dev-python/automat: Strip m2r setup_requires |
9 |
|
10 |
Closes: https://bugs.gentoo.org/847532 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/automat/automat-20.2.0-r1.ebuild | 6 ++++++ |
14 |
dev-python/automat/automat-20.2.0.ebuild | 4 +++- |
15 |
2 files changed, 9 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-python/automat/automat-20.2.0-r1.ebuild b/dev-python/automat/automat-20.2.0-r1.ebuild |
18 |
index d56a5190718a..f942d5213df9 100644 |
19 |
--- a/dev-python/automat/automat-20.2.0-r1.ebuild |
20 |
+++ b/dev-python/automat/automat-20.2.0-r1.ebuild |
21 |
@@ -39,6 +39,12 @@ EPYTEST_IGNORE=( |
22 |
benchmark |
23 |
) |
24 |
|
25 |
+src_prepare() { |
26 |
+ # strip m2r dep |
27 |
+ sed -i -e "/'m2r'/d" setup.py || die |
28 |
+ distutils-r1_src_prepare |
29 |
+} |
30 |
+ |
31 |
python_install_all() { |
32 |
if use examples; then |
33 |
docinto examples |
34 |
|
35 |
diff --git a/dev-python/automat/automat-20.2.0.ebuild b/dev-python/automat/automat-20.2.0.ebuild |
36 |
index 84b1f24cd72f..b4084934543a 100644 |
37 |
--- a/dev-python/automat/automat-20.2.0.ebuild |
38 |
+++ b/dev-python/automat/automat-20.2.0.ebuild |
39 |
@@ -3,7 +3,7 @@ |
40 |
|
41 |
EAPI=7 |
42 |
|
43 |
-PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
44 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
45 |
inherit distutils-r1 |
46 |
|
47 |
MY_PN="A${PN:1}" |
48 |
@@ -40,6 +40,8 @@ python_prepare_all() { |
49 |
# avoid a setuptools_scm dependency |
50 |
sed -r -i "s:use_scm_version=True:version='${PV}': ; |
51 |
s:[\"']setuptools[_-]scm[\"'](,|)::" setup.py || die |
52 |
+ # strip m2r dep |
53 |
+ sed -i -e "/'m2r'/d" setup.py || die |
54 |
|
55 |
distutils-r1_python_prepare_all |
56 |
} |