1 |
commit: b32a6e82a301f748f066b1d034433a215adeacfc |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 13 18:25:55 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 13 19:02:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b32a6e82 |
7 |
|
8 |
dev-python/debugpy: add 1.5.0, enable py3.10 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/debugpy/Manifest | 1 + |
13 |
dev-python/debugpy/debugpy-1.5.0.ebuild | 42 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/debugpy/Manifest b/dev-python/debugpy/Manifest |
17 |
index 0a861ef1295..8a2f2e5b390 100644 |
18 |
--- a/dev-python/debugpy/Manifest |
19 |
+++ b/dev-python/debugpy/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST debugpy-1.4.1.tar.gz 6687670 BLAKE2B c7761f354700d366d49365b0294ba1f07f357283c7527fc961c702bf99d808835741a899909e37092026c81ff19f6d96ef09c06512c8315ccad158b6e8e47697 SHA512 aef7779cb3a1af76b5cd3d6e8c7e0b78ffe08d1ebe25cf617ca3eb00966d5b3920358809c018f5f1f9eb56b913211134acfdba7d4c0d0174e4d6cfdae058d5f5 |
22 |
DIST debugpy-1.4.2.tar.gz 6673987 BLAKE2B c61d09bc036f3a12e343be3d81b2e834bd69d33df80a6b9e4111d11a2eaea221feea3ac093ca06ad1a840dcab7d53d7b321276c4103420f34adac7a4a4ac8141 SHA512 7c0908ab9202cebb020ca72c558f3c1abc28b44fb968cce4387750f18e67198ad52dd6743061888610ed733e0f7334f986c2655ec7b0a2631acc4919cd9e6c20 |
23 |
+DIST debugpy-1.5.0.gh.tar.gz 6676475 BLAKE2B a8aa0afe7b76beb6ba539e23558d6a0c8babfd55de9a4a0bc9aabbec8a2318e600df62b063a8d674d9402e35fd595b030efca570b4a67ec82dadb98875261e13 SHA512 b5ca216aede744a9b1e067056601470e78b8af1fabb181dc0bf6e87bc166cc8d6cad24f5695986686cac69f8ce41246bb0f074078ef3750f6e65b4d8fe55e869 |
24 |
|
25 |
diff --git a/dev-python/debugpy/debugpy-1.5.0.ebuild b/dev-python/debugpy/debugpy-1.5.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..cbb6127cca5 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/debugpy/debugpy-1.5.0.ebuild |
30 |
@@ -0,0 +1,42 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="An implementation of the Debug Adapter Protocol for Python" |
40 |
+HOMEPAGE="https://github.com/microsoft/debugpy/ https://pypi.org/project/debugpy/" |
41 |
+SRC_URI=" |
42 |
+ https://github.com/microsoft/${PN}/archive/v${PV}.tar.gz |
43 |
+ -> ${P}.gh.tar.gz |
44 |
+" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
49 |
+ |
50 |
+# There is not enough time in the universe for this test suite |
51 |
+RESTRICT="test" |
52 |
+ |
53 |
+RDEPEND="dev-python/pydevd[${PYTHON_USEDEP}]" |
54 |
+BDEPEND="test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}/${PN}-1.4.2-unbundle-pydevd.patch" |
58 |
+) |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ # Drop unnecessary and unrecognized option |
64 |
+ # __main__.py: error: unrecognized arguments: -n8 |
65 |
+ # Do not timeout |
66 |
+ sed -e '/addopts/d' -e '/timeout/d' -i pytest.ini || die |
67 |
+ |
68 |
+ # Unbundle dev-python/pydevd |
69 |
+ rm -r src/debugpy/_vendored || die |
70 |
+ |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |