diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-26 09:21:33 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-26 09:34:42 +0100 |
commit | 278a5c3fd59c434007f1ba1d7556d7b431d1e13a (patch) | |
tree | 320d31c1bc3f26c16af10b0a4fb35315b4fbd643 /dev-python/plumbum | |
parent | sys-apps/usbredir: drop 0.9.0 (diff) | |
download | gentoo-278a5c3fd59c434007f1ba1d7556d7b431d1e13a.tar.gz gentoo-278a5c3fd59c434007f1ba1d7556d7b431d1e13a.tar.bz2 gentoo-278a5c3fd59c434007f1ba1d7556d7b431d1e13a.zip |
dev-python/plumbum: Migrate to PEP517 build
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/plumbum')
-rw-r--r-- | dev-python/plumbum/plumbum-1.7.2-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/plumbum/plumbum-1.7.2-r1.ebuild b/dev-python/plumbum/plumbum-1.7.2-r1.ebuild new file mode 100644 index 000000000000..6a5214728397 --- /dev/null +++ b/dev-python/plumbum/plumbum-1.7.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A library for shell script-like programs in python" +HOMEPAGE="https://plumbum.readthedocs.io/en/latest/ https://github.com/tomerfiliba/plumbum" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Need sshd running + tests/test_remote.py + tests/test_utils.py + # Windows specific + tests/test_putty.py + # Needs sudo without password + tests/test_sudo.py + # Wrong assumptions about env handling + tests/test_env.py::TestEnv::test_change_env + tests/test_env.py::TestEnv::test_dictlike + tests/test_local.py::TestLocalPath::test_iterdir +) + +src_prepare() { + sed -e '/addopts/d' -i setup.cfg || die + distutils-r1_src_prepare +} + +pkg_postinst() { + optfeature "remote commands via ssh" dev-python/paramiko + optfeature "progress bars in jupyter" dev-python/ipywidgets + optfeature "colored output in jupyter" dev-python/ipython + optfeature "images on the command line" dev-python/pillow +} |