1 |
commit: 4af18f3fc8c26ddeb34496710b890734796ecc6b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 30 09:49:46 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 30 10:01:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4af18f3f |
7 |
|
8 |
dev-python/GitPython: Strip wrong typing-extensions requirement |
9 |
|
10 |
Closes: https://bugs.gentoo.org/827882 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
...itPython-3.1.24.ebuild => GitPython-3.1.24-r1.ebuild} | 16 ++++++++++------ |
14 |
1 file changed, 10 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/GitPython/GitPython-3.1.24.ebuild b/dev-python/GitPython/GitPython-3.1.24-r1.ebuild |
17 |
similarity index 87% |
18 |
rename from dev-python/GitPython/GitPython-3.1.24.ebuild |
19 |
rename to dev-python/GitPython/GitPython-3.1.24-r1.ebuild |
20 |
index fb41b5d68343..e1d2a407f0f1 100644 |
21 |
--- a/dev-python/GitPython/GitPython-3.1.24.ebuild |
22 |
+++ b/dev-python/GitPython/GitPython-3.1.24-r1.ebuild |
23 |
@@ -27,10 +27,7 @@ KEYWORDS="amd64 ~arm arm64 ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd6 |
24 |
|
25 |
RDEPEND=" |
26 |
dev-vcs/git |
27 |
- >=dev-python/gitdb-4.0.1[${PYTHON_USEDEP}] |
28 |
- $(python_gen_cond_dep ' |
29 |
- dev-python/typing-extensions[${PYTHON_USEDEP}] |
30 |
- ' python3_7)" |
31 |
+ >=dev-python/gitdb-4.0.1[${PYTHON_USEDEP}]" |
32 |
BDEPEND=" |
33 |
test? ( |
34 |
>=dev-python/ddt-1.1.1[${PYTHON_USEDEP}] |
35 |
@@ -38,6 +35,13 @@ BDEPEND=" |
36 |
|
37 |
distutils_enable_tests pytest |
38 |
|
39 |
+src_prepare() { |
40 |
+ # upstream reverted the changes needing py3.10's typing module |
41 |
+ # but did not update the dep |
42 |
+ sed -i -e '/typing-extensions/d' requirements.txt || die |
43 |
+ distutils-r1_src_prepare |
44 |
+} |
45 |
+ |
46 |
src_test() { |
47 |
git config --global user.email "travis@××.com" || die |
48 |
git config --global user.name "Travis Runner" || die |
49 |
@@ -58,7 +62,7 @@ src_test() { |
50 |
} |
51 |
|
52 |
python_test() { |
53 |
- local deselect=( |
54 |
+ local EPYTEST_DESELECT=( |
55 |
# performance tests are unreliable by design |
56 |
test/performance |
57 |
# unimpoortant and problematic |
58 |
@@ -70,5 +74,5 @@ python_test() { |
59 |
test/test_submodule.py::TestSubmodule::test_root_module |
60 |
) |
61 |
|
62 |
- epytest ${deselect[@]/#/--deselect } |
63 |
+ epytest |
64 |
} |