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/debugpy/
Date: Tue, 24 Aug 2021 18:41:23
Message-Id: 1629830472.da0f62bc1a88d9b4a94249013057b7ecae404d7d.andrewammerlaan@gentoo
1 commit: da0f62bc1a88d9b4a94249013057b7ecae404d7d
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 24 18:02:03 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 24 18:41:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da0f62bc
7
8 dev-python/debugpy: import from ::guru, new dep of ipykernel
9
10 Closes: https://bugs.gentoo.org/800133
11 Closes: https://bugs.gentoo.org/796854
12 Closes: https://bugs.gentoo.org/796857
13 Package-Manager: Portage-3.0.22, Repoman-3.0.3
14 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
15
16 dev-python/debugpy/Manifest | 1 +
17 dev-python/debugpy/debugpy-1.4.1.ebuild | 39 +++++++++++++++++++++++++++++++++
18 dev-python/debugpy/metadata.xml | 15 +++++++++++++
19 3 files changed, 55 insertions(+)
20
21 diff --git a/dev-python/debugpy/Manifest b/dev-python/debugpy/Manifest
22 new file mode 100644
23 index 00000000000..f429037ba87
24 --- /dev/null
25 +++ b/dev-python/debugpy/Manifest
26 @@ -0,0 +1 @@
27 +DIST debugpy-1.4.1.tar.gz 6687670 BLAKE2B c7761f354700d366d49365b0294ba1f07f357283c7527fc961c702bf99d808835741a899909e37092026c81ff19f6d96ef09c06512c8315ccad158b6e8e47697 SHA512 aef7779cb3a1af76b5cd3d6e8c7e0b78ffe08d1ebe25cf617ca3eb00966d5b3920358809c018f5f1f9eb56b913211134acfdba7d4c0d0174e4d6cfdae058d5f5
28
29 diff --git a/dev-python/debugpy/debugpy-1.4.1.ebuild b/dev-python/debugpy/debugpy-1.4.1.ebuild
30 new file mode 100644
31 index 00000000000..f49de56ebc4
32 --- /dev/null
33 +++ b/dev-python/debugpy/debugpy-1.4.1.ebuild
34 @@ -0,0 +1,39 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="An implementation of the Debug Adapter Protocol for Python"
45 +HOMEPAGE="https://github.com/microsoft/debugpy/ https://pypi.org/project/debugpy/"
46 +SRC_URI="https://github.com/microsoft/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +
52 +# There is not enough time in the universe for this test suite
53 +RESTRICT="test"
54 +
55 +# These files are included pre-built in the sources
56 +# TODO: Investigate what this is and if/how we can compile this properly
57 +QA_PREBUILT="
58 + /usr/lib/python*/site-packages/${PN}/_vendored/pydevd/pydevd_attach_to_process/attach_linux_*.so
59 +"
60 +
61 +python_prepare_all() {
62 + # Drop unnecessary and unrecognized option
63 + # __main__.py: error: unrecognized arguments: -n8
64 + # Do not timeout
65 + sed -i \
66 + -e 's/-n8//g' \
67 + -e '/timeout/d' \
68 + pytest.ini || die
69 +
70 + distutils-r1_python_prepare_all
71 +}
72 +
73 +distutils_enable_tests pytest
74
75 diff --git a/dev-python/debugpy/metadata.xml b/dev-python/debugpy/metadata.xml
76 new file mode 100644
77 index 00000000000..a8dc7238588
78 --- /dev/null
79 +++ b/dev-python/debugpy/metadata.xml
80 @@ -0,0 +1,15 @@
81 +<?xml version='1.0' encoding='UTF-8'?>
82 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
83 +<pkgmetadata>
84 + <maintainer type="project">
85 + <email>sci@g.o</email>
86 + <name>Gentoo Science Project</name>
87 + </maintainer>
88 + <upstream>
89 + <remote-id type="pypi">debugpy</remote-id>
90 + <maintainer status="unknown">
91 + <email>ptvshelp@×××××××××.com</email>
92 + <name>Microsoft Corporation</name>
93 + </maintainer>
94 + </upstream>
95 +</pkgmetadata>