summaryrefslogtreecommitdiff
path: root/dev-python/GitPython
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-30 10:49:46 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-30 11:01:27 +0100
commit4af18f3fc8c26ddeb34496710b890734796ecc6b (patch)
tree577f6e5d56b4b37ecfd7ac0e5f7531636b1ba86d /dev-python/GitPython
parent6e59d53b3985968b931ade23b54d85b28b3d97a7 (diff)
downloadgentoo-4af18f3fc8c26ddeb34496710b890734796ecc6b.tar.gz
gentoo-4af18f3fc8c26ddeb34496710b890734796ecc6b.tar.bz2
gentoo-4af18f3fc8c26ddeb34496710b890734796ecc6b.zip
dev-python/GitPython: Strip wrong typing-extensions requirement
Closes: https://bugs.gentoo.org/827882 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/GitPython')
-rw-r--r--dev-python/GitPython/GitPython-3.1.24-r1.ebuild (renamed from dev-python/GitPython/GitPython-3.1.24.ebuild)16
1 files 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
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 "travis@ci.com" || 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
}