From 513a33288970a07a356863893ac481732b4f1545 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 16 Sep 2011 08:51:28 +0000 Subject: [PATCH] Version bump webtest to 1.3. Package-Manager: portage-2.1.10.15/cvs/Linux x86_64 --- ChangeLog | 6 +++ Manifest | 13 +++-- files/webtest-1.3-doctest-ellipsis.patch | 38 +++++++++++++++ webtest-1.3.ebuild | 60 ++++++++++++++++++++++++ 4 files changed, 112 insertions(+), 5 deletions(-) create mode 100644 files/webtest-1.3-doctest-ellipsis.patch create mode 100644 webtest-1.3.ebuild diff --git a/ChangeLog b/ChangeLog index 8142376..58096c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 # $Header$ +*webtest-1.3 (16 Sep 2011) + + 16 Sep 2011; Dirkjan Ochtman +webtest-1.3.ebuild, + +files/webtest-1.3-doctest-ellipsis.patch: + Version bump to 1.3 (fixes bug 382923, thanks to jbergstroem). + 29 Apr 2011; Samuli Suominen webtest-1.2.3.ebuild: ppc64 stable wrt #365335 diff --git a/Manifest b/Manifest index b4a9087..b958885 100644 --- a/Manifest +++ b/Manifest @@ -1,14 +1,17 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 +AUX webtest-1.3-doctest-ellipsis.patch 1116 RMD160 290b833ed2309917f664a94694244a4ed8c09486 SHA1 bc9cd1bad655803661dff69ff1a549949d88ba3c SHA256 a6e64a000ad6745b12cb8ab6061b09ce692f3efcf061851cc1bc0e4eb9d2e9ed DIST WebTest-1.2.3.tar.gz 49571 RMD160 41cee0779ed26fb484d692e7cbff165c46335095 SHA1 2bf3c6a11b948c6b166935bbd73a3a0a40e458e5 SHA256 5e1cdb914a889ee035daa610e9858c1a33fec481cbd7a7df45b537954cbb513b +DIST WebTest-1.3.tar.gz 76603 RMD160 079283805bad6d76a90022c308820f690b288a9e SHA1 439ca06af501df7f8f4c8c68214d8463424cc82e SHA256 aba8f6dcf87584c1d05848814cdd6c58fcb4cde1640a892322c978cc1ae204f3 EBUILD webtest-1.2.3.ebuild 814 RMD160 0942f048b849138f2938d4b6f14fa39f824f2c7b SHA1 6d16fb82c0eb0dd632b049ea45ae9caf10eec1c5 SHA256 5f302345dd8c45e5199289908d015ef55d427ec78ed7d598a0548aff89ff4d75 -MISC ChangeLog 3177 RMD160 3af102f3e249a25b15d659481dce0e8e4a2fdd9c SHA1 ca728cc2071a2aa38d7d7abc9182b21cc24a2590 SHA256 f1174185ff7c8fa8f700e1c1ee65c612b7fcb5d1699620a90f198de702a69f0c +EBUILD webtest-1.3.ebuild 1398 RMD160 0e56ed77c95ae7cabd392b3c1067334e34a79927 SHA1 1ca4f9f8acbce88cffa198329382014fa1006eaf SHA256 d5f68c6226c9be4300f65a9377127543487155225df9501789041e88e6d55d27 +MISC ChangeLog 3379 RMD160 d1c6af4d6e5fefa5aa0dd4b3260ad5c9c3c74ddb SHA1 0fb37a53f8a23636409049245da6e94d8aa03ec2 SHA256 43504f4de1feb0a20cc26a1adafaeb60a9681bf3d660eac64f834f65e3b55816 MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iF4EAREIAAYFAk27G78ACgkQXkR9YqOcLPF6PgEAlUxZTjmFzUkVnINV4XafPIcJ -Sq9eBRIGobczL1Z2uTIA/R7I4JbJ2XoUlJJET0q9Jm8mw5DciJWe/UM8BYaJTPJd -=EnjK +iEYEAREKAAYFAk5zDhkACgkQxeMuLWsGW/vMBwCfaHuzJErMKJ+moAoyDleum4X8 +Y3oAoKkP8XqPDr7FXA6t1QxhunXgKiV3 +=lRjR -----END PGP SIGNATURE----- diff --git a/files/webtest-1.3-doctest-ellipsis.patch b/files/webtest-1.3-doctest-ellipsis.patch new file mode 100644 index 0000000..38b01ae --- /dev/null +++ b/files/webtest-1.3-doctest-ellipsis.patch @@ -0,0 +1,38 @@ +diff --git a/docs/index.txt b/docs/index.txt +index f472102..1edf711 100644 +--- a/docs/index.txt ++++ b/docs/index.txt +@@ -271,7 +271,7 @@ Then you can submit: + >>> res = form.submit() + >>> # Or submit a button: + >>> res = form.submit('submit') +- >>> print(res) ++ >>> print(res) # doctest:+ELLIPSIS + Response: 200 OK + Content-Type: text/plain + ... +@@ -331,7 +331,7 @@ Examples: + + >>> res.html.body.div.string + u'hey!' +- >>> res.lxml ++ >>> res.lxml # doctest:+ELLIPSIS + + >>> res.lxml.xpath('//body/div')[0].text + 'hey!' +@@ -343,13 +343,13 @@ Examples: + >>> res = TestResponse(content_type='application/xml', + ... body='hey!') + >>> res.request = TestRequest.blank('/') +- >>> res.xml ++ >>> res.xml # doctest:+ELLIPSIS + + >>> res.xml[0].tag + 'message' + >>> res.xml[0].text + 'hey!' +- >>> res.lxml ++ >>> res.lxml # doctest:+ELLIPSIS + + >>> res.lxml[0].tag + 'message' \ No newline at end of file diff --git a/webtest-1.3.ebuild b/webtest-1.3.ebuild new file mode 100644 index 0000000..6190ddb --- /dev/null +++ b/webtest-1.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +EAPI="3" +PYTHON_DEPEND="2:2.5" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4 3.*" +DISTUTILS_SRC_TEST="nosetests" + +inherit distutils eutils + +MY_PN="WebTest" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=">=dev-python/webob-0.9.2" +DEPEND="${RDEPEND} + dev-python/setuptools + doc? ( dev-python/sphinx ) + test? ( dev-python/pyquery )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}/${P}-doctest-ellipsis.patch" +} + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + sphinx-build docs html || die "Building of documentation failed" + fi +} + +src_install() { + distutils_src_install + + # Avoid future-import bug on py2.5.* - lint3 is py3 anyway + delete_lint3() { + [[ "${PYTHON_ABI}" == 3.* ]] && return + rm "${ED}$(python_get_sitedir)/webtest/lint3.py" + } + python_execute_function -q delete_lint3 + + if use doc; then + dohtml -r html/* || die "Error installing docs" + fi +} -- 2.26.2