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-forked/
Date: Mon, 09 May 2022 20:13:09
Message-Id: 1652127120.14cf11eeda5db1955f587f5fb6655f4da67b856d.mgorny@gentoo
1 commit: 14cf11eeda5db1955f587f5fb6655f4da67b856d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 9 19:36:14 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 9 20:12:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14cf11ee
7
8 dev-python/pytest-forked: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-forked/pytest-forked-1.4.0-r1.ebuild | 36 ++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-python/pytest-forked/pytest-forked-1.4.0-r1.ebuild b/dev-python/pytest-forked/pytest-forked-1.4.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..ea35730f0141
18 --- /dev/null
19 +++ b/dev-python/pytest-forked/pytest-forked-1.4.0-r1.ebuild
20 @@ -0,0 +1,36 @@
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="run tests in isolated forked subprocesses"
32 +HOMEPAGE="
33 + https://pypi.org/project/pytest-forked/
34 + https://github.com/pytest-dev/pytest-forked/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +SLOT="0"
39 +LICENSE="MIT"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
41 +
42 +# Please do not RDEPEND on pytest; this package won't do anything
43 +# without pytest installed, and there is no reason to force older
44 +# implementations on pytest.
45 +RDEPEND="
46 + dev-python/py[${PYTHON_USEDEP}]
47 +"
48 +BDEPEND="
49 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
50 +"
51 +
52 +distutils_enable_tests pytest
53 +
54 +python_test() {
55 + epytest -p no:flaky
56 +}