Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pydevd/
Date: Thu, 09 Sep 2021 16:26:01
Message-Id: 1631204716.9ccbf9e6f729dfd229a24915bfe27ec7c9f5ecaf.andrewammerlaan@gentoo
1 commit: 9ccbf9e6f729dfd229a24915bfe27ec7c9f5ecaf
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 9 15:43:28 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 9 16:25:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ccbf9e6
7
8 dev-python/pydevd: unbundle from debugpy
9
10 Bug: https://bugs.gentoo.org/812041
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 dev-python/pydevd/Manifest | 1 +
15 dev-python/pydevd/metadata.xml | 12 ++++++++
16 dev-python/pydevd/pydevd-2.5.0.ebuild | 53 +++++++++++++++++++++++++++++++++++
17 3 files changed, 66 insertions(+)
18
19 diff --git a/dev-python/pydevd/Manifest b/dev-python/pydevd/Manifest
20 new file mode 100644
21 index 00000000000..70b8a69447d
22 --- /dev/null
23 +++ b/dev-python/pydevd/Manifest
24 @@ -0,0 +1 @@
25 +DIST pydev_debugger_2_5_0.tar.gz 4140556 BLAKE2B 8630fc35138b3bb768b8a62a2f1388a1144baa9207aec49717c3c04843a393b130dfaef3266ad8fce5a5aa3af4e25d4441b075da0aa36ec1a8716db5ba5ac56c SHA512 7ebf1a5405a376fb19fb4bab0f4874e6be273d3c095338d8a2bfad433b0ec306918b2c650bd20dc5ffd835dd01e7398da2b66607a66dad931f98764f572e0be8
26
27 diff --git a/dev-python/pydevd/metadata.xml b/dev-python/pydevd/metadata.xml
28 new file mode 100644
29 index 00000000000..8ff81dffad4
30 --- /dev/null
31 +++ b/dev-python/pydevd/metadata.xml
32 @@ -0,0 +1,12 @@
33 +<?xml version='1.0' encoding='UTF-8'?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="project">
37 + <email>sci@g.o</email>
38 + <name>Gentoo Science Project</name>
39 + </maintainer>
40 + <upstream>
41 + <remote-id type="pypi">pydevd</remote-id>
42 + <remote-id type="github">fabioz/PyDev.Debugger</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-python/pydevd/pydevd-2.5.0.ebuild b/dev-python/pydevd/pydevd-2.5.0.ebuild
47 new file mode 100644
48 index 00000000000..bc1f3680e19
49 --- /dev/null
50 +++ b/dev-python/pydevd/pydevd-2.5.0.ebuild
51 @@ -0,0 +1,53 @@
52 +# Copyright 1999-2021 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=8
56 +
57 +PYTHON_COMPAT=( python3_{8..9} )
58 +
59 +inherit distutils-r1
60 +
61 +DESCRIPTION="PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)"
62 +HOMEPAGE="https://github.com/fabioz/PyDev.Debugger/"
63 +SRC_URI="https://github.com/fabioz/PyDev.Debugger/archive/refs/tags/pydev_debugger_${PV//./_}.tar.gz"
64 +S="${WORKDIR}/PyDev.Debugger-pydev_debugger_${PV//./_}"
65 +
66 +LICENSE="EPL-1.0"
67 +SLOT="0"
68 +KEYWORDS="~amd64"
69 +
70 +BDEPEND="test? ( dev-python/untangle[${PYTHON_USEDEP}] )"
71 +
72 +distutils_enable_tests pytest
73 +
74 +# These files are included pre-built in the sources
75 +# TODO: Investigate what this is and if/how we can compile this properly
76 +QA_PREBUILT="
77 + /usr/lib/python*/site-packages/pydevd_attach_to_process/attach_linux_*.so
78 +"
79 +
80 +python_prepare_all() {
81 + # AssertionError: TimeoutError (note: error trying to dump threads on timeout).
82 + # TODO: investigate and fix this
83 + sed -i \
84 + -e 's:test_case_qthread4:_&:' \
85 + -e 's:test_path_translation:_&:' \
86 + -e 's:test_asyncio_step_over_basic:_&:' \
87 + -e 's:test_asyncio_step_over_end_of_function:_&:' \
88 + -e 's:test_asyncio_step_in:_&:' \
89 + -e 's:test_asyncio_step_return:_&:' \
90 + tests_python/test_debugger.py || die
91 + sed -i \
92 + -e 's:test_evaluate_exception_trace:_&:' \
93 + -e 's:test_path_translation_and_source_reference:_&:' \
94 + tests_python/test_debugger_json.py || die
95 +
96 + distutils-r1_python_prepare_all
97 +}
98 +
99 +python_install_all() {
100 + distutils-r1_python_install_all
101 + # Remove this duplicate that is installed directly to /usr/
102 + # These files are also correctly installed to the python site-packages dir
103 + rm -r "${ED}/usr/pydevd_attach_to_process"
104 +}