1 |
commit: 3dc800ff3af15fada8130302b8cb49e042f8afa7 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 15:00:52 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 15:05:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dc800ff |
7 |
|
8 |
dev-python/subprocess-tee: initial import |
9 |
|
10 |
Builds, tests and installs fine on all implementations listed in |
11 |
PYTHON_COMPAT. Needs a bit more work because it installs its own test suite |
12 |
as a submodule, though. |
13 |
|
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
dev-python/subprocess-tee/Manifest | 1 + |
17 |
dev-python/subprocess-tee/metadata.xml | 13 ++++++++ |
18 |
.../subprocess-tee/subprocess-tee-0.3.2.ebuild | 38 ++++++++++++++++++++++ |
19 |
3 files changed, 52 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/subprocess-tee/Manifest b/dev-python/subprocess-tee/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..cb2773b8f7a |
24 |
--- /dev/null |
25 |
+++ b/dev-python/subprocess-tee/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST subprocess-tee-0.3.2.tar.gz 14975 BLAKE2B 3198832f4c8bbf90e83038e39017cff1efc61ede84aded8220214e388a088777bdb861c044cddbf4b07c7b3172f8164e8bbf82b33de68d1fefea0f81bbacdfc9 SHA512 e681abc27623a3e05031bc05dc15e34f82c9cb544cd16742855411a9edb11fe8e38f9d11f8e651681d04081f121a47c38ebd172d70d282c8110a62699ef687d6 |
28 |
|
29 |
diff --git a/dev-python/subprocess-tee/metadata.xml b/dev-python/subprocess-tee/metadata.xml |
30 |
new file mode 100644 |
31 |
index 00000000000..228103910a3 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/subprocess-tee/metadata.xml |
34 |
@@ -0,0 +1,13 @@ |
35 |
+<?xml version="1.0" encoding="UTF-8"?> |
36 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
37 |
+<pkgmetadata> |
38 |
+ <maintainer type="person"> |
39 |
+ <email>marecki@g.o</email> |
40 |
+ <name>Marek Szuba</name> |
41 |
+ </maintainer> |
42 |
+ <stabilize-allarches/> |
43 |
+ <upstream> |
44 |
+ <remote-id type="github">pycontribs/subprocess-tee</remote-id> |
45 |
+ <remote-id type="pypi">subprocess-tee</remote-id> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/dev-python/subprocess-tee/subprocess-tee-0.3.2.ebuild b/dev-python/subprocess-tee/subprocess-tee-0.3.2.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..2b37121c39f |
52 |
--- /dev/null |
53 |
+++ b/dev-python/subprocess-tee/subprocess-tee-0.3.2.ebuild |
54 |
@@ -0,0 +1,38 @@ |
55 |
+# Copyright 1999-2021 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+ |
60 |
+PYTHON_COMPAT=( python3_{8..10} ) |
61 |
+ |
62 |
+inherit distutils-r1 |
63 |
+ |
64 |
+DESCRIPTION="subprocess.run replacement with tee(1)-like output" |
65 |
+HOMEPAGE="https://github.com/pycontribs/subprocess-tee" |
66 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
67 |
+ |
68 |
+LICENSE="MIT" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64" |
71 |
+ |
72 |
+BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}] |
73 |
+ dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}] |
74 |
+ test? ( |
75 |
+ $(python_gen_cond_dep ' |
76 |
+ dev-python/enrich[${PYTHON_USEDEP}] |
77 |
+ ' python3_{8,9}) |
78 |
+ )" |
79 |
+ |
80 |
+distutils_enable_tests pytest |
81 |
+ |
82 |
+# dev-python/{,en}rich ebuilds do not support python3_10 yet |
83 |
+# We test fine (modulo some deprecation warnings) against 3.10 under tox, though. |
84 |
+python_test() { |
85 |
+ if [[ ${EPYTHON} == "python3.10" ]]; then |
86 |
+ ewarn "Skipping tests for ${EPYTHON} due to missing dependencies" |
87 |
+ return 0 |
88 |
+ fi |
89 |
+ distutils-r1_python_test |
90 |
+} |
91 |
+ |
92 |
+# TODO: do not install subprocess_tee.test |