summaryrefslogtreecommitdiff
path: root/dev-python/executing
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/executing')
-rw-r--r--dev-python/executing/Manifest1
-rw-r--r--dev-python/executing/executing-2.3.0.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/executing/Manifest b/dev-python/executing/Manifest
index fdff4cf06c5d..268c70f2c7d3 100644
--- a/dev-python/executing/Manifest
+++ b/dev-python/executing/Manifest
@@ -1 +1,2 @@
DIST executing-2.2.1.tar.gz 1129488 BLAKE2B 92060a941c3da32812475d1c3123d230a929e13042bd43c85494b4d72bee268c360475822aefda1059ce9144f77d1762390412ac61f435201531df30b718e1e6 SHA512 f5d00c47de7133c0d81b45982ec833bcf8ff80902695eadf563b276864c9844b1dd3865be12099a531fa6c872fd8cd2d72c7c6c7b2d601b8675d6758e6b179ae
+DIST executing-2.3.0.tar.gz 1338003 BLAKE2B 65d141f89d7314c4fd798dd731a4e9a0e084a6a558aa4f08702ef24663e638c42c8f784994707f0e237ee218f87f6ce4ddc222c6257f7d5664432c977a1a7246 SHA512 e640fadf9c18bd5918516c124c6034488cc276933272d423dca0e69f1ba4a3a2dc866969459503b46dfae69ad30d816136e5f613d8090313f9af8b1ffb06d458
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
+}