dev-python/debugpy: add 1.6.4, drop 1.6.0

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
Andreas Billmeier 2023-01-07 12:43:27 +01:00 committed by Andreas Billmeier
parent a8ad5bad5b
commit 06fbe72e42
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 17 additions and 87 deletions

View File

@ -1,4 +1,3 @@
AUX debugpy-1.4.2-unbundle-pydevd.patch 2452 BLAKE2B 44cebbf0b1bd07c1abb5d8ea6489ff241ddd3bab28e8697462466c1d70160a2d7a2a7f51bcb1747fb8129854b16adb8eda7d7598741fe0c72ea6f8217878e569 SHA512 ee7b5a6125e071fe414e481633224a3e77a5f8d0cbf3fcd855932db3154f4371a92058ecb730b8f69c97a4f01601425eaa271aeb04cda5f2ac5c867c90001b95
DIST debugpy-1.6.0.gh.tar.gz 6366079 BLAKE2B 134d2adcae6ec926dcdb7161f0874b830a1d0e3c55abb991f4861fa5a58045437ee4f4cb4c9572b902e3e33634bc3f9970ae055985b983d89d0ef1d99561bda8 SHA512 fe245d4ff751a6c2ef0e75a5249f99661b78075ac62c931c20e3ccbc9389d39a08dc2fda44a33eb23a0a76e5ee339edae439b0004d130cdfe421048f3cc83962
EBUILD debugpy-1.6.0.ebuild 934 BLAKE2B 1f56b42dcbd2ea006333c8b454bd816616181c150179873e670ca629d853a07aec932044957ba26032de195b39b849317b639b8777e95005c97c81c3ebaf1d28 SHA512 d120f4a468c565f9653bd11588441116995c855c2d57a235ef6971bb4d6e91755a627a9a76b17c6e589fe84f7d039e9442d049348d8a70ec13f73d391297133a
DIST debugpy-1.6.4.gh.tar.gz 6937201 BLAKE2B 9be3d508014bc46ed546e3184fea1ea36332025584dd87859f196bd9ed26b5eba9a0b622516fa0f3f9369ac3d90242d9e37412445a1045a52ce0be820b80e09b SHA512 0f353f745502a4ed6a644bc32aa148f45104e7f07daa41c0bf6e59eefdf104f6c5b4328693c237b9c6e8736b542e25938b336288f21cd4967bb81f6c42125fbc
EBUILD debugpy-1.6.4.ebuild 1018 BLAKE2B b9b6de4ef6de7579199e84cba61d404905d269f4f70be721136d864fb8fe564925ab56100936544c27f0e6a2a6872f5a9c08c76d1d04e064c866b96b7f3c090b SHA512 57fb0c1386cd4ac2813f9ec02ecffe7b995340e5fbdd911c95c6e942e1219d083bde250b41f1af5c6db191434a428d994042d5f62d30e3f4db6621fe8e5849d6
MISC metadata.xml 522 BLAKE2B 9c9cf443d38c8de3516a488f67f81b68759d11283efd464dba3fe27191f2b66cdd622d32465c0820152bda74e92b6c8e3ade57c92a40d61dbbc7587df50f2c60 SHA512 f5a601e50c25ca8105b3a2307bb3b183db6a85644d7bf7e67c036ac2807006a77c9856b9058c96590cd7c1041890d2a9863d0ec0991c75cc462c1cd7df6d8b39

View File

@ -1,22 +1,27 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{8..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
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"
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 ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
KEYWORDS="amd64 arm arm64 x86"
# There is not enough time in the universe for this test suite
# This is completely broken
RESTRICT="test"
RDEPEND=""
RDEPEND="dev-python/pydevd[${PYTHON_USEDEP}]"
BDEPEND="test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
@ -26,5 +31,9 @@ python_prepare_all() {
# __main__.py: error: unrecognized arguments: -n8
# Do not timeout
sed -e '/addopts/d' -e '/timeout/d' -i pytest.ini || die
# Unbundle dev-python/pydevd
#rm -r src/debugpy/_vendored tests/tests/test_vendoring.py || die
distutils-r1_python_prepare_all
}

View File

@ -1,78 +0,0 @@
diff --git a/setup.py b/setup.py
index ee5bbba..f69dc95 100644
--- a/setup.py
+++ b/setup.py
@@ -21,12 +21,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__))
@@ -36,27 +34,6 @@ def get_buildplatform():
return None
-def cython_build():
- print("Compiling extension modules (set SKIP_CYTHON_BUILD=1 to omit)")
- subprocess.call(
- [
- sys.executable,
- os.path.join(PYDEVD_ROOT, "setup_cython.py"),
- "build_ext",
- "-i",
- ]
- )
-
-
-def iter_vendored_files():
- # Add pydevd files as data files for this package. They are not
- # treated as a package of their own, because we don't actually
- # want to provide pydevd - just use our own copy internally.
- for project in debugpy._vendored.list_all():
- for filename in debugpy._vendored.iter_packaging_files(project):
- yield filename
-
-
# bdist_wheel determines whether the package is pure or not based on ext_modules.
# However, all pydevd native modules are prebuilt and packaged as data, so they
# should not be in the list.
@@ -121,8 +98,6 @@ with open("DESCRIPTION.md", "r") as fh:
if __name__ == "__main__":
- if not os.getenv("SKIP_CYTHON_BUILD"):
- cython_build()
extras = {}
platforms = get_buildplatform()
@@ -165,11 +140,9 @@ if __name__ == "__main__":
"debugpy.common",
"debugpy.launcher",
"debugpy.server",
- "debugpy._vendored",
],
package_data={
"debugpy": ["ThirdPartyNotices.txt"],
- "debugpy._vendored": list(iter_vendored_files()),
},
ext_modules=ExtModules(),
has_ext_modules=lambda: True,
diff --git a/src/debugpy/server/__init__.py b/src/debugpy/server/__init__.py
index e6a1ad6..a79a86b 100644
--- a/src/debugpy/server/__init__.py
+++ b/src/debugpy/server/__init__.py
@@ -3,7 +3,3 @@
# for license information.
from __future__ import absolute_import, division, print_function, unicode_literals
-
-# "force_pydevd" must be imported first to ensure (via side effects)
-# that the debugpy-vendored copy of pydevd gets used.
-import debugpy._vendored.force_pydevd # noqa