summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-10-29 20:39:12 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-10-29 21:17:56 +0300
commit24cfaa4324f23f4243dd71bef2c1e2ed5fdb1090 (patch)
tree7b434416fccefa379f7f5a00cfa1ca05809292de /dev-python/tappy
parentdev-python/tappy: fix DISTUTILS_USE_SETUPTOOLS (diff)
downloadgentoo-24cfaa4324f23f4243dd71bef2c1e2ed5fdb1090.tar.gz
gentoo-24cfaa4324f23f4243dd71bef2c1e2ed5fdb1090.tar.bz2
gentoo-24cfaa4324f23f4243dd71bef2c1e2ed5fdb1090.zip
dev-python/tappy: remove IUSE=yaml
Runtime only optional dependencies, so we will use optfeature Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/tappy')
-rw-r--r--dev-python/tappy/metadata.xml4
-rw-r--r--dev-python/tappy/tappy-3.0.ebuild13
2 files changed, 6 insertions, 11 deletions
diff --git a/dev-python/tappy/metadata.xml b/dev-python/tappy/metadata.xml
index 2ade65721944..7937bfc0c61c 100644
--- a/dev-python/tappy/metadata.xml
+++ b/dev-python/tappy/metadata.xml
@@ -5,10 +5,6 @@
<email>python@gentoo.org</email>
</maintainer>
<stabilize-allarches/>
- <use>
- <flag name="yaml">Pull dependencies needed to support YAML
- blocks associated with test results.</flag>
- </use>
<upstream>
<remote-id type="github">python-tap/tappy</remote-id>
<remote-id type="pypi">tap.py</remote-id>
diff --git a/dev-python/tappy/tappy-3.0.ebuild b/dev-python/tappy/tappy-3.0.ebuild
index 1e5e46fa18a2..2992e2720c5a 100644
--- a/dev-python/tappy/tappy-3.0.ebuild
+++ b/dev-python/tappy/tappy-3.0.ebuild
@@ -4,7 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1
+inherit distutils-r1 optfeature
MY_PN=tap.py
DESCRIPTION="Test Anything Protocol (TAP) tools"
@@ -15,13 +15,7 @@ S=${WORKDIR}/${MY_PN}-${PV}
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-IUSE="yaml"
-RDEPEND="
- yaml? (
- dev-python/more-itertools[${PYTHON_USEDEP}]
- dev-python/pyyaml[${PYTHON_USEDEP}]
- )"
BDEPEND="
dev-python/Babel[${PYTHON_USEDEP}]
test? (
@@ -30,3 +24,8 @@ BDEPEND="
)"
distutils_enable_tests unittest
+
+pkg_postinst() {
+ optfeature "YAML blocks associated with test results" \
+ "dev-python/more-itertools dev-python/pyyaml"
+}