1 |
commit: 8ee2bf72f4a41ef1daa171af7c2e0ebea29740d6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 8 08:01:41 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 8 09:24:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ee2bf72 |
7 |
|
8 |
dev-python/GitPython: Bump to 3.1.25 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/GitPython/GitPython-3.1.25.ebuild | 78 ++++++++++++++++++++++++++++ |
13 |
dev-python/GitPython/Manifest | 4 ++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/GitPython/GitPython-3.1.25.ebuild b/dev-python/GitPython/GitPython-3.1.25.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..12f116358c54 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/GitPython/GitPython-3.1.25.ebuild |
21 |
@@ -0,0 +1,78 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+PYTHON_REQ_USE="threads(+)" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+TEST_P=GitPython-${PV} |
33 |
+GITDB_P=gitdb-4.0.9 |
34 |
+SMMAP_P=smmap-5.0.0 |
35 |
+ |
36 |
+DESCRIPTION="Library used to interact with Git repositories" |
37 |
+HOMEPAGE="https://github.com/gitpython-developers/GitPython https://pypi.org/project/GitPython/" |
38 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz |
39 |
+ test? ( |
40 |
+ https://dev.gentoo.org/~mgorny/dist/${TEST_P}.gitbundle |
41 |
+ https://dev.gentoo.org/~mgorny/dist/${GITDB_P}.gitbundle |
42 |
+ https://dev.gentoo.org/~mgorny/dist/${SMMAP_P}.gitbundle |
43 |
+ )" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-vcs/git |
51 |
+ >=dev-python/gitdb-4.0.1[${PYTHON_USEDEP}]" |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ >=dev-python/ddt-1.1.1[${PYTHON_USEDEP}] |
55 |
+ )" |
56 |
+ |
57 |
+distutils_enable_tests pytest |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ # upstream reverted the changes needing py3.10's typing module |
61 |
+ # but did not update the dep |
62 |
+ sed -i -e '/typing-extensions/d' requirements.txt || die |
63 |
+ distutils-r1_src_prepare |
64 |
+} |
65 |
+ |
66 |
+src_test() { |
67 |
+ git config --global user.email "travis@××.com" || die |
68 |
+ git config --global user.name "Travis Runner" || die |
69 |
+ |
70 |
+ git clone "${DISTDIR}/${TEST_P}.gitbundle" "${T}"/test || die |
71 |
+ git clone "${DISTDIR}/${GITDB_P}.gitbundle" \ |
72 |
+ "${T}"/test/git/ext/gitdb || die |
73 |
+ git clone "${DISTDIR}/${SMMAP_P}.gitbundle" \ |
74 |
+ "${T}"/test/git/ext/gitdb/gitdb/ext/smmap || die |
75 |
+ |
76 |
+ cd "${T}"/test || die |
77 |
+ git rev-parse HEAD > .git/refs/remotes/origin/master || die |
78 |
+ TRAVIS=1 ./init-tests-after-clone.sh || die |
79 |
+ cat test/fixtures/.gitconfig >> ~/.gitconfig || die |
80 |
+ sed -i -e '/addopts/d' pyproject.toml || die |
81 |
+ |
82 |
+ distutils-r1_src_test |
83 |
+} |
84 |
+ |
85 |
+python_test() { |
86 |
+ local EPYTEST_DESELECT=( |
87 |
+ # performance tests are unreliable by design |
88 |
+ test/performance |
89 |
+ # unimpoortant and problematic |
90 |
+ test/test_installation.py |
91 |
+ # Internet |
92 |
+ test/test_repo.py::TestRepo::test_leaking_password_in_clone_logs |
93 |
+ # TODO |
94 |
+ test/test_submodule.py::TestSubmodule::test_base_rw |
95 |
+ test/test_submodule.py::TestSubmodule::test_root_module |
96 |
+ ) |
97 |
+ |
98 |
+ epytest |
99 |
+} |
100 |
|
101 |
diff --git a/dev-python/GitPython/Manifest b/dev-python/GitPython/Manifest |
102 |
index 91b89ddf4f84..a360893de71f 100644 |
103 |
--- a/dev-python/GitPython/Manifest |
104 |
+++ b/dev-python/GitPython/Manifest |
105 |
@@ -1,4 +1,8 @@ |
106 |
DIST GitPython-3.1.24.gitbundle 9658020 BLAKE2B 4ac2c1a238de1d6e5be9f2d65ec486a1a48b38695946889f8ba1c7f0474216e251d6385737d0576be9ece09d3751a305d756b58a21dc20a279609a35553de0f0 SHA512 9f05b4c92b85fa80e9b774380758c1a6e0d4ada81c170ddd6c542a31fae1a047844a481e8478afc3472e3a226f8eca1a37a3ef7a6b9c06787fd84543cd073b1e |
107 |
DIST GitPython-3.1.24.tar.gz 191249 BLAKE2B b60f5186aea33434d77b63997e5e9dc277b49a97934bfe250795af9c0ed92d00c478dd4475a00faa2f5867882f81161dcd21ed46c86883a48b8397266b5318de SHA512 af2aa85574287827e5d2b78f7a19776be57518aa0b8af7a3fb92bef0d97c6a27b3272ed39adf2080b39cd5a9eb114164de7a2a9bbf73cfe1fe2647e0b053b092 |
108 |
+DIST GitPython-3.1.25.gitbundle 9683858 BLAKE2B 64dc43f6602f797830c6bf44d85ee0b5f870ca7f52626cc6f6f3e9e3a01faf3ad1fcb276e4f583eac9ff9add74fb7ea967e8df614f93434e56ef7b57963540c0 SHA512 2f1d6f839e80b2c70e892af48511403ffc229e8d61cf0faa6680d9b011363ceb2f0da750028f831d3099c2cdce16c375ef60ec94cc2f831e93f54e7728a78f12 |
109 |
+DIST GitPython-3.1.25.tar.gz 191824 BLAKE2B 95185d0e45cfefd4c74c98d9319aacbd678f942e87569beaf87052c4090947ab58a508f5248998d23952277ccae93effdaab2dc0647fd07964971fdc7f2ac9d7 SHA512 f5b29f2374c63d122e697fca8bc65d2db03f43eb21c70a903fdb3bb1667ab647cff9ad6b473213a47d124775fb7424b5abff7b8d76bf2748ac848dd4aebdd04a |
110 |
DIST gitdb-4.0.7.gitbundle 1498536 BLAKE2B 1e0aff67259c04d2932dbdefb0ae07bd9fb51c5dcb99ee8431e78bf428095250ed45f5e12e2484b407bb4257050b0864e67096b3501d4829491cb7714a7b5ddf SHA512 f8b1b3de00f0597d65f528dd30495fd3dd9e1e4d494987899ef2064d23947ede799db391a59688dfa27e4fcdc9379b5352a378b39e6fb2421e6c850f81157bec |
111 |
+DIST gitdb-4.0.9.gitbundle 1461448 BLAKE2B dad9efdc4e9711361c851f4745df2e3fa3b2360ab58cffea971a854429cf3e11862a267efb5afa3d9ff7668dc6d1bb7f11aa033172238bea61a6252d0488b746 SHA512 eb71e6dd380e67a96a9dcd50a3a3c82aab8c7f85b1ca4258a92202a5e4cb5a1535363599c94ab26884b4cd755ce30694c1b193a95e5cd5199b5d4e2cf8e72818 |
112 |
DIST smmap-4.0.0.gitbundle 322820 BLAKE2B 20ac688cafa9ad036f3e21ac1bb9323ae55e618eb0806634fe4c885d2b12fe802779adcffb0fea3da9707e94109a168738d63abe990d1ce9b141c779aa6798d6 SHA512 03296099303eb38ac9ca46733255024355aed2e64a2f9409552ae34af76beb9685a6dd2458df986593fe426e428bc184617abe22c8b92ee01c8c7e1d98de8592 |
113 |
+DIST smmap-5.0.0.gitbundle 338621 BLAKE2B 58c151245a1353d482e06313beb1cfbe7aa23d30733b284b1745b562da1da4e6f9b8acd7d4b967987e8c29a0cfbe6d3b27790f4683f6cbd86fc22a1416bc1c24 SHA512 94b827cdcfaf31b726b48b7b0a9036e852683046b07430b79e59a1339079ca078129d5eb02d9009979ce86892748b700d6cd281e401ddf6b0048252e2181fe1f |