summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-10 21:37:58 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-10 21:37:58 +0000
commitbe90f80567df2e49f3ba1a9254c3f930e0fb67d5 (patch)
treeb7c242d296e73c5407c2cbae45bb5db4d2b0bead /dev-python/atpy
parentwhitespace (diff)
downloadhistorical-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')
-rw-r--r--dev-python/atpy/ChangeLog6
-rw-r--r--dev-python/atpy/atpy-0.9.4.ebuild19
2 files changed, 21 insertions, 4 deletions
diff --git a/dev-python/atpy/ChangeLog b/dev-python/atpy/ChangeLog
index 8cbe0929bfbd..f64991b0b158 100644
--- a/dev-python/atpy/ChangeLog
+++ b/dev-python/atpy/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/atpy
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/ChangeLog,v 1.1 2010/09/02 16:35:17 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/atpy/ChangeLog,v 1.2 2010/09/10 21:37:58 arfrever Exp $
+
+ 10 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ atpy-0.9.4.ebuild:
+ Enable tests.
*atpy-0.9.4 (02 Sep 2010)
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
+}