mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 12:18:08 -07:00
doing the test
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST colorama-0.3.3.tar.gz 22765 SHA256 eb21f2ba718fbf357afdfdf6f641ab393901c7ca8d9f37edd0bee4806ffa269c SHA512 8e6177ea60ab8f1267ce982f23803a9d2eb0c4550d7eac4776416d62a99d1ce03254fc64cc959ca95e2409ceeff081d4d19359c383e969dfb921b44c56914495 WHIRLPOOL e5fe6c0046b558abdde260d9d89e3cbe197165f99fb4f7134c14fff95e6c1e92b3472a95001d847ab58e8445c87f21774a71f629771593934ea070838c765461
|
||||
DIST colorama-0.3.5.tar.gz 24520 SHA256 0880a751afcb111881b437a846a93e540c7e1346030ba7bd7fda03434371fbc3 SHA512 a7d17fd51d4a2338903bdee356245ef639300f5001a0b24bd7e74f46a6188a1f8f3d7270195f75391f2553fe4b0767e661159a5fe9293e1eea5834b98d0f4e57 WHIRLPOOL 1195da18c06c11f0dd6e4606d111fa5aad3aee1c18ac97aebde4ee2a1829cda32d236fd4a84a314eae65ed997fb17dbcf377a3858de52d9636863e4296c954e2
|
||||
DIST colorama-0.3.6.tar.gz 24505 SHA256 ec9efcccb086a1d727876384f94ee6358d2f3f096688c1ba18b0f318f2b453b5 SHA512 d49e3c97524c53e0b09a16b0a3c038d4a0e0ee1ae79929294060d248bc397db47523dd919e910ef74c902995130d024dde278b4db5136a437daf032a1bdeba0e WHIRLPOOL 6dd97b4bfe5c5f2b99f062fffcadc2578a633339d4b55abd975a969340d82e641ab1178183d5af9c33be6ac0d5f390f1d2e9bf957349c86c5fed7b9d0dbabc44
|
||||
DIST colorama-0.3.7.tar.gz 24602 SHA256 e043c8d32527607223652021ff648fbb394d5e19cba9f1a698670b338c9d782b SHA512 4d6241afbcbc82c4451911587fd6a54ab1ecb43ca113f465b6966ceb44c79f074220317c249055e28b7023b90a5015819a8048ed11bcc1feb85a2d36df15f3cf WHIRLPOOL 5fd0b482fcb77fbbb27bb2d162aed19ceb92ae9c793e4121f39921aec6bcb3d5dacc50ede010f369aef3cacef425faac5bceea423d3a6c176735dfd8112853cb
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="ANSI escape character sequences for colored terminal text & cursor positioning"
|
||||
HOMEPAGE="
|
||||
https://pypi.python.org/pypi/colorama
|
||||
https://github.com/tartley/colorama"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples"
|
||||
|
||||
python_install_all() {
|
||||
use examples && local EXAMPLES=( demos/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="ANSI escape character sequences for colored terminal text & cursor positioning"
|
||||
HOMEPAGE="
|
||||
https://pypi.python.org/pypi/colorama
|
||||
https://github.com/tartley/colorama"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}.patch )
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -r demos/.
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
diff -r -U2 colorama-0.3.6.orig/colorama/ansitowin32.py colorama-0.3.6/colorama/ansitowin32.py
|
||||
--- colorama-0.3.6.orig/colorama/ansitowin32.py 2015-12-14 09:09:52.000000000 +0100
|
||||
+++ colorama-0.3.6/colorama/ansitowin32.py 2016-02-23 13:52:37.230415139 +0100
|
||||
@@ -14,4 +14,8 @@
|
||||
|
||||
|
||||
+def is_stream_closed(stream):
|
||||
+ return not hasattr(stream, 'closed') or stream.closed
|
||||
+
|
||||
+
|
||||
def is_a_tty(stream):
|
||||
return hasattr(stream, 'isatty') and stream.isatty()
|
||||
@@ -65,10 +69,10 @@
|
||||
# should we strip ANSI sequences from our output?
|
||||
if strip is None:
|
||||
- strip = conversion_supported or (not wrapped.closed and not is_a_tty(wrapped))
|
||||
+ strip = conversion_supported or (not is_stream_closed(wrapped) and not is_a_tty(wrapped))
|
||||
self.strip = strip
|
||||
|
||||
# should we should convert ANSI sequences into win32 calls?
|
||||
if convert is None:
|
||||
- convert = conversion_supported and not wrapped.closed and is_a_tty(wrapped)
|
||||
+ convert = conversion_supported and not is_stream_closed(wrapped) and is_a_tty(wrapped)
|
||||
self.convert = convert
|
||||
|
||||
@@ -146,5 +150,5 @@
|
||||
if self.convert:
|
||||
self.call_win32('m', (0,))
|
||||
- elif not self.strip and not self.wrapped.closed:
|
||||
+ elif not self.strip and not is_stream_closed(self.wrapped):
|
||||
self.wrapped.write(Style.RESET_ALL)
|
||||
|
||||
Reference in New Issue
Block a user