diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-12-20 20:25:12 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-12-20 20:25:12 +0000 |
commit | 5438d00ba323c753785a14e2a82b2b7efe8ec3de (patch) | |
tree | 3509a49b73100bc26a745c30bb8663585ff13b34 /dev-python/paste | |
parent | dev-python/inotifyx: New package (bug 296821) (diff) | |
download | historical-5438d00ba323c753785a14e2a82b2b7efe8ec3de.tar.gz historical-5438d00ba323c753785a14e2a82b2b7efe8ec3de.tar.bz2 historical-5438d00ba323c753785a14e2a82b2b7efe8ec3de.zip |
Add "test" USE flag and src_test().
Package-Manager: portage-15121-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/paste')
-rw-r--r-- | dev-python/paste/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/paste/Manifest | 6 | ||||
-rw-r--r-- | dev-python/paste/paste-1.7.2.ebuild | 18 |
3 files changed, 21 insertions, 9 deletions
diff --git a/dev-python/paste/ChangeLog b/dev-python/paste/ChangeLog index 9a02a3701571..e646a9b6fbef 100644 --- a/dev-python/paste/ChangeLog +++ b/dev-python/paste/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/paste # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/paste/ChangeLog,v 1.7 2009/10/11 08:26:13 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/paste/ChangeLog,v 1.8 2009/12/20 20:25:12 arfrever Exp $ + + 20 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + paste-1.7.2.ebuild: + Add "test" USE flag and src_test(). 11 Oct 2009; Fabian Groffen <grobian@gentoo.org> paste-1.7.2.ebuild: Merge from Prefix diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest index 187d245ec582..0ba1841ba893 100644 --- a/dev-python/paste/Manifest +++ b/dev-python/paste/Manifest @@ -1,6 +1,4 @@ -DIST Paste-1.6.tar.gz 368163 RMD160 00abce4ed39384ee8aad27681f4351a985f57a7c SHA1 45de5772a0a8cec45b70cdc3cb9aa0e30e5d0f0b SHA256 d2fe1c21fa2feb3923c0a7a862811c51a70412595498eed91e63b1a74a20ca47 DIST Paste-1.7.2.tar.gz 373556 RMD160 10deddbb5ef3ccd220c6c0cdb594efd35045fdea SHA1 4c7d6d76ec0fe76d57c525101c6f9ff6ebf4a93c SHA256 67dde086f0aa84c3ec2452cd65d05d19a050ec2ba56483b1614bdbfd82b3b2b8 -EBUILD paste-1.6.ebuild 1157 RMD160 dc347c2330c4a21a7a1c2bb9bcfc63214ed9942b SHA1 8d94ce7b1317e30b01161e13c97e557dbd277d80 SHA256 6304124dd5193fec85430e29979d03f5db1786ebf5fee25afc37d1bd664682fa -EBUILD paste-1.7.2.ebuild 1282 RMD160 476d07377292b44c6f73d88f533cdc9b3a0140a1 SHA1 f3666494f3bc3771fbb3a29c71f07bc519bf6291 SHA256 2ac41368a76e7aadffff931fe3f6ced04b93bc97a597f73725c27d319de98483 -MISC ChangeLog 1292 RMD160 aef9fce367b812947456f64ee9c50994017d8e62 SHA1 e6e8a0f40e64b4640126d3b2647e4fd8d76469ca SHA256 8185d6294b3e48643fd7b73676914f4efc94ee461684cb08285ad5f815ca13fa +EBUILD paste-1.7.2.ebuild 1564 RMD160 286b9c64d9e312a6927449f519f22070a0cb5a09 SHA1 0b5f568fb2f282f2be44ab68138c3b355ec4e1f4 SHA256 bd9632a05f7433aed2eb708f832ecd756f43899064f92fb38f2b9e314cb03436 +MISC ChangeLog 1427 RMD160 74f9dff18b6820afa441f9d3f6abe081c7feeec8 SHA1 8847c2d7843caaea0a37bbb5418758f0d9acefe6 SHA256 8ca986abf6003e02d7300ffe49babfd84aa8c325e6212804e6e308e3603c2e04 MISC metadata.xml 635 RMD160 b5ee35a378d2432b7a02585afcc95a7c1db13bbb SHA1 40ba8c8bfbb64413ddf605c5c4f510bbf2e9b2c5 SHA256 9c6189c5e365dc93b62649519e50479cec3d721e4ffb3c4a84cb9632660e6e74 diff --git a/dev-python/paste/paste-1.7.2.ebuild b/dev-python/paste/paste-1.7.2.ebuild index 30eec6645f9d..68172bbb9d56 100644 --- a/dev-python/paste/paste-1.7.2.ebuild +++ b/dev-python/paste/paste-1.7.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/paste/paste-1.7.2.ebuild,v 1.3 2009/10/11 08:26:13 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/paste/paste-1.7.2.ebuild,v 1.4 2009/12/20 20:25:12 arfrever Exp $ EAPI="2" SUPPORT_PYTHON_ABIS="1" @@ -17,13 +17,14 @@ SRC_URI="http://cheeseshop.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris" -IUSE="doc flup openid" +IUSE="doc flup openid test" RDEPEND="flup? ( dev-python/flup ) openid? ( dev-python/python-openid )" DEPEND="${RDEPEND} dev-python/setuptools - doc? ( dev-python/pudge dev-python/buildutils )" + doc? ( dev-python/pudge dev-python/buildutils ) + test? ( dev-python/py )" RESTRICT_PYTHON_ABIS="3.*" S="${WORKDIR}/${MY_P}" @@ -34,6 +35,10 @@ src_prepare() { sed -i \ -e '/highlighter/d' \ setup.cfg || die "sed failed" + + # Disable failing tests. + sed -e "s/test_logger/_&/" -i tests/test_exceptions/test_reporter.py || die "sed failed" + sed -e "s/test_paste_website/_&/" -i tests/test_proxy.py || die "sed failed" } src_compile() { @@ -44,7 +49,12 @@ src_compile() { fi } -# src_test() needs py.test but there's no release yet. +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" py.test + } + python_execute_function testing +} src_install() { distutils_src_install |