diff options
| author | Michał Górny <mgorny@gentoo.org> | 2023-10-20 22:02:03 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2023-10-20 22:13:39 +0200 |
| commit | f8c4b4f7d10385ae1d64c01cc854e758f1eda92d (patch) | |
| tree | 84309421a61e7b301aad757fd38884f4b0020dce /dev-python/debugpy/debugpy-1.8.0.ebuild | |
| parent | 2ec11d7b3a22d455b7f51439e03b041c2f6c6ed1 (diff) | |
| download | gentoo-f8c4b4f7d10385ae1d64c01cc854e758f1eda92d.tar.gz gentoo-f8c4b4f7d10385ae1d64c01cc854e758f1eda92d.tar.bz2 gentoo-f8c4b4f7d10385ae1d64c01cc854e758f1eda92d.zip | |
dev-python/debugpy: Bump to 1.8.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/debugpy/debugpy-1.8.0.ebuild')
| -rw-r--r-- | dev-python/debugpy/debugpy-1.8.0.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/debugpy/debugpy-1.8.0.ebuild b/dev-python/debugpy/debugpy-1.8.0.ebuild new file mode 100644 index 000000000000..bf665f0da2e0 --- /dev/null +++ b/dev-python/debugpy/debugpy-1.8.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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 + ) + local EPYTEST_IGNORE=( + tests/tests/test_vendoring.py + ) + epytest -p timeout -p xdist -n "$(makeopts_jobs)" --dist=worksteal \ + -k "not attach_pid" +} |
