1 |
commit: 56f7aaeb2de478d83e0efe787c29fbd0c96ef040 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 12:24:20 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 12:25:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56f7aaeb |
7 |
|
8 |
dev-python/blessed: bump to 1.17.12 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/blessed/Manifest | 1 + |
14 |
dev-python/blessed/blessed-1.17.12.ebuild | 49 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/blessed/Manifest b/dev-python/blessed/Manifest |
18 |
index 2a97dedf8be..a3536abb43b 100644 |
19 |
--- a/dev-python/blessed/Manifest |
20 |
+++ b/dev-python/blessed/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST blessed-1.17.11.tar.gz 6697714 BLAKE2B a181fac1675b0e06bca54346bd6eea4032fde739888d36a7ec51afbe899e5cc71ad924b6bae45777d9b56567da1771f89d451760ec2b62abaf10f6235c69a66f SHA512 51e627f27aea0082fc93a4b1d10043b1152ae8b625dbb6c73f75e993f8eebc41ed1d8e64667de28afbc4606d066a90dd4c69c79fbed7b5b928d126efd3fbac22 |
23 |
+DIST blessed-1.17.12.tar.gz 6697754 BLAKE2B 0ae89a587a34936b31114e4bdf77effc51e0ad01b31f3b7e037fe96a44bbfecf1e2f64495d09e2627343f8021116ba1a2d6bccdaac7998b978aebc54e60a7a13 SHA512 134bba81793e8e0e33afcd9daa7453f11857b3207d0427f061ccfc0dd1caa17cff32f84883860f69e2a98ecbb5cc609f2a1091ab7ca8ff42322f6e8466ae06da |
24 |
|
25 |
diff --git a/dev-python/blessed/blessed-1.17.12.ebuild b/dev-python/blessed/blessed-1.17.12.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9904bbe0742 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/blessed/blessed-1.17.12.ebuild |
30 |
@@ -0,0 +1,49 @@ |
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..9} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Library for making terminal apps using colors, keyboard input and positioning" |
41 |
+HOMEPAGE="https://github.com/jquast/blessed" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+SLOT="0" |
45 |
+LICENSE="MIT" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/six[${PYTHON_USEDEP}] |
50 |
+ dev-python/wcwidth[${PYTHON_USEDEP}] |
51 |
+" |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ dev-python/mock[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
59 |
+distutils_enable_tests pytest |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # Skip those extensions as they don't have a Gentoo package |
63 |
+ # Remove calls to scripts that generate rst files because they |
64 |
+ # are not present in the tarball |
65 |
+ sed -e '/sphinxcontrib.manpage/d' -e '/sphinx_paramlinks/d' \ |
66 |
+ -e '/^for script in/,/runpy.run_path/d' \ |
67 |
+ -i docs/conf.py || die |
68 |
+ # Requires pytest-xdist and has no value for us |
69 |
+ sed -i '/^looponfailroots =/d' tox.ini || die |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ # COLORTERM must not be truecolor |
75 |
+ # See https://github.com/jquast/blessed/issues/162 |
76 |
+ # Ignore coverage options |
77 |
+ COLORTERM= pytest -vv --override-ini="addopts=" \ |
78 |
+ || die "tests failed with ${EPYTHON}" |
79 |
+} |