summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-26 11:11:04 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-26 11:16:39 +0200
commit5eedd4c1e68c264d32109a2819ebee1496604e52 (patch)
tree6dd50c8a3a59832f64b62eb11b7e22c1d1ec9bb1 /dev-python/automat
parentdev-python/mypy: Bump to 0.960 (diff)
downloadgentoo-5eedd4c1e68c264d32109a2819ebee1496604e52.tar.gz
gentoo-5eedd4c1e68c264d32109a2819ebee1496604e52.tar.bz2
gentoo-5eedd4c1e68c264d32109a2819ebee1496604e52.zip
dev-python/automat: Strip m2r setup_requires
Closes: https://bugs.gentoo.org/847532 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/automat')
-rw-r--r--dev-python/automat/automat-20.2.0-r1.ebuild6
-rw-r--r--dev-python/automat/automat-20.2.0.ebuild4
2 files changed, 9 insertions, 1 deletions
diff --git a/dev-python/automat/automat-20.2.0-r1.ebuild b/dev-python/automat/automat-20.2.0-r1.ebuild
index d56a5190718a..f942d5213df9 100644
--- a/dev-python/automat/automat-20.2.0-r1.ebuild
+++ b/dev-python/automat/automat-20.2.0-r1.ebuild
@@ -39,6 +39,12 @@ EPYTEST_IGNORE=(
benchmark
)
+src_prepare() {
+ # strip m2r dep
+ sed -i -e "/'m2r'/d" setup.py || die
+ distutils-r1_src_prepare
+}
+
python_install_all() {
if use examples; then
docinto examples
diff --git a/dev-python/automat/automat-20.2.0.ebuild b/dev-python/automat/automat-20.2.0.ebuild
index 84b1f24cd72f..b4084934543a 100644
--- a/dev-python/automat/automat-20.2.0.ebuild
+++ b/dev-python/automat/automat-20.2.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..10} pypy3 )
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
MY_PN="A${PN:1}"
@@ -40,6 +40,8 @@ python_prepare_all() {
# avoid a setuptools_scm dependency
sed -r -i "s:use_scm_version=True:version='${PV}': ;
s:[\"']setuptools[_-]scm[\"'](,|)::" setup.py || die
+ # strip m2r dep
+ sed -i -e "/'m2r'/d" setup.py || die
distutils-r1_python_prepare_all
}