Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/GitPython/
Date: Mon, 10 Jan 2022 20:00:21
Message-Id: 1641844810.aa219722fee3e2bf5b29f779c64256fc31636f61.mgorny@gentoo
1 commit: aa219722fee3e2bf5b29f779c64256fc31636f61
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 10 19:54:45 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 10 20:00:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa219722
7
8 dev-python/GitPython: Bump to 3.1.26
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/GitPython/GitPython-3.1.26.ebuild | 78 ++++++++++++++++++++++++++++
13 dev-python/GitPython/Manifest | 2 +
14 2 files changed, 80 insertions(+)
15
16 diff --git a/dev-python/GitPython/GitPython-3.1.26.ebuild b/dev-python/GitPython/GitPython-3.1.26.ebuild
17 new file mode 100644
18 index 000000000000..12f116358c54
19 --- /dev/null
20 +++ b/dev-python/GitPython/GitPython-3.1.26.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 a360893de71f..bc75e48df902 100644
103 --- a/dev-python/GitPython/Manifest
104 +++ b/dev-python/GitPython/Manifest
105 @@ -2,6 +2,8 @@ DIST GitPython-3.1.24.gitbundle 9658020 BLAKE2B 4ac2c1a238de1d6e5be9f2d65ec486a1
106 DIST GitPython-3.1.24.tar.gz 191249 BLAKE2B b60f5186aea33434d77b63997e5e9dc277b49a97934bfe250795af9c0ed92d00c478dd4475a00faa2f5867882f81161dcd21ed46c86883a48b8397266b5318de SHA512 af2aa85574287827e5d2b78f7a19776be57518aa0b8af7a3fb92bef0d97c6a27b3272ed39adf2080b39cd5a9eb114164de7a2a9bbf73cfe1fe2647e0b053b092
107 DIST GitPython-3.1.25.gitbundle 9683858 BLAKE2B 64dc43f6602f797830c6bf44d85ee0b5f870ca7f52626cc6f6f3e9e3a01faf3ad1fcb276e4f583eac9ff9add74fb7ea967e8df614f93434e56ef7b57963540c0 SHA512 2f1d6f839e80b2c70e892af48511403ffc229e8d61cf0faa6680d9b011363ceb2f0da750028f831d3099c2cdce16c375ef60ec94cc2f831e93f54e7728a78f12
108 DIST GitPython-3.1.25.tar.gz 191824 BLAKE2B 95185d0e45cfefd4c74c98d9319aacbd678f942e87569beaf87052c4090947ab58a508f5248998d23952277ccae93effdaab2dc0647fd07964971fdc7f2ac9d7 SHA512 f5b29f2374c63d122e697fca8bc65d2db03f43eb21c70a903fdb3bb1667ab647cff9ad6b473213a47d124775fb7424b5abff7b8d76bf2748ac848dd4aebdd04a
109 +DIST GitPython-3.1.26.gitbundle 9711896 BLAKE2B 31c06bc713cabe11f0a1cb5fe0a94dbca628cc047de3ac29d83eb97370ebe112aae813ab93717618d4382f13a63bd9cc79709e493c99f77c7d0a2a505181e869 SHA512 99ea5bf310e5edb36f02b44b07729041c683bd1eea1b7af278d6a89147a0761c04aa6eeafbd488b1c84935d00ebf47e7c6230984a8caaccdeccd8c3878b094e4
110 +DIST GitPython-3.1.26.tar.gz 191901 BLAKE2B 365defa1947719273319bbf8b035710b6bfcecae19d5a8f452d4667b4227f1a5bce4238ff9377b2ac97eee27de97410b19882072b5b6673ec6a75638bd9c8751 SHA512 dcaa14b5bafb6d41c0d5afd57494146b309bcd9a7c65ed4ce56f71fc6e2399640147fac7319dd91b8ea4ae1ca38d02885d5a4b64eccb043c4b8a4347e27a1ecb
111 DIST gitdb-4.0.7.gitbundle 1498536 BLAKE2B 1e0aff67259c04d2932dbdefb0ae07bd9fb51c5dcb99ee8431e78bf428095250ed45f5e12e2484b407bb4257050b0864e67096b3501d4829491cb7714a7b5ddf SHA512 f8b1b3de00f0597d65f528dd30495fd3dd9e1e4d494987899ef2064d23947ede799db391a59688dfa27e4fcdc9379b5352a378b39e6fb2421e6c850f81157bec
112 DIST gitdb-4.0.9.gitbundle 1461448 BLAKE2B dad9efdc4e9711361c851f4745df2e3fa3b2360ab58cffea971a854429cf3e11862a267efb5afa3d9ff7668dc6d1bb7f11aa033172238bea61a6252d0488b746 SHA512 eb71e6dd380e67a96a9dcd50a3a3c82aab8c7f85b1ca4258a92202a5e4cb5a1535363599c94ab26884b4cd755ce30694c1b193a95e5cd5199b5d4e2cf8e72818
113 DIST smmap-4.0.0.gitbundle 322820 BLAKE2B 20ac688cafa9ad036f3e21ac1bb9323ae55e618eb0806634fe4c885d2b12fe802779adcffb0fea3da9707e94109a168738d63abe990d1ce9b141c779aa6798d6 SHA512 03296099303eb38ac9ca46733255024355aed2e64a2f9409552ae34af76beb9685a6dd2458df986593fe426e428bc184617abe22c8b92ee01c8c7e1d98de8592