Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-bdd/
Date: Fri, 13 May 2022 14:51:29
Message-Id: 1652453429.c0248f3b287792df31473028373fe0e75f3206bb.ionen@gentoo
1 commit: c0248f3b287792df31473028373fe0e75f3206bb
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 14:18:38 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 14:50:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0248f3b
7
8 dev-python/pytest-bdd: use pep517
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 dev-python/pytest-bdd/pytest-bdd-5.0.0-r1.ebuild | 39 ++++++++++++++++++++++++
13 1 file changed, 39 insertions(+)
14
15 diff --git a/dev-python/pytest-bdd/pytest-bdd-5.0.0-r1.ebuild b/dev-python/pytest-bdd/pytest-bdd-5.0.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..04e0d86ca1de
18 --- /dev/null
19 +++ b/dev-python/pytest-bdd/pytest-bdd-5.0.0-r1.ebuild
20 @@ -0,0 +1,39 @@
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=( python3_{8..10} )
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="BDD library for the pytest runner"
31 +HOMEPAGE="https://pypi.org/project/pytest-bdd/"
32 +SRC_URI="https://github.com/pytest-dev/pytest-bdd/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="MIT"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm64 ~x86"
37 +
38 +RDEPEND="
39 + dev-python/glob2[${PYTHON_USEDEP}]
40 + dev-python/mako[${PYTHON_USEDEP}]
41 + dev-python/parse[${PYTHON_USEDEP}]
42 + dev-python/parse_type[${PYTHON_USEDEP}]
43 + dev-python/py[${PYTHON_USEDEP}]"
44 +BDEPEND="dev-python/packaging[${PYTHON_USEDEP}]"
45 +
46 +distutils_enable_tests pytest
47 +
48 +DOCS=( AUTHORS.rst CHANGES.rst README.rst )
49 +
50 +src_test() {
51 + # terminal_reporter test needs exact wrapping
52 + local -x COLUMNS=80
53 +
54 + # hooks output parsing may be affected by other pytest-*, e.g. tornasync
55 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
56 + local -x PYTEST_PLUGINS=pytest_bdd.plugin
57 +
58 + distutils-r1_src_test
59 +}