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/humanize/
Date: Sat, 08 Aug 2020 14:44:52
Message-Id: 1596897824.240d98e15d42f67bc1625c793fd2046d5b3773ec.sbraz@gentoo
1 commit: 240d98e15d42f67bc1625c793fd2046d5b3773ec
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 8 14:42:00 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 8 14:43:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240d98e1
7
8 dev-python/humanize: bump to 2.5.0, add Python 3.9 support
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/humanize/Manifest | 1 +
14 dev-python/humanize/humanize-2.5.0.ebuild | 36 +++++++++++++++++++++++++++++++
15 2 files changed, 37 insertions(+)
16
17 diff --git a/dev-python/humanize/Manifest b/dev-python/humanize/Manifest
18 index a85145be7d1..6177519da1f 100644
19 --- a/dev-python/humanize/Manifest
20 +++ b/dev-python/humanize/Manifest
21 @@ -1 +1,2 @@
22 DIST humanize-2.4.1.tar.gz 46827 BLAKE2B e9b37283c5a4db1c5b2a9ef61919fe02a4e5720711129910e51b0b3481290c9bfa4e29225db75c37d83884c00065fa71b599ed42fac41414f481167d33091a98 SHA512 5d8534d2e97f375c7ec065dd239334a2a5da9d058f7c0312cb2683c3e42f5b8f99e117782e0888a6e5348f43958523df6609c294f5af7c971d81bd29679a0500
23 +DIST humanize-2.5.0.tar.gz 48126 BLAKE2B a0351352cacc53da2e45e9417963dd7fa5e06e568a2d8ee9c770b15dc9d977d27ba8419e9c18acb05093956a86fbed4379fe2004e73a2e1f8c99df3d80704170 SHA512 ffd8df6041108cdcc20dbad2b04e6e4d7ba010065574bb0c2f19a4bbb55687265a3f834223588f71825736737d8c710fa98f3549035369a90e385b92efea8ee1
24
25 diff --git a/dev-python/humanize/humanize-2.5.0.ebuild b/dev-python/humanize/humanize-2.5.0.ebuild
26 new file mode 100644
27 index 00000000000..6225e90488c
28 --- /dev/null
29 +++ b/dev-python/humanize/humanize-2.5.0.ebuild
30 @@ -0,0 +1,36 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} )
37 +# The package uses pkg_resources to determine its version
38 +DISTUTILS_USE_SETUPTOOLS=manual
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Common humanization utilities"
43 +HOMEPAGE="https://github.com/jmoiron/humanize/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
53 +BDEPEND="
54 + dev-python/setuptools[${PYTHON_USEDEP}]
55 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
56 + test? (
57 + dev-python/freezegun[${PYTHON_USEDEP}]
58 + dev-python/pytest[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +python_test() {
63 + # The package uses pkg_resources to determine its version
64 + distutils_install_for_testing
65 + pytest -vv || die "Tests fail with ${EPYTHON}"
66 +}