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/pytest-shutil/
Date: Sun, 08 Mar 2020 08:25:25
Message-Id: 1583655898.f287621d20c5c0a9d4996346a08f72048197e09d.mgorny@gentoo
1 commit: f287621d20c5c0a9d4996346a08f72048197e09d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 8 06:33:39 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 8 08:24:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f287621d
7
8 dev-python/pytest-shutil: Revbump to drop py2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-shutil/pytest-shutil-1.7.0-r1.ebuild | 52 ++++++++++++++++++++++
13 1 file changed, 52 insertions(+)
14
15 diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..bcb73147fa9
18 --- /dev/null
19 +++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r1.ebuild
20 @@ -0,0 +1,52 @@
21 +# Copyright 1999-2020 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +DISTUTILS_USE_SETUPTOOLS=rdepend
27 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test"
32 +HOMEPAGE="https://github.com/man-group/pytest-plugins https://pypi.org/project/pytest-shutil/"
33 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~hppa ~mips ~s390 ~sparc ~x86"
38 +IUSE="test"
39 +RESTRICT="!test? ( test )"
40 +
41 +RDEPEND="
42 + dev-python/pytest[${PYTHON_USEDEP}]
43 + dev-python/six[${PYTHON_USEDEP}]
44 + dev-python/contextlib2[${PYTHON_USEDEP}]
45 + dev-python/execnet[${PYTHON_USEDEP}]
46 + dev-python/path-py[${PYTHON_USEDEP}]
47 + dev-python/mock[${PYTHON_USEDEP}]
48 + dev-python/termcolor[${PYTHON_USEDEP}]
49 +"
50 +
51 +BDEPEND="
52 + ${RDEPEND}
53 +"
54 +
55 +python_prepare_all() {
56 + # keeps trying to install this in tests
57 + sed -i 's:path.py::' setup.py || die
58 +
59 + distutils-r1_python_prepare_all
60 +}
61 +
62 +python_test() {
63 + # at this point let's not fix python2 stuff
64 + if ! python_is_python3; then
65 + ewarn "Tests broken on python2, not runninge tests for ${EPYTHON}"
66 + return 0
67 + fi
68 +
69 + distutils_install_for_testing
70 +
71 + esetup.py test || die "Tests failed under ${EPYTHON}"
72 +}