update debugpy-1.6.0

This commit is contained in:
2022-04-29 16:51:46 +02:00
committed by onkelbeh
parent 84e05d887f
commit cfabcaaf1f
5 changed files with 131 additions and 4 deletions
+4
View File
@@ -0,0 +1,4 @@
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
MISC metadata.xml 463 BLAKE2B 04f9e41cc690266603da2c2df0be30ab1c41f9a3a52d53338ce1bff6e76505da864169e4ecd0787ef8328bee7dc8d2520a067bc9830328e0419c2489120fc3b7 SHA512 099b521a32608c288dd7d70f9d4e7a06126ff5d9dbe9965c85b504f54c0d6276800ad6d0c3e189b465968116e3ba3c9998f6f771290c806d7255786c114395cb
+30
View File
@@ -0,0 +1,30 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
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"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
# There is not enough time in the universe for this test suite
RESTRICT="test"
RDEPEND=""
BDEPEND="test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
python_prepare_all() {
# 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
}
@@ -0,0 +1,78 @@
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
+15
View File
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">debugpy</remote-id>
<maintainer status="unknown">
<email>ptvshelp@microsoft.com</email>
<name>Microsoft Corporation</name>
</maintainer>
</upstream>
</pkgmetadata>