dev-python/debugpy: add 1.8.1
Closes: #2955 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
f0d279e7e0
commit
3586c6a87f
|
@ -617,11 +617,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
|||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1846 Ebuilds in total, 1835 of them have in total 1854 (42 different) licenses assigned.
|
||||
There are 1847 Ebuilds in total, 1836 of them have in total 1855 (42 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1047|
|
||||
|MIT|1048|
|
||||
|Apache-2.0|419|
|
||||
|GPL-3|121|
|
||||
|BSD|103|
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
AUX debugpy-1.8.0-unbundle-pydevd.patch 1480 BLAKE2B 6694cbb68e8e5793f22fedc9351875810c86c1add4299bbb5360dedc24bcbdbb0128163cc11dab3effc611dbe5ef43ea45e9504914f6c55f4f66b76b9da0b804 SHA512 553ce357019e561e50770bf747adc33ac037cf5aa9fc08c44ce9c1cb87ecba28b7c632adb5b743c38067c1bb6b97f1d239ad8dee404332bc8028be44afd018ce
|
||||
DIST debugpy-1.8.0.gh.tar.gz 6760323 BLAKE2B 99c4188c0b0383dc4dcbdd86c4d35e6eb973ca32ba56b757adea9668b161f20f17b436e0dc019790b1e85586387fc848712143c5e3d3814e2522850d97a4048e SHA512 f9e47371ca854c12811d1c0984f063b1ad5cac2bea769f91a67f9fa125cfcbeccbecafca9b9d5ea16a4ed8a1c123f34db3ba19efe1567b93a86cbd325239b355
|
||||
EBUILD debugpy-1.8.0.ebuild 1019 BLAKE2B 0f291f1d99a96d04124eacfdfc2c4dcee3af02c99b1dbef405871be25875dfb60200b73e8681df40f888845b3de781d673539e5c1a5b81990dc4ac3efab625d3 SHA512 5253adcb9fa791c32e6cb93ce39727a9a922c2c171efc12cf43c0053eb7226c6721355a994034d0f0c33986bcaf2e2dd1fdaa64e291486e5999726d762fbcb18
|
||||
DIST debugpy-1.8.1.gh.tar.gz 6900815 BLAKE2B f2abd2f852cc321dd7070f28100e45f463b318b2ff6e70d36f4a4d27a4b70d9da934db1148059bb2b996d4237c042d0b18ae323d4370c44ce479ef5222bc3c30 SHA512 3a64f82b984036bca868551de35babdb167b5f24da96bcee2b274039aa019d28aa376f31c89518725085279be05777454077805fa78f485a3ee4f09494886ff7
|
||||
EBUILD debugpy-1.8.0.ebuild 1019 BLAKE2B 3bcf2f8004ec890b9990ff9c8f7caa30a073b47f81a0576340f03abcfe99e44d3599398af7c0104976714fe55a7bf722187d5a7f6b0533df73dacc168a5c5ebe SHA512 a37ba3c19e6df3aaf90fcc5d8dc6f45ef54badc6601557fe42d21bf08d211542b2cbd4cd3e10ae06f8d16581e76457ca16a9a30430ff253d6d976d9e6a3ebcc9
|
||||
EBUILD debugpy-1.8.1.ebuild 1907 BLAKE2B 7a544586710dd9043fb2fb59746da75031b28c7e365bb4d13340e4e1b7824b209c82535157b4bcd87861162567aca24285a793157f04b78d380eb610a6f53e42 SHA512 2e981f9ad89833ddcbdabeaaef7235bb61f70982f64f4cdbb37f2d4a05be8be6b018169bdc1ffa163e26222c8a43a386d5050af5e2aa4a4be590d0872097d937
|
||||
MISC metadata.xml 522 BLAKE2B 9c9cf443d38c8de3516a488f67f81b68759d11283efd464dba3fe27191f2b66cdd622d32465c0820152bda74e92b6c8e3ade57c92a40d61dbbc7587df50f2c60 SHA512 f5a601e50c25ca8105b3a2307bb3b183db6a85644d7bf7e67c036ac2807006a77c9856b9058c96590cd7c1041890d2a9863d0ec0991c75cc462c1cd7df6d8b39
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
|
|
|
@ -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..12} )
|
||||
|
||||
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"
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index 0bb4f00..abfce1c 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -18,12 +18,10 @@ del sys.path[0]
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "src"))
|
||||
import debugpy
|
||||
-import debugpy._vendored
|
||||
|
||||
del sys.path[0]
|
||||
|
||||
|
||||
-PYDEVD_ROOT = debugpy._vendored.project_root("pydevd")
|
||||
DEBUGBY_ROOT = os.path.dirname(os.path.abspath(debugpy.__file__))
|
||||
|
||||
|
||||
@@ -146,8 +144,6 @@ if __name__ == "__main__":
|
||||
extras["platforms"] = platforms
|
||||
|
||||
cmds = versioneer.get_cmdclass()
|
||||
- override_build(cmds)
|
||||
- override_build_py(cmds)
|
||||
|
||||
setuptools.setup(
|
||||
name="debugpy",
|
||||
diff --git a/src/debugpy/_vendored/force_pydevd.py b/src/debugpy/_vendored/force_pydevd.py
|
||||
index cfd8927..0cb1bca 100644
|
||||
--- a/src/debugpy/_vendored/force_pydevd.py
|
||||
+++ b/src/debugpy/_vendored/force_pydevd.py
|
||||
@@ -8,15 +8,6 @@ import warnings
|
||||
|
||||
from . import check_modules, prefix_matcher, preimport, vendored
|
||||
|
||||
-# Ensure that pydevd is our vendored copy.
|
||||
-_unvendored, _ = check_modules('pydevd',
|
||||
- prefix_matcher('pydev', '_pydev'))
|
||||
-if _unvendored:
|
||||
- _unvendored = sorted(_unvendored.values())
|
||||
- msg = 'incompatible copy of pydevd already imported'
|
||||
- # raise ImportError(msg)
|
||||
- warnings.warn(msg + ':\n {}'.format('\n '.join(_unvendored)))
|
||||
-
|
||||
# If debugpy logging is enabled, enable it for pydevd as well
|
||||
if "DEBUGPY_LOG_DIR" in os.environ:
|
||||
os.environ[str("PYDEVD_DEBUG")] = str("True")
|
Loading…
Reference in New Issue