dev-python/sh: Version bump to 1.12.9

Gentoo-Bug: 608016

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Patrick McLean
2017-02-03 13:21:12 -08:00
parent 68d0d2bfed
commit bb73b416ef
3 changed files with 53 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST sh-1.11.tar.gz 36821 SHA256 590fb9b84abf8b1f560df92d73d87965f1e85c6b8330f8a5f6b336b36f0559a4 SHA512 ccaf178384b5a609c00bb44796a6bec088750414385f19b2d8ffcb93cc8f5ddb6bf82fb966d2bf519651f6efed54258a3c6542a9827d01e6be64af8cb8f86d3d WHIRLPOOL 9d13a3364ec467b492fb5818ae00e3a02f81aa779319382450df76a3041efb047dac82bd249cb51bf819664a5e7a8f9def3a672b8eb2edaa24f2a2aa80d66129
DIST sh-1.12.9.tar.gz 54077 SHA256 579aa19bae7fe86b607df1afaf4e8537c453d2ce3d84e1d3957e099359a51677 SHA512 378ebfe148de6d1fb0f6488a42a39570f1fde6bb2d3ce40cbe29a6920e102f4c31d38a686663e52b2968099d85a0b5867e112c5d53ca0a4527a2f2bc9e607d35 WHIRLPOOL af177f97f21db7df68a8645fc5da83721ae10961df1ff441a816b028bdd4177b1f197d541c91cb1542c4cedf19eb6bcd1ac0576ccd2cce8ec6d5e0e4e19adbb5

View File

@@ -0,0 +1,22 @@
diff --git a/test.py b/test.py
index 78e00ab..0487594 100644
--- a/test.py
+++ b/test.py
@@ -502,7 +502,7 @@ for key in osx_cruft:
print(os.environ["HERP"] + " " + str(len(os.environ)))
""" % osx_cruft)
out = python(py.name, _env=env).strip()
- self.assertEqual(out, "DERP 1")
+ self.assertEqual(out, u"DERP 12")
py = create_tmp_test("""
import os, sys
@@ -515,7 +515,7 @@ for key in osx_cruft:
print(sh.HERP + " " + str(len(os.environ)))
""" % osx_cruft)
out = python(py.name, _env=env, _cwd=THIS_DIR).strip()
- self.assertEqual(out, "DERP 1")
+ self.assertEqual(out, u"DERP 12")
def test_which(self):

View File

@@ -0,0 +1,30 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=(python2_7 python3_{4,5} )
inherit distutils-r1
DESCRIPTION="Python subprocess interface"
HOMEPAGE="https://github.com/amoffat/sh"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
PATCHES=(
"${FILESDIR}/sh-1.12.9-python2-unicode-tests.patch"
)
python_test() {
${PYTHON} test.py || die
}