mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-24 20:48:31 -07:00
dev-python/executing: add asttokens as optional dep
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user