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: Thu, 12 May 2022 13:15:18
Message-Id: 1652361287.553810bbed871008b7e6fd1f625eee0b16e6bb7f.mgorny@gentoo
1 commit: 553810bbed871008b7e6fd1f625eee0b16e6bb7f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 12:47:20 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 13:14:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=553810bb
7
8 dev-python/pytest-shutil: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-shutil/pytest-shutil-1.7.0-r3.ebuild | 48 ++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-python/pytest-shutil/pytest-shutil-1.7.0-r3.ebuild b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r3.ebuild
16 new file mode 100644
17 index 000000000000..93f3616ac970
18 --- /dev/null
19 +++ b/dev-python/pytest-shutil/pytest-shutil-1.7.0-r3.ebuild
20 @@ -0,0 +1,48 @@
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} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="A goodie-bag of unix shell and environment tools for py.test"
32 +HOMEPAGE="
33 + https://github.com/man-group/pytest-plugins/
34 + https://pypi.org/project/pytest-shutil/
35 +"
36 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
41 +
42 +RDEPEND="
43 + dev-python/pytest[${PYTHON_USEDEP}]
44 + dev-python/six[${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 +# block pytest plugins that will be broken by the upgrade
51 +RDEPEND+="
52 + !<dev-python/pytest-virtualenv-1.7.0-r1[python_targets_python2_7(-)]
53 +"
54 +
55 +BDEPEND="
56 + ${RDEPEND}
57 + dev-python/setuptools-git[${PYTHON_USEDEP}]
58 +"
59 +
60 +distutils_enable_tests pytest
61 +
62 +python_prepare_all() {
63 + # remove unnecessary deps
64 + # (contextlib2 is not used in py3)
65 + sed -i -e '/path\.py/d' -e '/contextlib2/d' setup.py || die
66 +
67 + distutils-r1_python_prepare_all
68 +}