update debugpy-1.4.3

This commit is contained in:
Andreas Billmeier 2021-10-02 11:15:25 +02:00 committed by Andreas Billmeier
parent 12a5d71b47
commit 7d63f88226
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 125 additions and 0 deletions

View File

@ -1,9 +1,12 @@
AUX debugpy-1.4.3-unbundle-pydevd.patch 2452 BLAKE2B 44cebbf0b1bd07c1abb5d8ea6489ff241ddd3bab28e8697462466c1d70160a2d7a2a7f51bcb1747fb8129854b16adb8eda7d7598741fe0c72ea6f8217878e569 SHA512 ee7b5a6125e071fe414e481633224a3e77a5f8d0cbf3fcd855932db3154f4371a92058ecb730b8f69c97a4f01601425eaa271aeb04cda5f2ac5c867c90001b95
DIST debugpy-1.2.0.zip 4124118 BLAKE2B 575a50f7154c65d913b86868a7b0a86ec5eed4ef51a62378832f39000137d52d51e5aee1c0dcea995f77582cb52c5b9d39ab5cb51d4c807309ca72f645720539 SHA512 b605337fe51ee6bcf4f4ec8aa5a339a926011ee82398342fb1e9ab25a36695b905816213e7b9d5328c7c88cc5642bcafcaae200e235bc97004c40add0cf6093b
DIST debugpy-1.2.1.zip 4135903 BLAKE2B 0d61b49cbe7d299b7153ab4d5077e55b1c4e61ff7041433aaedb2c2bb07bea7756ad99631cc6cc6a9494fb2a9447a0db9f3f811e3f87391ddf36c29cf8351c7e SHA512 fc22bb4a46484f81c3b47dab89f5c78fccbbac0d45b5cfc57fd41d435de106681c9e0e5f44df3e59b2ee9f485ec0369ded0ef78e185973c8756590864daeb7cf
DIST debugpy-1.3.0.zip 4177425 BLAKE2B ac0c76c5c69a8559e1c5584d8ce24c88da37afa4e37de91e639d0f03e0bb1dacc1171c5d49bf0aa470a2cfe25df7692a3ebf943bb6c7e068537818cb28876a96 SHA512 c8c4659a70de8130ddae5b158837a0396fbd18d1899635b75d64ad9ec57a7641fffea30a65a4088b81be4698a7a6ec3ede486b1e17bd33058c90a7413f282df1
DIST debugpy-1.4.0.zip 4186259 BLAKE2B 6c17df40333eb0291edc1a0f94dd065b53d2cb7be004d7db810c56643097f682bdbf1f2dc65b5825ba7d4ab6909fb70913a52985f22bcd2c0858550c5e0bc1f9 SHA512 ab41464838309ed0544f271e81a26cc868798c63c851a838a0ee405137664c4e65befa915acc62ee2ea7be876bcd83360bbd3a3cb0b017b946567e76d235d651
DIST debugpy-1.4.3.tar.gz 6674707 BLAKE2B f39b6db43f6578254caa9a5ef3582ffc1565bcc37ebc75b1fb845b368d25ca00633f93fc66a0c0f3025a3e45c16e4bdd45ce39d750b69925e65f4d2429f873c6 SHA512 83a35fe736018eb9cf7fd276e8648064de73a401a0015de6b294f51bee843208976bec5c6d51d11e28b16f3be717c0e6d7fd108cf10d0764f4a0415654d49514
EBUILD debugpy-1.2.0.ebuild 762 BLAKE2B 41e715f3841981698f234df0ffd7e969414ff89de62e0b289dfa59d9356a3ce2195c592e804c231c6ef7457727f899cff6cbdec004c04efc072bb893963d0002 SHA512 1c171713b221c9edc5ceb3efe52da881d77c939c22aff4adec7a19250adb29f3be4c2222e792de7fdfb2d633199cc6ea14f176bfc2ead1dcb01017f4122ea2ec
EBUILD debugpy-1.2.1.ebuild 762 BLAKE2B 41e715f3841981698f234df0ffd7e969414ff89de62e0b289dfa59d9356a3ce2195c592e804c231c6ef7457727f899cff6cbdec004c04efc072bb893963d0002 SHA512 1c171713b221c9edc5ceb3efe52da881d77c939c22aff4adec7a19250adb29f3be4c2222e792de7fdfb2d633199cc6ea14f176bfc2ead1dcb01017f4122ea2ec
EBUILD debugpy-1.3.0.ebuild 786 BLAKE2B 480d9204266ec148c57dfd998d12bec54904f856c46c1b88a28c5a6630b7d18b467022efb86d4336d8e6b37bd28b4e6747e5f6fa198eab0af47906732b1bbc36 SHA512 2dbc0dfa109fe73d4dacc14f40e735ea1ef4a042f7d458342f2803b61934f06819400e4d1a844f4325392be2c07130ca36565f45fb946f5dda337f481aa4fc6a
EBUILD debugpy-1.4.0.ebuild 786 BLAKE2B 480d9204266ec148c57dfd998d12bec54904f856c46c1b88a28c5a6630b7d18b467022efb86d4336d8e6b37bd28b4e6747e5f6fa198eab0af47906732b1bbc36 SHA512 2dbc0dfa109fe73d4dacc14f40e735ea1ef4a042f7d458342f2803b61934f06819400e4d1a844f4325392be2c07130ca36565f45fb946f5dda337f481aa4fc6a
EBUILD debugpy-1.4.3.ebuild 1083 BLAKE2B b2a4088b34e8b282ff83293478f11a5d96a5a3238e221af5744869546f478dd853becb804e97cec161ede3c1e1b56bfb55d402de18909e21c3b79ce84e2fbc8e SHA512 7bb59468a600dfe0448ecc70a3934f16ef3c98d9483094c08433b91ea0b2c3d0c406482221002e1e6be1605be06d272f0655464c82bd0225ae416cbf1fd74922
MISC metadata.xml 463 BLAKE2B 04f9e41cc690266603da2c2df0be30ab1c41f9a3a52d53338ce1bff6e76505da864169e4ecd0787ef8328bee7dc8d2520a067bc9830328e0419c2489120fc3b7 SHA512 099b521a32608c288dd7d70f9d4e7a06126ff5d9dbe9965c85b504f54c0d6276800ad6d0c3e189b465968116e3ba3c9998f6f771290c806d7255786c114395cb

View File

@ -0,0 +1,44 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..9} )
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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc"
# There is not enough time in the universe for this test suite
RESTRICT="test"
BDEPEND="test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )"
RDEPEND="dev-python/pydevd[${PYTHON_USEDEP}]"
PATCHES=(
"${FILESDIR}/${P}-unbundle-pydevd.patch"
)
distutils_enable_tests pytest
python_prepare_all() {
# Drop unnecessary and unrecognized option
# __main__.py: error: unrecognized arguments: -n8
# Do not timeout
sed -i \
-e 's/-n8//g' \
-e '/timeout/d' \
pytest.ini || die
# Unbundle dev-python/pydevd
rm -r src/debugpy/_vendored || die
distutils-r1_python_prepare_all
}

View File

@ -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