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: Sun, 07 Nov 2021 08:40:49
Message-Id: 1636274274.ab18eb6f8572af5ef6b4e3643b8aebb2aef1df75.ionen@gentoo
1 commit: ab18eb6f8572af5ef6b4e3643b8aebb2aef1df75
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 7 06:31:43 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 7 08:37:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab18eb6f
7
8 dev-python/pytest-bdd: add 5.0.0
9
10 4.1.0 will be kept for an extended period given may need migration.
11
12 This /would/ break some of qutebrowser tests due to a change with how
13 it treats < used for keys in e.g. "<tab>", but these end2end tests were
14 already skipped due to QT IPC path length limitations (see ebuild).
15
16 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
17
18 dev-python/pytest-bdd/Manifest | 1 +
19 dev-python/pytest-bdd/pytest-bdd-5.0.0.ebuild | 38 +++++++++++++++++++++++++++
20 2 files changed, 39 insertions(+)
21
22 diff --git a/dev-python/pytest-bdd/Manifest b/dev-python/pytest-bdd/Manifest
23 index 6a2dda08483..d95a711031b 100644
24 --- a/dev-python/pytest-bdd/Manifest
25 +++ b/dev-python/pytest-bdd/Manifest
26 @@ -1 +1,2 @@
27 DIST pytest-bdd-4.1.0.tar.gz 61079 BLAKE2B 3bf7863b7244e0fa02de48f3c8d113427c9a9d546d1a5d95dbc025bcdf0bd60931fac55d7328c96a3b29b8b15da833c85c089cee19ee4f8a2bc639dd1b3c4e59 SHA512 54ce5ae2f7b3deff7d436d42f80fc47892707eb1e6e76469dda9753ff0b2d727bb47b5be300eadccadd87838aee43130fec5dff6441353eb07c0787c84d55afa
28 +DIST pytest-bdd-5.0.0.tar.gz 61174 BLAKE2B 6dd1d53614226d3515b0f61f71822363b559aa45789bab7f3416c75e603e87a1fe48627f36862f44bfa7ac6ec5023ad8afde6054ec67fc9a2e756be7de729fd1 SHA512 827e57d410b05207b6c646062ddb54b677e22441311820d3bd406df202b6e9344dedf59cd4868e89cfbf8606fe3f15559e4cc3958d100e4fa74f9b864e6faada
29
30 diff --git a/dev-python/pytest-bdd/pytest-bdd-5.0.0.ebuild b/dev-python/pytest-bdd/pytest-bdd-5.0.0.ebuild
31 new file mode 100644
32 index 00000000000..e429be77bf7
33 --- /dev/null
34 +++ b/dev-python/pytest-bdd/pytest-bdd-5.0.0.ebuild
35 @@ -0,0 +1,38 @@
36 +# Copyright 2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +PYTHON_COMPAT=( python3_{8..10} )
42 +inherit distutils-r1
43 +
44 +DESCRIPTION="BDD library for the pytest runner"
45 +HOMEPAGE="https://pypi.org/project/pytest-bdd/"
46 +SRC_URI="https://github.com/pytest-dev/pytest-bdd/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm64 ~x86"
51 +
52 +RDEPEND="
53 + dev-python/glob2[${PYTHON_USEDEP}]
54 + dev-python/mako[${PYTHON_USEDEP}]
55 + dev-python/parse[${PYTHON_USEDEP}]
56 + dev-python/parse_type[${PYTHON_USEDEP}]
57 + dev-python/py[${PYTHON_USEDEP}]"
58 +BDEPEND="dev-python/packaging[${PYTHON_USEDEP}]"
59 +
60 +distutils_enable_tests --install pytest
61 +
62 +DOCS=( AUTHORS.rst CHANGES.rst README.rst )
63 +
64 +src_test() {
65 + # terminal_reporter test needs exact wrapping
66 + local -x COLUMNS=80
67 +
68 + # hooks output parsing may be affected by other pytest-*, e.g. tornasync
69 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
70 + local -x PYTEST_PLUGINS=pytest_bdd.plugin
71 +
72 + distutils-r1_src_test
73 +}