summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-05-02 03:50:11 +0000
committerIan Delaney <idella4@gentoo.org>2013-05-02 03:50:11 +0000
commitdc54520e165b1ea8ee89eebf2da2d2d727f18e8a (patch)
tree4c1dd92c24615e9b1408301f4d7e00cf81594a24 /dev-python/sqlalchemy
parentAutomake 1.13 fix #468134 (diff)
downloadgentoo-2-dc54520e165b1ea8ee89eebf2da2d2d727f18e8a.tar.gz
gentoo-2-dc54520e165b1ea8ee89eebf2da2d2d727f18e8a.tar.bz2
gentoo-2-dc54520e165b1ea8ee89eebf2da2d2d727f18e8a.zip
bump
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/sqlalchemy')
-rw-r--r--dev-python/sqlalchemy/ChangeLog8
-rw-r--r--dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch50
-rw-r--r--dev-python/sqlalchemy/sqlalchemy-0.8.1.ebuild82
3 files changed, 139 insertions, 1 deletions
diff --git a/dev-python/sqlalchemy/ChangeLog b/dev-python/sqlalchemy/ChangeLog
index 9398beb781b8..0b9213df1840 100644
--- a/dev-python/sqlalchemy/ChangeLog
+++ b/dev-python/sqlalchemy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/sqlalchemy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/ChangeLog,v 1.100 2013/04/30 13:00:12 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/ChangeLog,v 1.101 2013/05/02 03:50:11 idella4 Exp $
+
+*sqlalchemy-0.8.1 (02 May 2013)
+
+ 02 May 2013; Ian Delaney <idella4@gentoo.org>
+ +files/sqlalchemy-0.8.1-pypy-fixtests.patch, +sqlalchemy-0.8.1.ebuild:
+ bump
30 Apr 2013; Ian Delaney <idella4@gentoo.org> sqlalchemy-0.7.10.ebuild,
sqlalchemy-0.8.0.ebuild:
diff --git a/dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch b/dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch
new file mode 100644
index 000000000000..39b0281c98fb
--- /dev/null
+++ b/dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch
@@ -0,0 +1,50 @@
+# http://www.sqlalchemy.org/trac/ticket/2719
+diff -ur SQLAlchemy-0.8.1.orig/test/ext/test_serializer.py SQLAlchemy-0.8.1/test/ext/test_serializer.py
+--- test/ext/test_serializer.py 2013-04-28 05:24:34.000000000 +0800
++++ test/ext/test_serializer.py 2013-05-02 01:02:25.376203511 +0800
+@@ -114,6 +114,7 @@
+ Address(email='ed@lala.com'),
+ Address(email='ed@bettyboop.com')])
+
++ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported")
+ def test_query_two(self):
+ q = \
+ Session.query(User).join(User.addresses).\
+@@ -123,6 +124,7 @@
+ eq_(q2.all(), [User(name='fred')])
+ eq_(list(q2.values(User.id, User.name)), [(9, u'fred')])
+
++ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported")
+ def test_query_three(self):
+ ua = aliased(User)
+ q = \
+@@ -136,6 +138,7 @@
+ ua_2 = q2._entities[0].entity_zero.entity
+ eq_(list(q2.values(ua_2.id, ua_2.name)), [(9, u'fred')])
+
++ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported")
+ def test_orm_join(self):
+ from sqlalchemy.orm.util import join
+
+diff -ur SQLAlchemy-0.8.1.orig/test/orm/test_manytomany.py SQLAlchemy-0.8.1/test/orm/test_manytomany.py
+--- test/orm/test_manytomany.py 2013-04-28 05:24:34.000000000 +0800
++++ test/orm/test_manytomany.py 2013-05-02 01:05:08.073213015 +0800
+@@ -233,6 +233,9 @@
+ p2 = Place('place2')
+ p3 = Place('place3')
+
++ sess = Session()
++ sess.add_all([p3, p1, t1, t2, p2, t3])
++
+ t1.inputs.append(p1)
+ t1.inputs.append(p2)
+ t1.outputs.append(p3)
+@@ -240,8 +243,6 @@
+ p2.inputs.append(t2)
+ p3.inputs.append(t2)
+ p1.outputs.append(t1)
+- sess = Session()
+- sess.add_all((t1, t2, t3, p1, p2, p3))
+ sess.commit()
+
+ self.assert_result([t1],
diff --git a/dev-python/sqlalchemy/sqlalchemy-0.8.1.ebuild b/dev-python/sqlalchemy/sqlalchemy-0.8.1.ebuild
new file mode 100644
index 000000000000..04222c1ea81d
--- /dev/null
+++ b/dev-python/sqlalchemy/sqlalchemy-0.8.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.8.1.ebuild,v 1.1 2013/05/02 03:50:11 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} pypy{1_9,2_0} )
+
+inherit distutils-r1 eutils flag-o-matic
+
+MY_PN="SQLAlchemy"
+MY_P="${MY_PN}-${PV/_}"
+
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
+HOMEPAGE="http://www.sqlalchemy.org/ http://pypi.python.org/pypi/SQLAlchemy"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd \
+ ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples +sqlite test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ sqlite? ( >=dev-db/sqlite-3.3.13 )"
+
+DEPEND="${RDEPEND}
+ test? (
+ >=dev-db/sqlite-3.3.13
+ >=dev-python/nose-0.10.4[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+# Required for testsuite, mainly py3
+DISTUTILS_IN_SOURCE_BUILD=1
+PATCHES=( "${FILESDIR}"/${P}-pypy-fixtests.patch )
+
+python_prepare() {
+ # Disable tests hardcoding function call counts specific to Python versions.
+ if [[ "${EPYTHON}" == 'python2.5' || "${EPYTHON}" == 'python2.6' ]]; then
+ rm -fr test/aaa_profiling
+ fi
+}
+
+python_configure() {
+ if [[ "${EPYTHON}" != python3* ]]; then
+ append-flags -fno-strict-aliasing
+ fi
+}
+
+python_test() {
+ local DISTUTILS_NO_PARALLEL_BUILD=1
+ # No longer has postgresql support
+ if [[ "${EPYTHON}" == python3* ]]; then
+ "${PYTHON}" sa2to3.py --no-diffs -w lib test examples
+ fi
+ "${PYTHON}" sqla_nose.py -I test_postgresql || die "Testsuite failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( doc/. )
+
+ use examples && local EXAMPLES=( examples )
+
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ if ! has_version dev-python/mysql-python; then
+ elog "For MySQL support, install dev-python/mysql-python"
+ fi
+
+ if ! has_version dev-python/pymssql; then
+ elog "For mssql support, install dev-python/pymssql"
+ fi
+
+ if ! has_version dev-python/psycopg:2; then
+ elog "For postgresql support, install dev-python/psycopg:2"
+ fi
+ fi
+}