summaryrefslogtreecommitdiff
path: root/dev-python/sqlalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/sqlalchemy')
-rw-r--r--dev-python/sqlalchemy/Manifest2
-rw-r--r--dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
index 70c2bcd798da..96b31dc26fef 100644
--- a/dev-python/sqlalchemy/Manifest
+++ b/dev-python/sqlalchemy/Manifest
@@ -11,6 +11,7 @@ DIST SQLAlchemy-1.1.14.tar.gz 5183519 BLAKE2B 24b2b12cf38d4f0ab46631588b2b2f1f2a
DIST SQLAlchemy-1.1.15.tar.gz 5197858 BLAKE2B fa8f726ab7eb9a3702a0eb341979b8aeaf21f6c1a7a627779536a22c1b15301153ec69a0c2fc312cd0d904478eff43faacafc5944e43140dfb4a01c8ac1ac3a5 SHA512 a88ad65b8b0506f4a86cea1da183ecc9279cf8ce9b9b0f3eb2a512e46130d4bc58d38d86abd803029044d5fc80a6e0a80180094934720990caad209b0a98e115
DIST SQLAlchemy-1.1.5.tar.gz 5134252 BLAKE2B 7bd55befda5cc87261fb3a1eb0efab4b8a414f6cc9cf8836bb9c32c4aab216678594927fc2b2195c9394112fb873c7561053cd25ca78e7ec849b709ab5b9029d SHA512 94cfa2a94c21a7f40a34f7bebacf74cafcd8cfc24cabd5a79e0ed28a7a6d0c4182c9ceb076b07e1ee5ca1bd01a38a25ca264bbfdf5344c40e0c59b59582eb043
DIST SQLAlchemy-1.1.9.tar.gz 5164787 BLAKE2B 88e625a71d04e0ca3ee703d8fc923202f2752350c1ba538da1e3275f459bd7a7e2853c01ce01eac215942a827b09ec25a126d20c15da92f6e7761e61598ae053 SHA512 95df08e6bca0013ddc7e61aa82d7d51eb133a9b34aa430a785bd8cec8eb79a2b6e1503c1757a71487b09e2f292b5916e6797efb2026d43175e34a52b68cf81c6
+DIST SQLAlchemy-1.2.0.tar.gz 5451303 BLAKE2B 273edad173583d47d6ebdb4d3efddddb6e8e6c1e333667d71a1befb0aabc7ff8231f926c18d5463e1d4b815d2b2f39b7c9bca03ab3bf0f91f039b7ea55071e28 SHA512 0d9e57147b022955ad20da5b280e8734ba4be9585301b6e8fb9b96797d87d8707f95cb58afbaf310ec8033defffc4d794bec1d5089ca016b8dd9497e292881e3
EBUILD sqlalchemy-0.7.10.ebuild 1583 BLAKE2B 44736d61974494649a33d3d764dfc5a4ed21a7b10292debc0f791f8f57cc3049e3c6bd51e783a487c350a328556b511ee08b7db22868383e15e7dfcb9685461a SHA512 a080a72f9596945ec353b10ceda491cf35de92ddb1068ae0949a247547c0d864fe08774887b665f91a02f4536fc4a250d8ae01891e7ebe957c946d08a9584cff
EBUILD sqlalchemy-0.9.10.ebuild 2510 BLAKE2B 02d08f18f76533eb7f1280ecae26a505e0c054ac49a50fac0baceccf8448a87717978d117f36a18cc89261a5c2509a0e23c92ca7a73ee32c235ffe1db3ff73fa SHA512 bc5a3f92774c993d0c144496e6d8a4e414ff1d038808458fcdf55526513cbd01359aa9ba1c8ca831df579c66528d3ee00445bcd9c0271562e2c2692c3a38485b
EBUILD sqlalchemy-0.9.8.ebuild 2459 BLAKE2B 05d43f366785259ae6cb3c95a452ebfb009e217622c78054d2f4edc1654fd8a31fd8ba9bae51edc86e791040e878c8f13e91080a55bae55c497c209bae07de18 SHA512 319800805e7b97f12e9da7ceadb5e8a39f413184890431e79fceade338a19cc34a0e78b9df12623f12eb736c3c97031ec065f90bcb62e9acad233a30377f6ab4
@@ -23,4 +24,5 @@ EBUILD sqlalchemy-1.1.14.ebuild 2154 BLAKE2B 0e099b176c72ba91d6ce9b935aa954bbd24
EBUILD sqlalchemy-1.1.15.ebuild 2158 BLAKE2B 1a243d220617b48749029673f95cfcc7580df1e9933dfa6a7e619d4606e66713123ed182d2823dcca73abafc85474d5b9e456e8f71ffffe9042c455f5c5d2b10 SHA512 b10f9d3bade8f408fabbd1173343162394762af7341fbf4f28682a4e051bd504159fe880a7538a1b68c1bccac563cdf17b78d307f5a579a4f91c873d02f3a2ce
EBUILD sqlalchemy-1.1.5.ebuild 2141 BLAKE2B d741d95f4cbe6c9f0f1f9db89400618db154d63a6e0306d9394eeb35add72314943ee791b1a059d670eb63234f8ed8e329e3dfaead173e65a6a7e2f1ef1bf8c1 SHA512 b0898a2d08a532bbcad7cabe097f0b6ba020e4513ceb0a4513614c5eb73f46e135554946f5a8394d8b89f2b81ec83f9ef22d1171d25782c923592c7f36c1545f
EBUILD sqlalchemy-1.1.9.ebuild 2141 BLAKE2B d741d95f4cbe6c9f0f1f9db89400618db154d63a6e0306d9394eeb35add72314943ee791b1a059d670eb63234f8ed8e329e3dfaead173e65a6a7e2f1ef1bf8c1 SHA512 b0898a2d08a532bbcad7cabe097f0b6ba020e4513ceb0a4513614c5eb73f46e135554946f5a8394d8b89f2b81ec83f9ef22d1171d25782c923592c7f36c1545f
+EBUILD sqlalchemy-1.2.0.ebuild 2158 BLAKE2B 1a243d220617b48749029673f95cfcc7580df1e9933dfa6a7e619d4606e66713123ed182d2823dcca73abafc85474d5b9e456e8f71ffffe9042c455f5c5d2b10 SHA512 b10f9d3bade8f408fabbd1173343162394762af7341fbf4f28682a4e051bd504159fe880a7538a1b68c1bccac563cdf17b78d307f5a579a4f91c873d02f3a2ce
MISC metadata.xml 313 BLAKE2B 71212a9a3076b472b488bdb4e12fef98e16881a32a8383c5fa6a9008353d2e043dfe64cb536ecef145ba74ba77ef3a6c43d705d5072d1b56e11eacfadd1d0edd SHA512 ef6298f9e38312117a0d1ab1e63f2fb21ae51ff149053603c19437b90d954827858579ab8f021cb52919aff4474a27f5a598d8515a7e5a9f2e7e35aee53c5326
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild
new file mode 100644
index 000000000000..14e4876c0d08
--- /dev/null
+++ b/dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
+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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+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
+}