dev-python/mypy: Backport pathspec >= 1 patch to older versions

Closes: https://bugs.gentoo.org/972405
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-07 18:32:22 +02:00
parent 1a32904487
commit a7ecd2eaa8
3 changed files with 6 additions and 26 deletions

View File

@@ -68,25 +68,3 @@ index 54d2263a03f63..c58d798be55a9 100644
"tomli>=1.1.0; python_version<'3.11'",
"librt>=0.6.2; platform_python_implementation != 'PyPy'",
]
diff --git a/test-requirements.txt b/test-requirements.txt
index 883930c681a41..05f9163121c14 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -22,7 +22,7 @@ identify==2.6.15
# via pre-commit
iniconfig==2.1.0
# via pytest
-librt==0.7.3 ; platform_python_implementation != 'PyPy'
+librt==0.7.3 ; platform_python_implementation != "PyPy"
# via -r mypy-requirements.txt
lxml==6.0.2 ; python_version < "3.15"
# via -r test-requirements.in
@@ -32,7 +32,7 @@ nodeenv==1.9.1
# via pre-commit
packaging==25.0
# via pytest
-pathspec==0.12.1
+pathspec==1.0.0
# via -r mypy-requirements.txt
platformdirs==4.5.0
# via virtualenv

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -28,7 +28,7 @@ IUSE="+native-extensions"
# stubgen collides with this package: https://bugs.gentoo.org/585594
RDEPEND="
!dev-util/stubgen
>=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}]
>=dev-python/pathspec-1.0.0[${PYTHON_USEDEP}]
>=dev-python/psutil-4[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}]
>=dev-python/mypy-extensions-1.0.0[${PYTHON_USEDEP}]
@@ -57,6 +57,7 @@ export CCACHE_DISABLE=1
PATCHES=(
"${FILESDIR}"/${PN}-1.14.0-no-werror.patch
"${FILESDIR}"/${PN}-1.19.1-update-pathspec.patch
)
src_prepare() {

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -28,7 +28,7 @@ IUSE="native-extensions"
# stubgen collides with this package: https://bugs.gentoo.org/585594
RDEPEND="
!dev-util/stubgen
>=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}]
>=dev-python/pathspec-1.0.0[${PYTHON_USEDEP}]
>=dev-python/psutil-4[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}]
>=dev-python/mypy-extensions-1.0.0[${PYTHON_USEDEP}]
@@ -57,6 +57,7 @@ export CCACHE_DISABLE=1
PATCHES=(
"${FILESDIR}"/${PN}-1.14.0-no-werror.patch
"${FILESDIR}"/${PN}-1.19.1-update-pathspec.patch
)
src_prepare() {