commit: b438c4cda5cbe1b1ac481754133f97238f6f3a7f
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 28 16:59:08 2025 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 28 17:07:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b438c4cd
dev-python/pytest-bdd: make pip check happier
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
.../pytest-bdd/files/pytest-bdd-8.1.0-gherkin-bounds.patch | 12 ++++++++++++
.../{pytest-bdd-8.1.0.ebuild => pytest-bdd-8.1.0-r1.ebuild} | 6 +++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/dev-python/pytest-bdd/files/pytest-bdd-8.1.0-gherkin-bounds.patch
b/dev-python/pytest-bdd/files/pytest-bdd-8.1.0-gherkin-bounds.patch
new file mode 100644
index 000000000000..0a1087211c96
--- /dev/null
+++ b/dev-python/pytest-bdd/files/pytest-bdd-8.1.0-gherkin-bounds.patch
@@ -0,0 +1,12 @@
+Unknown how long until next release, and meanwhile `pip check`
+reporting errors has a tendency to break random things.
+
+Backport from:
+https://github.com/pytest-dev/pytest-bdd/commit/8ce79eafa6ac4
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -43,3 +43,3 @@
+ packaging = "*"
+-gherkin-official = "^29.0.0"
++gherkin-official = ">=29.0.0"
+
diff --git a/dev-python/pytest-bdd/pytest-bdd-8.1.0.ebuild
b/dev-python/pytest-bdd/pytest-bdd-8.1.0-r1.ebuild
similarity index 92%
rename from dev-python/pytest-bdd/pytest-bdd-8.1.0.ebuild
rename to dev-python/pytest-bdd/pytest-bdd-8.1.0-r1.ebuild
index 013d82c71c1f..1671498e5438 100644
--- a/dev-python/pytest-bdd/pytest-bdd-8.1.0.ebuild
+++ b/dev-python/pytest-bdd/pytest-bdd-8.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021-2024 Gentoo Authors
+# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -32,6 +32,10 @@ distutils_enable_tests pytest
DOCS=( AUTHORS.rst CHANGES.rst README.rst )
+PATCHES=(
+ "${FILESDIR}"/${P}-gherkin-bounds.patch
+)
+
src_test() {
# terminal_reporter test needs exact wrapping
local -x COLUMNS=80