1 |
commit: 5b3dc74582c62bb747fdc67d147272a604a1c148 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 10 08:12:14 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 10 08:48:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b3dc745 |
7 |
|
8 |
dev-python/executing: New package, test dep of sentry-sdk |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/executing/Manifest | 1 + |
13 |
dev-python/executing/executing-0.5.2.ebuild | 35 +++++++++++++++++++++++++++++ |
14 |
dev-python/executing/metadata.xml | 7 ++++++ |
15 |
3 files changed, 43 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/executing/Manifest b/dev-python/executing/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..6665f9a3453 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/executing/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST executing-0.5.2.gh.tar.gz 303118 BLAKE2B e3b0ee22791a7fc4b378cf9f0c4640b4971ebd772d95a5d8d0abd25959c53eede5c61e4807abd4be38b9e14d0e3ab9083941ace7f59f0b6358c68b2e85291193 SHA512 2487dbb95240553f9bb7e1249af42e83be7db8cfa8a8c0569c22bfad48add9eddf903a4f365e3a6409e5208bef0d32893abb0c4dc5a93782c3b33125b091ef54 |
24 |
|
25 |
diff --git a/dev-python/executing/executing-0.5.2.ebuild b/dev-python/executing/executing-0.5.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0f05179cc81 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/executing/executing-0.5.2.ebuild |
30 |
@@ -0,0 +1,35 @@ |
31 |
+# Copyright 2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6..9} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Get information about what a Python frame is currently doing" |
40 |
+HOMEPAGE=" |
41 |
+ https://github.com/alexmojaki/executing/ |
42 |
+ https://pypi.org/project/executing/" |
43 |
+SRC_URI=" |
44 |
+ https://github.com/alexmojaki/executing/archive/v${PV}.tar.gz |
45 |
+ -> ${P}.gh.tar.gz" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+# asttokens is optional runtime dep |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ dev-python/asttokens[${PYTHON_USEDEP}] |
55 |
+ )" |
56 |
+ |
57 |
+distutils_enable_tests pytest |
58 |
+ |
59 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
60 |
+ |
61 |
+python_test() { |
62 |
+ # this test explodes when collected by pytest |
63 |
+ "${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}" |
64 |
+ pytest -vv tests/test_pytest.py || die "Tests failed with ${EPYTHON}" |
65 |
+} |
66 |
|
67 |
diff --git a/dev-python/executing/metadata.xml b/dev-python/executing/metadata.xml |
68 |
new file mode 100644 |
69 |
index 00000000000..266e3f19ca5 |
70 |
--- /dev/null |
71 |
+++ b/dev-python/executing/metadata.xml |
72 |
@@ -0,0 +1,7 @@ |
73 |
+<?xml version="1.0" encoding="UTF-8"?> |
74 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
75 |
+<pkgmetadata> |
76 |
+ <maintainer type="project"> |
77 |
+ <email>python@g.o</email> |
78 |
+ </maintainer> |
79 |
+</pkgmetadata> |