diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2016-10-31 22:57:24 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-10-31 23:38:55 +0100 |
commit | a30566a8e0b1a1cf23846f79c2bd04de66c45541 (patch) | |
tree | d416c8ae7b0d339a8057ca1c4ebb045141b747ac /dev-python/sqlalchemy | |
parent | app-arch/libarchive: Removed old. (diff) | |
download | gentoo-a30566a8e0b1a1cf23846f79c2bd04de66c45541.tar.gz gentoo-a30566a8e0b1a1cf23846f79c2bd04de66c45541.tar.bz2 gentoo-a30566a8e0b1a1cf23846f79c2bd04de66c45541.zip |
dev-python/sqlalchemy: Bump to version 1.1.3
Package-Manager: portage-2.3.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-python/sqlalchemy')
-rw-r--r-- | dev-python/sqlalchemy/Manifest | 1 | ||||
-rw-r--r-- | dev-python/sqlalchemy/sqlalchemy-1.1.3.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest index a3c45e1cd1a8..6da8175b8c55 100644 --- a/dev-python/sqlalchemy/Manifest +++ b/dev-python/sqlalchemy/Manifest @@ -8,3 +8,4 @@ DIST SQLAlchemy-1.0.15.tar.gz 4776213 SHA256 586f5ccf068211795a89ed22d196c5cc300 DIST SQLAlchemy-1.0.8.tar.gz 4627601 SHA256 950c79c0abf9e9f99c43c627c51d40d14a946810a90c35e7cd827bfd0bffe46f SHA512 921f847a20548095cb1f41fe6147b393110e08f8f3ff0aee6081e7811e7c15b3c03583afd41ddf5aacdc1dde090c0512afb94c7cc33d9c27135a5525ed121e74 WHIRLPOOL 757f2a3832c8fefd5789cd981eb1b2028419362ed2714927198df6b91742236896d4ab0131969afa08e5508843e32e018a1361e28df3f22a15f811d78275f8cf DIST SQLAlchemy-1.0.9.tar.gz 4662673 SHA256 c3d37501e36ec5d74c2d7b4a3764719db86a9cdab4a24431bf58b386743ab10e SHA512 5032977e4fd3ff12d7ae10ca87f0ec9cd2d9eb5d200020b74faad1309eb1de5bacc9b4f5e53cb1b0b0b9c7f59b923a87a12ba050b37a631f9c77af2b896eb076 WHIRLPOOL 5e824f8581b98ac26f47d0bc8ae706783602ebe6bf921c6767f46db83b8322b022ea51603d1002017052144946256583c4fd9d2a92742c752333b530ed356121 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 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.1.3.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.1.3.ebuild new file mode 100644 index 000000000000..243bc3f8fb09 --- /dev/null +++ b/dev-python/sqlalchemy/sqlalchemy-1.1.3.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_{3,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 +} |