summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-02-03 18:18:30 +0000
committerMike Gilbert <floppym@gentoo.org>2013-02-03 18:18:30 +0000
commit5aa15842f21020cca9144c869f3c583fd98dfc6f (patch)
treec2432bbc97f8ea722c5305557972eedf9eadbe76 /dev-python/alembic
parentStable for ppc, wrt bug #427550 (diff)
downloadgentoo-2-5aa15842f21020cca9144c869f3c583fd98dfc6f.tar.gz
gentoo-2-5aa15842f21020cca9144c869f3c583fd98dfc6f.tar.bz2
gentoo-2-5aa15842f21020cca9144c869f3c583fd98dfc6f.zip
Add support for python2.6, 3.1, 3.2.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/alembic')
-rw-r--r--dev-python/alembic/ChangeLog5
-rw-r--r--dev-python/alembic/alembic-0.4.2.ebuild18
2 files changed, 12 insertions, 11 deletions
diff --git a/dev-python/alembic/ChangeLog b/dev-python/alembic/ChangeLog
index b35750379211..bb8ada94228b 100644
--- a/dev-python/alembic/ChangeLog
+++ b/dev-python/alembic/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/alembic
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/alembic/ChangeLog,v 1.1 2013/02/03 03:41:02 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/alembic/ChangeLog,v 1.2 2013/02/03 18:18:30 floppym Exp $
+
+ 03 Feb 2013; Mike Gilbert <floppym@gentoo.org> alembic-0.4.2.ebuild:
+ Add support for python2.6, 3.1, 3.2.
*alembic-0.4.2 (03 Feb 2013)
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}"
}