summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-11-30 14:08:32 +0100
committerLars Wendler <polynomial-c@gentoo.org>2016-11-30 14:54:04 +0100
commitcc6321866dec4ad3d63f9c62e90d4631665ca624 (patch)
treec82b7ba4a205be33a2b6e035e66488a99c23937b /dev-python
parentdev-python/requests: Bump to version 2.12.1 (diff)
downloadgentoo-cc6321866dec4ad3d63f9c62e90d4631665ca624.tar.gz
gentoo-cc6321866dec4ad3d63f9c62e90d4631665ca624.tar.bz2
gentoo-cc6321866dec4ad3d63f9c62e90d4631665ca624.zip
dev-python/sqlalchemy: Bump to version 1.1.4
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/sqlalchemy/Manifest1
-rw-r--r--dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
index 5e9eda9dad9b..8596f0dd39ac 100644
--- a/dev-python/sqlalchemy/Manifest
+++ b/dev-python/sqlalchemy/Manifest
@@ -4,3 +4,4 @@ DIST SQLAlchemy-1.0.12.tar.gz 4748974 SHA256 6679e20eae780b67ba136a4a76f83bb264d
DIST SQLAlchemy-1.0.15.tar.gz 4776213 SHA256 586f5ccf068211795a89ed22d196c5cc3006b6be00261bcac6f584c0b8e0845a SHA512 12ca4afc8d26a666d721c70399ae30a3c63087265ee0debc10261fd6f1a31b15d5e43c6203da1703f8803c449cf650357d631e12be42fce605311e7acdb2c135 WHIRLPOOL 2ea6f6645fc416f3118adb4d4746f028dcf0e8e9f6c1eb20fb853609fad9a2ab8de5c167b0d9d00dc8de62fd3d244a997b327b55f244172827d44820be646caf
DIST SQLAlchemy-1.1.2.tar.gz 5104171 SHA256 1692c35bc0f7026d20cabd43b0f6f265e855129f44eb4574fea361e3c5cc89a5 SHA512 5b7b8af5e7e96c844ee5e9b85314ede7dbdfd411ff88bc32517661108abcc2338fe1949a1378b135e2be6c5943de168dfe735bcd74d0581df95d98fe40a03c4a WHIRLPOOL 24b02311535db62ed7d932cc4f582b3f3a17633a726f0d4230890116a18516e4eac5a39eace2701d05fe51c71cc089113ace71b426051c9f3ab3275bd650b989
DIST SQLAlchemy-1.1.3.tar.gz 5111411 SHA256 8b0ed90292a294e17d24482c9328abe69eb8e3143e2bd7103b6fadae2562638f SHA512 b35994f5dc005db7ddc82b353f1cec639e081f5965177e83f7b834af34fdcdfabcf35b45ac6aea3366168c7b0a0d3e95e86b7e84e715e1483039806e976f9e48 WHIRLPOOL 3fcf0a7971e4e81dc346d809e07e1993720b88770300f81a916d799afd29aedbc8742a196a4bf4f922d8015f40bb7da0332801027cba24a985a76d0f2b0c9ae4
+DIST SQLAlchemy-1.1.4.tar.gz 5117489 SHA256 701b57d628b9fa1cfb82f10665e7214d5d2db23251ca6f23b91c5f56fcdbdeb5 SHA512 b4343644ba619c748f6194744fc940360714cc04ef8f11789c62936dcd47a3108c511a2122ba8c4956ba1c92d93e98beb3f3818a8add320c210258f85748f532 WHIRLPOOL 8ab19304c84d702adba52d8864a70a184aab82601384fbfc38bd984fd16a769b637810a1f2436133e2d1eddd9089b31fb27e5953111d819ee476ffdb2b4716a4
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild
new file mode 100644
index 000000000000..4f161b450ab1
--- /dev/null
+++ b/dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
+PYTHON_REQ_USE="sqlite?"
+
+inherit distutils-r1 eutils flag-o-matic
+
+MY_PN="SQLAlchemy"
+MY_P="${MY_PN}-${PV/_beta/b}"
+
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
+HOMEPAGE="http://www.sqlalchemy.org/ https://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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples +sqlite test"
+
+REQUIRED_USE="test? ( sqlite )"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+python_prepare_all() {
+ # Disable tests hardcoding function call counts specific to Python versions.
+ rm -r test/aaa_profiling || die
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ if ! python_is_python3; then
+ local CFLAGS=${CFLAGS}
+ append-cflags -fno-strict-aliasing
+ fi
+ distutils-r1_python_compile
+}
+
+python_test() {
+ # Create copies of necessary files in BUILD_DIR.
+ # https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
+ cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
+ pushd "${BUILD_DIR}" > /dev/null || die
+ if [[ "${EPYTHON}" == "python3.2" ]]; then
+ 2to3 --no-diffs -w test || die
+ fi
+ # Recently upstream elected to make the testsuite also pytest capable
+ # "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
+ py.test --verbose test || die "Testsuite failed under ${EPYTHON}"
+ popd > /dev/null
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( doc/. )
+ use examples && dodoc -r examples
+
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python
+ optfeature "mssql support" dev-python/pymssql
+ optfeature "postgresql support" dev-python/psycopg:2
+}