Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/humanfriendly/
Date: Mon, 28 Sep 2020 17:03:39
Message-Id: 1601312598.902cbc4c98ab37dfa312a90b27e61d30920ecb00.sbraz@gentoo
1 commit: 902cbc4c98ab37dfa312a90b27e61d30920ecb00
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 28 16:21:04 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 28 17:03:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=902cbc4c
7
8 dev-python/humanfriendly: bump to 8.2, fix deps, support PyPy3+Py3.9
9
10 repoman --force was used because test dependencies depend on
11 humanfriendly.
12
13 Package-Manager: Portage-3.0.8, Repoman-3.0.1
14 RepoMan-Options: --force
15 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
16
17 dev-python/humanfriendly/Manifest | 1 +
18 dev-python/humanfriendly/humanfriendly-8.2.ebuild | 35 +++++++++++++++++++++++
19 2 files changed, 36 insertions(+)
20
21 diff --git a/dev-python/humanfriendly/Manifest b/dev-python/humanfriendly/Manifest
22 index 3a5643b6a47..c0caf772e3c 100644
23 --- a/dev-python/humanfriendly/Manifest
24 +++ b/dev-python/humanfriendly/Manifest
25 @@ -1 +1,2 @@
26 DIST humanfriendly-4.18.tar.gz 345853 BLAKE2B 9b03ea0679f787e216ee78efe8feb77f83562998813718845f4d21b7ce3f42cadff0e80b96f02da3cf6dc7f35cb0714f746940cf2ac0ec8e8981377989650c8a SHA512 01c7ee50d35154fe0b7ad39662ca6ff2dcd3e0f2a2eacc62f0184102c9db1c0fd99257273982aff56710b4e59024e8c20ee77ddd10c68e427c077ed4ca7e0022
27 +DIST humanfriendly-8.2.tar.gz 358747 BLAKE2B bc5824e94ea94df6ee93ea44d273ccb856f50b69e52ae6293afaedf06c9f00c67e064f0c85edd88be9954bb258334b1b9af4ab88efc5b352f3efe8d322fc55c1 SHA512 123d8592e6613a70421740648bb8998733b118927a0bd6182af848612e46eec8e35cae95168219c9b7672bed8e18e1c4a493a80248eabe47f8a4cb1813c8b591
28
29 diff --git a/dev-python/humanfriendly/humanfriendly-8.2.ebuild b/dev-python/humanfriendly/humanfriendly-8.2.ebuild
30 new file mode 100644
31 index 00000000000..57700b106ef
32 --- /dev/null
33 +++ b/dev-python/humanfriendly/humanfriendly-8.2.ebuild
34 @@ -0,0 +1,35 @@
35 +# Copyright 1999-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( pypy3 python3_{6..9} )
41 +PYTHON_REQ_USE="threads(+)"
42 +
43 +DISTUTILS_USE_SETUPTOOLS=rdepend
44 +
45 +inherit distutils-r1
46 +
47 +DESCRIPTION="Human friendly output for text interfaces using Python"
48 +HOMEPAGE="https://pypi.org/project/humanfriendly
49 + https://github.com/xolox/python-humanfriendly
50 + https://humanfriendly.readthedocs.org"
51 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
52 +
53 +SLOT="0"
54 +LICENSE="MIT"
55 +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
56 +
57 +BDEPEND="
58 + test? (
59 + dev-python/capturer[${PYTHON_USEDEP}]
60 + dev-python/coloredlogs[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +distutils_enable_sphinx docs
66 +
67 +python_test() {
68 + pytest -vv ${PN}/tests.py || die "Tests fail with ${EPYTHON}"
69 +}