summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/alembic/alembic-0.4.2.ebuild')
-rw-r--r--dev-python/alembic/alembic-0.4.2.ebuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/dev-python/alembic/alembic-0.4.2.ebuild b/dev-python/alembic/alembic-0.4.2.ebuild
index 9014becaa307..8bcb5660a4bd 100644
--- a/dev-python/alembic/alembic-0.4.2.ebuild
+++ b/dev-python/alembic/alembic-0.4.2.ebuild
@@ -1,15 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/alembic/alembic-0.4.2.ebuild,v 1.1 2013/02/03 03:41:02 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/alembic/alembic-0.4.2.ebuild,v 1.2 2013/02/03 18:18:30 floppym Exp $
EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-# NOTE: I haven't tested if python <2.7 works.
-# TODO: python 3.x support bugs:
-# https://bitbucket.org/zzzeek/alembic/issue/102/alembic-042-tests-does-not-pass-on-python
-# TODO: dependency on sqlalchemy <0.7.9 does not pass test suite bugs:
-# https://bitbucket.org/zzzeek/alembic/issue/96/testsuite-does-not-pass not pass
+PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2} )
inherit distutils-r1
@@ -36,6 +30,10 @@ python_install_all() {
}
python_test() {
- nosetests || die
- # NOTE: don't use setup.py test bugs: https://bitbucket.org/zzzeek/alembic/issue/96/testsuite-does-not-pass
+ cp -r test.cfg tests "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+ if [[ ${EPYTHON} == python3* ]]; then
+ 2to3 -w -n tests || die
+ fi
+ nosetests || die "Testing failed with ${EPYTHON}"
}