re-add still needed debugpy-* from main
This commit is contained in:
parent
1f0488945f
commit
6765fc6cf9
|
@ -1,12 +1,9 @@
|
|||
AUX debugpy-1.4.2-unbundle-pydevd.patch 2452 BLAKE2B 44cebbf0b1bd07c1abb5d8ea6489ff241ddd3bab28e8697462466c1d70160a2d7a2a7f51bcb1747fb8129854b16adb8eda7d7598741fe0c72ea6f8217878e569 SHA512 ee7b5a6125e071fe414e481633224a3e77a5f8d0cbf3fcd855932db3154f4371a92058ecb730b8f69c97a4f01601425eaa271aeb04cda5f2ac5c867c90001b95
|
||||
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.1.tar.gz 6687670 BLAKE2B c7761f354700d366d49365b0294ba1f07f357283c7527fc961c702bf99d808835741a899909e37092026c81ff19f6d96ef09c06512c8315ccad158b6e8e47697 SHA512 aef7779cb3a1af76b5cd3d6e8c7e0b78ffe08d1ebe25cf617ca3eb00966d5b3920358809c018f5f1f9eb56b913211134acfdba7d4c0d0174e4d6cfdae058d5f5
|
||||
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
|
||||
DIST debugpy-1.5.0.gh.tar.gz 6676475 BLAKE2B a8aa0afe7b76beb6ba539e23558d6a0c8babfd55de9a4a0bc9aabbec8a2318e600df62b063a8d674d9402e35fd595b030efca570b4a67ec82dadb98875261e13 SHA512 b5ca216aede744a9b1e067056601470e78b8af1fabb181dc0bf6e87bc166cc8d6cad24f5695986686cac69f8ce41246bb0f074078ef3750f6e65b4d8fe55e869
|
||||
EBUILD debugpy-1.4.1.ebuild 1083 BLAKE2B 19445922e0d6e48ac10bfe105fe95dea9240d2e4b1f2296dec762f98fc460025ef6f004adeabdfb8e59020f3987ec24ee4e9c73d9d4a7ab67a3534b7d4a822e3 SHA512 3ef7d2625b53969759c8bb62e77486705fd29e8181a231cb0fc0635fe95e6d005dc37428184f929acdcc3bd693b49af298e977e5f8d161f5ffa2c1d817a56422
|
||||
EBUILD debugpy-1.4.3.ebuild 1083 BLAKE2B b2a4088b34e8b282ff83293478f11a5d96a5a3238e221af5744869546f478dd853becb804e97cec161ede3c1e1b56bfb55d402de18909e21c3b79ce84e2fbc8e SHA512 7bb59468a600dfe0448ecc70a3934f16ef3c98d9483094c08433b91ea0b2c3d0c406482221002e1e6be1605be06d272f0655464c82bd0225ae416cbf1fd74922
|
||||
EBUILD debugpy-1.5.0.ebuild 1082 BLAKE2B 1b6872ef5807bd04cbade54e856bfd56d87499d4462ca818cc8b399a9183171cc34e102cffb3cbfb53bc1c4b708a4a5e853d5118d1c2ae5d5698912548363f8f SHA512 331ce02ea0ca32f3ae967375fd40ed6efa58128f46ab70a1d1d3c26ec7dec0b758762d5bbeaea57f101bcf857ba972befd7b004847339dbbbb7ac49e9cbf4786
|
||||
MISC metadata.xml 463 BLAKE2B 04f9e41cc690266603da2c2df0be30ab1c41f9a3a52d53338ce1bff6e76505da864169e4ecd0787ef8328bee7dc8d2520a067bc9830328e0419c2489120fc3b7 SHA512 099b521a32608c288dd7d70f9d4e7a06126ff5d9dbe9965c85b504f54c0d6276800ad6d0c3e189b465968116e3ba3c9998f6f771290c806d7255786c114395cb
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..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/"
|
||||
|
||||
#MY_P=${P/_beta/b}
|
||||
MY_P=${P/_/}
|
||||
MY_PV=${PV/_/}
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.zip"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die
|
||||
py.test -v -v || die
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..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/"
|
||||
|
||||
#MY_P=${P/_beta/b}
|
||||
MY_P=${P/_/}
|
||||
MY_PV=${PV/_/}
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.zip"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die
|
||||
py.test -v -v || die
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
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/"
|
||||
|
||||
#MY_P=${P/_beta/b}
|
||||
MY_P=${P/_/}
|
||||
MY_PV=${PV/_/}
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.zip"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
DOCS="DESCRIPTION.md"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die
|
||||
py.test -v -v || die
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
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/"
|
||||
|
||||
#MY_P=${P/_beta/b}
|
||||
MY_P=${P/_/}
|
||||
MY_PV=${PV/_/}
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${MY_P}.zip"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
DOCS="DESCRIPTION.md"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die
|
||||
py.test -v -v || die
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2021 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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~sparc"
|
||||
|
||||
# There is not enough time in the universe for this test suite
|
||||
RESTRICT="test"
|
||||
|
||||
# These files are included pre-built in the sources
|
||||
# TODO: Investigate what this is and if/how we can compile this properly
|
||||
QA_PREBUILT="
|
||||
/usr/lib/python*/site-packages/${PN}/_vendored/pydevd/pydevd_attach_to_process/attach_linux_*.so
|
||||
"
|
||||
|
||||
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
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
distutils_enable_tests pytest
|
|
@ -0,0 +1,42 @@
|
|||
# Copyright 1999-2021 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="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
|
||||
# There is not enough time in the universe for this test suite
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="dev-python/pydevd[${PYTHON_USEDEP}]"
|
||||
BDEPEND="test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.4.2-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 -e '/addopts/d' -e '/timeout/d' -i pytest.ini || die
|
||||
|
||||
# Unbundle dev-python/pydevd
|
||||
rm -r src/debugpy/_vendored || 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
|
Loading…
Reference in New Issue