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/blessed/
Date: Mon, 14 Jun 2021 21:44:15
Message-Id: 1623706905.904012b5492f3512ad616e47e556c3326aa0d239.sbraz@gentoo
1 commit: 904012b5492f3512ad616e47e556c3326aa0d239
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 21:41:21 2021 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 21:41:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=904012b5
7
8 dev-python/blessed: add 1.18.1, use epytest
9
10 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
11
12 dev-python/blessed/Manifest | 1 +
13 dev-python/blessed/blessed-1.18.1.ebuild | 48 ++++++++++++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/dev-python/blessed/Manifest b/dev-python/blessed/Manifest
17 index f46f3877d7b..da0b53b75e3 100644
18 --- a/dev-python/blessed/Manifest
19 +++ b/dev-python/blessed/Manifest
20 @@ -1,3 +1,4 @@
21 DIST blessed-1.17.11.tar.gz 6697714 BLAKE2B a181fac1675b0e06bca54346bd6eea4032fde739888d36a7ec51afbe899e5cc71ad924b6bae45777d9b56567da1771f89d451760ec2b62abaf10f6235c69a66f SHA512 51e627f27aea0082fc93a4b1d10043b1152ae8b625dbb6c73f75e993f8eebc41ed1d8e64667de28afbc4606d066a90dd4c69c79fbed7b5b928d126efd3fbac22
22 DIST blessed-1.17.12.tar.gz 6697754 BLAKE2B 0ae89a587a34936b31114e4bdf77effc51e0ad01b31f3b7e037fe96a44bbfecf1e2f64495d09e2627343f8021116ba1a2d6bccdaac7998b978aebc54e60a7a13 SHA512 134bba81793e8e0e33afcd9daa7453f11857b3207d0427f061ccfc0dd1caa17cff32f84883860f69e2a98ecbb5cc609f2a1091ab7ca8ff42322f6e8466ae06da
23 DIST blessed-1.18.0.tar.gz 6651519 BLAKE2B e512ae49d19e3db09606e07b6a384683aada3de830e3a8f3e938e088607e4bc33f6b53b3d6477a2b0d4bdeb849fa4cea6eb3b0048294b3a567409a993f46b7dd SHA512 25b0c0c17e82ea975ace3415beb680e7ac917cdd4589ff11f0510067139d2f681316c35a59c7ef9bc5225291cebf6395f0dfc78da8845457ed7cc722ac708bbe
24 +DIST blessed-1.18.1.tar.gz 6651527 BLAKE2B 50667db4fff2eeeb1a238d0634ae3e67ab2323b988db4435174327a894d60fff4988c45cc55a633666d2ed88a8fae4e0844027a0bdc739e63f319ce19319142a SHA512 6b83ff2949ab3f7c5bf599897734092d305beaa21cb70583fcd1a26a42a7f16888813bd281a18905065a9989dbca29cd5a00cc4c75f4e360ab52209fc6d55a4f
25
26 diff --git a/dev-python/blessed/blessed-1.18.1.ebuild b/dev-python/blessed/blessed-1.18.1.ebuild
27 new file mode 100644
28 index 00000000000..956ad3977da
29 --- /dev/null
30 +++ b/dev-python/blessed/blessed-1.18.1.ebuild
31 @@ -0,0 +1,48 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( pypy3 python3_{7..10} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Library for making terminal apps using colors, keyboard input and positioning"
42 +HOMEPAGE="https://github.com/jquast/blessed"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +SLOT="0"
46 +LICENSE="MIT"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +RDEPEND="
50 + dev-python/six[${PYTHON_USEDEP}]
51 + dev-python/wcwidth[${PYTHON_USEDEP}]
52 +"
53 +BDEPEND="
54 + test? (
55 + dev-python/mock[${PYTHON_USEDEP}]
56 + )
57 +"
58 +
59 +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
60 +distutils_enable_tests pytest
61 +
62 +python_prepare_all() {
63 + # Skip those extensions as they don't have a Gentoo package
64 + # Remove calls to scripts that generate rst files because they
65 + # are not present in the tarball
66 + sed -e '/sphinxcontrib.manpage/d' -e '/sphinx_paramlinks/d' \
67 + -e '/^for script in/,/runpy.run_path/d' \
68 + -i docs/conf.py || die
69 + # Requires pytest-xdist and has no value for us
70 + sed -i '/^looponfailroots =/d' tox.ini || die
71 + distutils-r1_python_prepare_all
72 +}
73 +
74 +python_test() {
75 + # COLORTERM must not be truecolor
76 + # See https://github.com/jquast/blessed/issues/162
77 + # Ignore coverage options
78 + COLORTERM= epytest --override-ini="addopts="
79 +}