dev-python/executing: add asttokens as optional dep

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2022-10-10 10:56:52 +03:00
parent c039d2c859
commit 2e91e8ba15

View File

@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
inherit distutils-r1 optfeature
DESCRIPTION="Get information about what a Python frame is currently doing"
HOMEPAGE="
@@ -22,7 +22,6 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
# asttokens is optional runtime dep
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
@@ -41,3 +40,7 @@ python_test() {
"${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}"
epytest tests/test_pytest.py
}
pkg_postinst() {
optfeature "getting node's source code" dev-python/asttokens
}