commit: 4af18f3fc8c26ddeb34496710b890734796ecc6b Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Nov 30 09:49:46 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Nov 30 10:01:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4af18f3f
dev-python/GitPython: Strip wrong typing-extensions requirement Closes: https://bugs.gentoo.org/827882 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> ...itPython-3.1.24.ebuild => GitPython-3.1.24-r1.ebuild} | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dev-python/GitPython/GitPython-3.1.24.ebuild b/dev-python/GitPython/GitPython-3.1.24-r1.ebuild similarity index 87% rename from dev-python/GitPython/GitPython-3.1.24.ebuild rename to dev-python/GitPython/GitPython-3.1.24-r1.ebuild index fb41b5d68343..e1d2a407f0f1 100644 --- a/dev-python/GitPython/GitPython-3.1.24.ebuild +++ b/dev-python/GitPython/GitPython-3.1.24-r1.ebuild @@ -27,10 +27,7 @@ KEYWORDS="amd64 ~arm arm64 ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd6 RDEPEND=" dev-vcs/git - >=dev-python/gitdb-4.0.1[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - ' python3_7)" + >=dev-python/gitdb-4.0.1[${PYTHON_USEDEP}]" BDEPEND=" test? ( >=dev-python/ddt-1.1.1[${PYTHON_USEDEP}] @@ -38,6 +35,13 @@ BDEPEND=" distutils_enable_tests pytest +src_prepare() { + # upstream reverted the changes needing py3.10's typing module + # but did not update the dep + sed -i -e '/typing-extensions/d' requirements.txt || die + distutils-r1_src_prepare +} + src_test() { git config --global user.email "[email protected]" || die git config --global user.name "Travis Runner" || die @@ -58,7 +62,7 @@ src_test() { } python_test() { - local deselect=( + local EPYTEST_DESELECT=( # performance tests are unreliable by design test/performance # unimpoortant and problematic @@ -70,5 +74,5 @@ python_test() { test/test_submodule.py::TestSubmodule::test_root_module ) - epytest ${deselect[@]/#/--deselect } + epytest }
