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-toolbox/
Date: Fri, 08 Apr 2022 11:10:05
Message-Id: 1649416191.048535d07aa6da675ad83490fe9a927bb95584d0.mgorny@gentoo
1 commit: 048535d07aa6da675ad83490fe9a927bb95584d0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 10:44:46 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 11:09:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=048535d0
7
8 dev-python/pytest-toolbox: Switch to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-toolbox/pytest-toolbox-0.4-r1.ebuild | 33 ++++++++++++++++++++++
13 1 file changed, 33 insertions(+)
14
15 diff --git a/dev-python/pytest-toolbox/pytest-toolbox-0.4-r1.ebuild b/dev-python/pytest-toolbox/pytest-toolbox-0.4-r1.ebuild
16 new file mode 100644
17 index 000000000000..6a9dd618bd61
18 --- /dev/null
19 +++ b/dev-python/pytest-toolbox/pytest-toolbox-0.4-r1.ebuild
20 @@ -0,0 +1,33 @@
21 +# Copyright 2021-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=( pypy3 python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Numerous useful plugins for pytest"
32 +HOMEPAGE="https://pypi.org/project/pytest-toolbox/ https://github.com/samuelcolvin/pytest-toolbox/"
33 +SRC_URI="
34 + https://github.com/samuelcolvin/pytest-toolbox/archive/v${PV}.tar.gz
35 + -> ${P}.gh.tar.gz
36 +"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
41 +
42 +BDEPEND="
43 + test? (
44 + dev-python/pydantic[${PYTHON_USEDEP}]
45 + )
46 +"
47 +
48 +distutils_enable_tests pytest
49 +
50 +src_prepare() {
51 + sed -e '/addopts/d' -i setup.cfg || die
52 + distutils-r1_src_prepare
53 +}