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/dulwich/
Date: Wed, 23 Dec 2020 08:29:12
Message-Id: 1608712138.2c246ae5ae0416b347393a41c6029554ee18ea0c.mgorny@gentoo
1 commit: 2c246ae5ae0416b347393a41c6029554ee18ea0c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 23 08:18:13 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 23 08:28:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c246ae5
7
8 dev-python/dulwich: Bump to 0.20.15
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/dulwich/Manifest | 1 +
13 dev-python/dulwich/dulwich-0.20.15.ebuild | 54 +++++++++++++++++++++++++++++++
14 2 files changed, 55 insertions(+)
15
16 diff --git a/dev-python/dulwich/Manifest b/dev-python/dulwich/Manifest
17 index ba8c44fd8d7..de1999352cd 100644
18 --- a/dev-python/dulwich/Manifest
19 +++ b/dev-python/dulwich/Manifest
20 @@ -1 +1,2 @@
21 +DIST dulwich-0.20.15.tar.gz 391841 BLAKE2B 8db19f84154dff0851fd16bc534d92b506c93a93d7180079bc9829a2c81bbb25b04b234770e62ddab82440973d0702b8523896a9db90d771d8cc915b6321cdaa SHA512 a4e746099a90ea2d7eb5f0309508a4f625d41732bdda78997fab07b38ea2ecbd2c2aed08c8ef05b1b73fe3e2ba9b8c8cbf02270f8edbc6235d66cdee0317365c
22 DIST dulwich-0.20.6.tar.gz 388660 BLAKE2B 1a193d03e0f21a9fdd125617823742b87e9bea74c73734da10eb79f1ecbec0263cb90224f78413c724db8998f4d06ff6c448e7a6d50ce760ba1545f3321b95d8 SHA512 2f11ce9a1c716fb4242f1f93fce92f756bd93ed8f0951fc2e6b3fb18b0a495b0f372966149fca587efcafc0eaf00e9fbfcfd957442a96cc2004eb66cb7f0773e
23
24 diff --git a/dev-python/dulwich/dulwich-0.20.15.ebuild b/dev-python/dulwich/dulwich-0.20.15.ebuild
25 new file mode 100644
26 index 00000000000..d43de0e9f95
27 --- /dev/null
28 +++ b/dev-python/dulwich/dulwich-0.20.15.ebuild
29 @@ -0,0 +1,54 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6,7,8,9} )
36 +DISTUTILS_USE_SETUPTOOLS=rdepend # tests use setuptools, setup uses if found
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Pure-Python implementation of the Git file formats and protocols"
41 +HOMEPAGE="https://github.com/jelmer/dulwich/ https://pypi.org/project/dulwich/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2+"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="doc examples test"
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="
51 + dev-python/certifi[${PYTHON_USEDEP}]
52 + dev-python/urllib3[${PYTHON_USEDEP}]
53 +"
54 +BDEPEND="
55 + test? (
56 + ${RDEPEND}
57 + !hppa? ( !ia64? (
58 + dev-python/gevent[${PYTHON_USEDEP}]
59 + dev-python/geventhttpclient[${PYTHON_USEDEP}]
60 + ) )
61 + dev-python/mock[${PYTHON_USEDEP}]
62 + dev-python/python-fastimport[${PYTHON_USEDEP}]
63 + )"
64 +
65 +distutils_enable_sphinx docs
66 +
67 +python_test() {
68 + # remove interference from the tests that do stuff like user.name
69 + unset GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE \
70 + GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE EMAIL
71 + # Do not use make check which rebuilds the extension and uses -Werror,
72 + # causing unexpected failures.
73 + "${EPYTHON}" -m unittest -v dulwich.tests.test_suite \
74 + || die "tests failed with ${EPYTHON}"
75 +}
76 +
77 +python_install_all() {
78 + if use examples; then
79 + docompress -x "/usr/share/doc/${PF}/examples"
80 + dodoc -r examples
81 + fi
82 + distutils-r1_python_install_all
83 +}