summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-09-04 10:18:20 +0200
committerMichał Górny <mgorny@gentoo.org>2021-09-04 10:19:54 +0200
commit22049b9edf9b8846197f024ef36f46e35f590ac7 (patch)
tree0ee3ee1f6c51f99d5fa626387d856b65c03b3995
parentprofiles: last-rite dev-util/trinity (diff)
downloadgentoo-22049b9edf9b8846197f024ef36f46e35f590ac7.tar.gz
gentoo-22049b9edf9b8846197f024ef36f46e35f590ac7.tar.bz2
gentoo-22049b9edf9b8846197f024ef36f46e35f590ac7.zip
dev-python/black: Remove setuptools_scm version bind
Closes: https://bugs.gentoo.org/811549 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/black/black-21.8_beta0.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-python/black/black-21.8_beta0.ebuild b/dev-python/black/black-21.8_beta0.ebuild
index 476aa5429eae..93ab59f8b412 100644
--- a/dev-python/black/black-21.8_beta0.ebuild
+++ b/dev-python/black/black-21.8_beta0.ebuild
@@ -40,8 +40,15 @@ distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV}
+src_prepare() {
+ # remove unnecessary bind that worked around broken 6.1.0/6.2.0 releases
+ sed -i -e '/setuptools_scm/s:~=:>=:' setup.cfg || die
+ distutils-r1_src_prepare
+}
+
python_test() {
- cp "${S}"/src/black_primer/primer.json "${BUILD_DIR}"/lib/black_primer/primer.json || die
+ cp "${S}"/src/black_primer/primer.json \
+ "${BUILD_DIR}"/lib/black_primer/primer.json || die
distutils_install_for_testing
epytest -m "not python2"
}