dev-python/debugpy: add 1.8.8

Closes: #4215
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2025-02-21 12:34:20 +01:00
parent 905dca732d
commit c9626a2ac0
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
2 changed files with 81 additions and 0 deletions

View File

@ -1,6 +1,8 @@
AUX debugpy-1.8.0-unbundle-pydevd.patch 1480 BLAKE2B 6694cbb68e8e5793f22fedc9351875810c86c1add4299bbb5360dedc24bcbdbb0128163cc11dab3effc611dbe5ef43ea45e9504914f6c55f4f66b76b9da0b804 SHA512 553ce357019e561e50770bf747adc33ac037cf5aa9fc08c44ce9c1cb87ecba28b7c632adb5b743c38067c1bb6b97f1d239ad8dee404332bc8028be44afd018ce
DIST debugpy-1.8.1.gh.tar.gz 6900806 BLAKE2B 5f9151a1a8d679c2f81d8eb1ce62b9e1f8a8cfeea7301e2f15113b95543e48ac971681c20bdc9bb9b85376be2b23cddbffe988f68b8f23cd0214905d11598905 SHA512 0eacee36904ee991a68da539b60768811606bbf57076efd07ffe2ee6a24e8a5e4cf86cd30ed948136466af71d1fb63b14f60334ffe94cf8c626b449a731ca0d8
DIST debugpy-1.8.6.gh.tar.gz 7297999 BLAKE2B 8c8b3cb37ab797be705c6af46be7bed44f46e02e2d0c672e730a1a4e4054d95d4892f2c39dd558c0c779f790e4b81d308aca443fd5da567dd080356092ca00b8 SHA512 2f948f4f565cbba183331ef755b0d1fef9b732e8f2b23aa6fe2e87ecd51845d2dd7a2764e70646f9010e9d8bd75264161008503b11fa47e78328de149694135b
DIST debugpy-1.8.8.gh.tar.gz 4217559 BLAKE2B 59589e0c0656bb9696b438cc401fd08a523c60f4358f408689b56dfcbfbcff1bdcd1ed26598082fc8a2edba1b8a49d54bfe9edafad3aa1c2d626301f59c2ae88 SHA512 9b9860d44071516fc0ab029c23c81ae5a745587cf6dfeba72019ae1de7d59a31a1b4cccf858115da19c590a548c6d4513d50326bc7d6a77dace7016135ba043a
EBUILD debugpy-1.8.1.ebuild 1907 BLAKE2B 3a46eefe5544fce3dd3126e23433328eb7b993547d60b02c0e185e468d17e032cada2ed7b04dcc549dfaf7e659efb4dac6d746ce480da1dc41b13908dbc24625 SHA512 2573c96800909b018cac1677f29bbdca66ea1f91fa57d1685b7d15e2b90d32b3cf630e92b289e396bd23892f52f7c2cfaef1f2b644192f29fc5c5258bd5be40c
EBUILD debugpy-1.8.6.ebuild 1907 BLAKE2B 3a46eefe5544fce3dd3126e23433328eb7b993547d60b02c0e185e468d17e032cada2ed7b04dcc549dfaf7e659efb4dac6d746ce480da1dc41b13908dbc24625 SHA512 2573c96800909b018cac1677f29bbdca66ea1f91fa57d1685b7d15e2b90d32b3cf630e92b289e396bd23892f52f7c2cfaef1f2b644192f29fc5c5258bd5be40c
EBUILD debugpy-1.8.8.ebuild 1907 BLAKE2B 3a46eefe5544fce3dd3126e23433328eb7b993547d60b02c0e185e468d17e032cada2ed7b04dcc549dfaf7e659efb4dac6d746ce480da1dc41b13908dbc24625 SHA512 2573c96800909b018cac1677f29bbdca66ea1f91fa57d1685b7d15e2b90d32b3cf630e92b289e396bd23892f52f7c2cfaef1f2b644192f29fc5c5258bd5be40c
MISC metadata.xml 522 BLAKE2B 9c9cf443d38c8de3516a488f67f81b68759d11283efd464dba3fe27191f2b66cdd622d32465c0820152bda74e92b6c8e3ade57c92a40d61dbbc7587df50f2c60 SHA512 f5a601e50c25ca8105b3a2307bb3b183db6a85644d7bf7e67c036ac2807006a77c9856b9058c96590cd7c1041890d2a9863d0ec0991c75cc462c1cd7df6d8b39

View File

@ -0,0 +1,79 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 multiprocessing
DESCRIPTION="An implementation of the Debug Adapter Protocol for Python"
HOMEPAGE="
https://github.com/microsoft/debugpy/
https://pypi.org/project/debugpy/
"
SRC_URI="
https://github.com/microsoft/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
RDEPEND="
dev-python/pydevd[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
# Unbundle dev-python/pydevd
rm -r src/debugpy/_vendored/pydevd || die
local PATCHES=(
"${FILESDIR}/${PN}-1.8.0-unbundle-pydevd.patch"
)
# Drop unnecessary and unrecognized option
# __main__.py: error: unrecognized arguments: -n8
# Do not timeout
sed -e '/addopts/d' -e '/timeout/d' -i pytest.ini || die
distutils-r1_python_prepare_all
}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local EPYTEST_DESELECT=(
tests/debugpy/test_gevent.py::test_gevent
tests/debugpy/test_run.py::test_custom_python_args
tests/tests/test_timeline.py::test_occurrences
# TODO: random regressions
tests/debugpy/test_flask.py::test_flask_breakpoint_multiproc
tests/debugpy/test_exception.py::test_raise_exception_options
tests/debugpy/test_exception.py::test_vsc_exception_options_raise_without_except
)
local EPYTEST_IGNORE=(
tests/tests/test_vendoring.py
)
case ${EPYTHON} in
python3.12)
EPYTEST_DESELECT+=(
tests/debugpy/test_flask.py
)
;;
esac
epytest -p timeout -p xdist -n "$(makeopts_jobs)" --dist=worksteal \
-k "not attach_pid"
}