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: Tue, 01 Jun 2021 21:37:21
Message-Id: 1622583312.f9881266ef7089a653183694b14fd65372c6bf85.mgorny@gentoo
1 commit: f9881266ef7089a653183694b14fd65372c6bf85
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 1 21:35:12 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 21:35:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9881266
7
8 dev-python/pygit2: Bump to 1.6.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.6.0.ebuild | 40 +++++++++++++++++++++++++++++++++++
14 2 files changed, 41 insertions(+)
15
16 diff --git a/dev-python/pygit2/Manifest b/dev-python/pygit2/Manifest
17 index 604910fac8b..2513d300978 100644
18 --- a/dev-python/pygit2/Manifest
19 +++ b/dev-python/pygit2/Manifest
20 @@ -1 +1,2 @@
21 DIST pygit2-1.5.0.tar.gz 255958 BLAKE2B 696a4c39920e7f66962b69d2a838c55bfb6f96e7e5ee56a39aaa732926accc3bb6331042382fd22f377959cbc129be0320d94765d13db95fdb7c7f87a14f7608 SHA512 3f915c855ad08641391565906023d231550a38d4e7f8938fad4634a30e2ee1c81e2a0d3289052426e21d2c14814300a0f789eaaa9f3e62c3ece73cf53803bb80
22 +DIST pygit2-1.6.0.tar.gz 265798 BLAKE2B 8244cbcecdd9b9edcb8fb0cfbc2024f1d36a01c8a3e519e05770ca80d7a482393892bcbd4a61402e7622b84f02909a2a36b9767273d6322a94a15eb974fdb8fa SHA512 c051ce09d227b6ec0c7d3068b5b0220f5c150936d788462dfb3236c97954f9b76f6a1fd61cd42e604810582e3d1a5bc8784fc51c9fedac66ad1b42af580af494
23
24 diff --git a/dev-python/pygit2/pygit2-1.6.0.ebuild b/dev-python/pygit2/pygit2-1.6.0.ebuild
25 new file mode 100644
26 index 00000000000..15da3c0f8d4
27 --- /dev/null
28 +++ b/dev-python/pygit2/pygit2-1.6.0.ebuild
29 @@ -0,0 +1,40 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7..9} )
35 +
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.1*
48 + dev-python/cached-property[${PYTHON_USEDEP}]
49 + >=dev-python/cffi-1.0:=[${PYTHON_USEDEP}]
50 +"
51 +
52 +distutils_enable_tests pytest
53 +
54 +src_prepare() {
55 + distutils-r1_src_prepare
56 +
57 + # unconditionally prevent it from using network
58 + sed -i -e '/has_network/s:True:False:' test/utils.py || die
59 +
60 + # we need to move them away to prevent pytest from forcing '..'
61 + # for imports
62 + mkdir hack || die
63 + mv test hack/ || die
64 + ln -s hack/test test || die
65 +}
66 +
67 +python_test() {
68 + pytest -vv hack/test || die
69 +}