diff options
| author | Crucible <crucible@localhost> | 2026-10-10 20:48:09 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-10 20:48:09 -0500 |
| commit | f118d22765d50ec3494331d5b5c45810304ea943 (patch) | |
| tree | 74a62409a22a6d022c492e5b57c531d27704d51f /dev-python/executing/executing-2.3.0.ebuild | |
| parent | 8d50579e39879dc6ba06d9fa6829f2e9a2c77420 (diff) | |
| download | srcux-f118d22765d50ec3494331d5b5c45810304ea943.tar.gz srcux-f118d22765d50ec3494331d5b5c45810304ea943.tar.xz srcux-f118d22765d50ec3494331d5b5c45810304ea943.zip | |
Publish srcux candidate 0000000623-20261010-204610
Diffstat (limited to 'dev-python/executing/executing-2.3.0.ebuild')
| -rw-r--r-- | dev-python/executing/executing-2.3.0.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/executing/executing-2.3.0.ebuild b/dev-python/executing/executing-2.3.0.ebuild new file mode 100644 index 000000000000..8b3539ead2b2 --- /dev/null +++ b/dev-python/executing/executing-2.3.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{13..14} ) +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="Get information about what a Python frame is currently doing" +HOMEPAGE=" + https://github.com/alexmojaki/executing/ + https://pypi.org/project/executing/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/asttokens-2.1.0[${PYTHON_USEDEP}] + dev-python/littleutils[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local EPYTEST_DESELECT=() + if ! has_version "dev-python/ipython[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_ipython.py + ) + fi + + epytest +} + +pkg_postinst() { + optfeature "getting node's source code" dev-python/asttokens +} |
