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/pygit2/
Date: Fri, 08 Oct 2021 19:47:32
Message-Id: 1633722446.16139bfbc710b8aa8dece93b906963f6de9e1414.mgorny@gentoo
1 commit: 16139bfbc710b8aa8dece93b906963f6de9e1414
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 8 19:26:48 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 8 19:47:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16139bfb
7
8 dev-python/pygit2: Bump to 1.7.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pygit2/Manifest | 1 +
13 dev-python/pygit2/pygit2-1.7.0.ebuild | 41 +++++++++++++++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/pygit2/Manifest b/dev-python/pygit2/Manifest
17 index 45f21fdd55d..0dcc19893f3 100644
18 --- a/dev-python/pygit2/Manifest
19 +++ b/dev-python/pygit2/Manifest
20 @@ -1 +1,2 @@
21 DIST pygit2-1.6.1.tar.gz 258338 BLAKE2B dc223e2a5231728c42ca7e0581483731fbab6ee090cf4aeeb27f186973b3c753fdf54c89679a88b97d834d717135f9b8f9a2adf492ed8572affa938c79d0f905 SHA512 67a78313493ba096cbae6805bda861495f33644fd180b5fb1cd99dcd226ef5a09ee85bd27d04d0697ef15503a4e902aa1384980870551f430fd9560ac949fe2f
22 +DIST pygit2-1.7.0.tar.gz 276292 BLAKE2B 6091e2916c4986cb545f23d3a31f262666f0349661ccc48769414e888d0ede48af3a80483b4638a3a2275b74ed9b42113bdeae678f03d76caa7e796c6011b50c SHA512 3a8654036d0ab875898ce60e81bcab48bdb6d6bd63c29dc98272c71b5c82391e3186da61083fba09faf722e176fed5c592a36edb53ae0b957726e74646d25616
23
24 diff --git a/dev-python/pygit2/pygit2-1.7.0.ebuild b/dev-python/pygit2/pygit2-1.7.0.ebuild
25 new file mode 100644
26 index 00000000000..3e42e86427e
27 --- /dev/null
28 +++ b/dev-python/pygit2/pygit2-1.7.0.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Python bindings for libgit2"
39 +HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.org/project/pygit2/"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2-with-linking-exception"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +RDEPEND="
47 + =dev-libs/libgit2-1.3*:=
48 + dev-python/cached-property[${PYTHON_USEDEP}]
49 + >=dev-python/cffi-1.0:=[${PYTHON_USEDEP}]
50 +"
51 +DEPEND="${RDEPEND}"
52 +
53 +distutils_enable_tests pytest
54 +
55 +src_prepare() {
56 + distutils-r1_src_prepare
57 +
58 + # unconditionally prevent it from using network
59 + sed -i -e '/has_network/s:True:False:' test/utils.py || die
60 +
61 + # we need to move them away to prevent pytest from forcing '..'
62 + # for imports
63 + mkdir hack || die
64 + mv test hack/ || die
65 + ln -s hack/test test || die
66 +}
67 +
68 +python_test() {
69 + epytest hack/test
70 +}