Created attachment 311161 [details] flask-sqlalchemy-0.16.ebuild Two changes - both the result of how flask progressed their api: * flaskext import in test.py is invalid * the python modname is now flask_sqlalchemy.py tests passes on amd64, x86. Choo choo.
Comment on attachment 311161 [details] flask-sqlalchemy-0.16.ebuild --- flask-sqlalchemy-0.15.ebuild 2011-09-08 09:03:16.000000000 +0200 +++ - 2012-05-08 17:10:15.831771946 +0200 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/flask-sqlalchemy/flask-sqlalchemy-0.15.ebuild,v 1.1 2011/09/08 07:03:16 rafaelmartins Exp $ +# $Header: $ EAPI="3" PYTHON_DEPEND="2" @@ -29,4 +29,8 @@ S="${WORKDIR}/${MY_P}" -PYTHON_MODNAME="flaskext/sqlalchemy.py" +PYTHON_MODNAME="flask_sqlalchemy.py" + +src_prepare() { + sed -ie "s/flaskext/flask.ext/" test.py || die +} \ No newline at end of file
Jer: Is diff's generally the way to go for lesser changes? Thanks
(In reply to comment #2) > Jer: Is diff's generally the way to go for lesser changes? Thanks I don't see him cc'ed, so I'll answer for him :) Yeah, generally patches to original ebuild are the way to go. That allows to easily evaluate the changes.
/dev-python/flask-sqlalchemy $ USE_PYTHON="2.5 2.6 2.7 2.7-pypy-1.9" ebuild flask-sqlalchemy-0.16.ebuild clean test * Testing of dev-python/flask-sqlalchemy-0.16 with CPython 2.5... * Testing of dev-python/flask-sqlalchemy-0.16 with CPython 2.6... * Testing of dev-python/flask-sqlalchemy-0.16 with CPython 2.7... * Testing of dev-python/flask-sqlalchemy-0.16 with PyPy 1.9 (Python 2.7)... Ran 17 tests in 1.915s OK # USE_PYTHON="2.5 2.6 2.7 2.7-pypy-1.9" ebuild flask-sqlalchemy-0.16.ebuild clean merge >>> Original instance of package unmerged safely. * Compilation and optimization of Python modules for CPython 2.5 [ ok ] * Compilation and optimization of Python modules for CPython 2.6 [ ok ] * Compilation and optimization of Python modules for CPython 2.7 [ ok ] * Compilation and optimization of Python modules for PyPy 1.9 (Python 2.7) [ ok ] >>> dev-python/flask-sqlalchemy-0.16 merged. good. There are docs in there too. If you'd like me to add use doc and build for docs, just give the word.