diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-10 21:37:58 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-09-10 21:37:58 +0000 |
commit | be90f80567df2e49f3ba1a9254c3f930e0fb67d5 (patch) | |
tree | b7c242d296e73c5407c2cbae45bb5db4d2b0bead /dev-python/atpy/atpy-0.9.4.ebuild | |
parent | whitespace (diff) | |
download | historical-be90f80567df2e49f3ba1a9254c3f930e0fb67d5.tar.gz historical-be90f80567df2e49f3ba1a9254c3f930e0fb67d5.tar.bz2 historical-be90f80567df2e49f3ba1a9254c3f930e0fb67d5.zip |
Enable tests.
Package-Manager: portage-2.2_rc79_p5/cvs/Linux x86_64
Diffstat (limited to 'dev-python/atpy/atpy-0.9.4.ebuild')
-rw-r--r-- | dev-python/atpy/atpy-0.9.4.ebuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/dev-python/atpy/atpy-0.9.4.ebuild b/dev-python/atpy/atpy-0.9.4.ebuild index 4142df4ff1b7..24f34499e677 100644 --- a/dev-python/atpy/atpy-0.9.4.ebuild +++ b/dev-python/atpy/atpy-0.9.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/atpy-0.9.4.ebuild,v 1.1 2010/09/02 16:35:17 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/atpy-0.9.4.ebuild,v 1.2 2010/09/10 21:37:58 arfrever Exp $ EAPI="2" @@ -9,11 +9,10 @@ SUPPORT_PYTHON_ABIS="1" inherit distutils -#DISTUTILS_SRC_TEST="test/test.py" MYPN=ATpy MYP="${MYPN}-${PV}" -DESCRIPTION="Astronomical tables support Python" +DESCRIPTION="Astronomical tables support for Python" HOMEPAGE="http://atpy.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz" @@ -36,3 +35,17 @@ KEYWORDS="~amd64 ~x86" LICENSE="GPL-3" S="${WORKDIR}/${MYP}" + +src_prepare() { + distutils_src_prepare + + # Disable failing MySQL tests. + sed -e "s/import MySQLdb/raise ImportError/" -i test/unittests.py || die "sed failed" +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/unittests.py + } + python_execute_function testing +} |