Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/plumbum/
Date: Sat, 26 Feb 2022 08:34:58
Message-Id: 1645864482.278a5c3fd59c434007f1ba1d7556d7b431d1e13a.mgorny@gentoo
1 commit: 278a5c3fd59c434007f1ba1d7556d7b431d1e13a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 08:21:33 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 08:34:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=278a5c3f
7
8 dev-python/plumbum: Migrate to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/plumbum/plumbum-1.7.2-r1.ebuild | 53 ++++++++++++++++++++++++++++++
13 1 file changed, 53 insertions(+)
14
15 diff --git a/dev-python/plumbum/plumbum-1.7.2-r1.ebuild b/dev-python/plumbum/plumbum-1.7.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..6a5214728397
18 --- /dev/null
19 +++ b/dev-python/plumbum/plumbum-1.7.2-r1.ebuild
20 @@ -0,0 +1,53 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1 optfeature
30 +
31 +DESCRIPTION="A library for shell script-like programs in python"
32 +HOMEPAGE="https://plumbum.readthedocs.io/en/latest/ https://github.com/tomerfiliba/plumbum"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +BDEPEND="
40 + test? (
41 + dev-python/psutil[${PYTHON_USEDEP}]
42 + dev-python/pytest-mock[${PYTHON_USEDEP}]
43 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
44 + )
45 +"
46 +
47 +distutils_enable_tests pytest
48 +
49 +EPYTEST_DESELECT=(
50 + # Need sshd running
51 + tests/test_remote.py
52 + tests/test_utils.py
53 + # Windows specific
54 + tests/test_putty.py
55 + # Needs sudo without password
56 + tests/test_sudo.py
57 + # Wrong assumptions about env handling
58 + tests/test_env.py::TestEnv::test_change_env
59 + tests/test_env.py::TestEnv::test_dictlike
60 + tests/test_local.py::TestLocalPath::test_iterdir
61 +)
62 +
63 +src_prepare() {
64 + sed -e '/addopts/d' -i setup.cfg || die
65 + distutils-r1_src_prepare
66 +}
67 +
68 +pkg_postinst() {
69 + optfeature "remote commands via ssh" dev-python/paramiko
70 + optfeature "progress bars in jupyter" dev-python/ipywidgets
71 + optfeature "colored output in jupyter" dev-python/ipython
72 + optfeature "images on the command line" dev-python/pillow
73 +}