1 |
commit: 6bf75158e416a4e5ffab1cdc759e88e88f17573f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 2 14:19:11 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 14:54:18 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf75158 |
7 |
|
8 |
dev-python/plumbum: Bump to 1.8.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/plumbum/Manifest | 1 + |
13 |
dev-python/plumbum/plumbum-1.8.1.ebuild | 58 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/plumbum/Manifest b/dev-python/plumbum/Manifest |
17 |
index 2d88c8fae032..8a24e2c7a82f 100644 |
18 |
--- a/dev-python/plumbum/Manifest |
19 |
+++ b/dev-python/plumbum/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST plumbum-1.8.0.tar.gz 325060 BLAKE2B 30006fa3826bbdd9482592d825931fd7dcb05b2aca6d762093c4f722f0426aaa6f07fde55754f115e4fba4a45997d2995a657c5a1cfa34c417bb4f5fb2e5834d SHA512 47874c42081d385fad85b9073fbeb711112b8fa847fc79035be1277a1fdabcfb06e7822a4dbba271d86502b9b297a70742f30b1158c363b668a47e783c9990cd |
22 |
+DIST plumbum-1.8.1.tar.gz 316432 BLAKE2B 91288c5f793b9e3e7d1e1d3724f5cc16989d604b1236438fc71283fab5aa59bb34f1742fe2d79b7a9220e09a3622f5145769497765f3f9213dc70960af478fa0 SHA512 80031c07be3b68767556bba8246e964c51b16336d6105ad3d51d62f7c39287af6f928be713171c8c22cdd37145a0e7c3bd65d44f14bf8b1bc62483b648f3acff |
23 |
|
24 |
diff --git a/dev-python/plumbum/plumbum-1.8.1.ebuild b/dev-python/plumbum/plumbum-1.8.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..b7405c89ed31 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/plumbum/plumbum-1.8.1.ebuild |
29 |
@@ -0,0 +1,58 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=hatchling |
36 |
+PYTHON_COMPAT=( python3_{8..11} ) |
37 |
+ |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+DESCRIPTION="A library for shell script-like programs in python" |
41 |
+HOMEPAGE=" |
42 |
+ https://plumbum.readthedocs.io/en/latest/ |
43 |
+ https://github.com/tomerfiliba/plumbum/ |
44 |
+ https://pypi.org/project/plumbum/ |
45 |
+" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ dev-python/hatch-vcs[${PYTHON_USEDEP}] |
54 |
+ test? ( |
55 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
56 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
57 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
58 |
+ ) |
59 |
+" |
60 |
+ |
61 |
+distutils_enable_tests pytest |
62 |
+ |
63 |
+EPYTEST_DESELECT=( |
64 |
+ # Need sshd running |
65 |
+ tests/test_remote.py |
66 |
+ tests/test_utils.py |
67 |
+ # Windows specific |
68 |
+ tests/test_putty.py |
69 |
+ # Needs sudo without password |
70 |
+ tests/test_sudo.py |
71 |
+ # Wrong assumptions about env handling |
72 |
+ tests/test_env.py::TestEnv::test_change_env |
73 |
+ tests/test_env.py::TestEnv::test_dictlike |
74 |
+ tests/test_local.py::TestLocalPath::test_iterdir |
75 |
+) |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ sed -e '/addopts/d' -i pyproject.toml || die |
79 |
+ distutils-r1_src_prepare |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ optfeature "remote commands via ssh" dev-python/paramiko |
84 |
+ optfeature "progress bars in jupyter" dev-python/ipywidgets |
85 |
+ optfeature "colored output in jupyter" dev-python/ipython |
86 |
+ optfeature "images on the command line" dev-python/pillow |
87 |
+} |