Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/
Date: Sun, 13 Dec 2015 14:05:57
Message-Id: 1450015528.2bb2d733b60d98bf1c9fc5b6a1be462cb02311a7.jlec@gentoo
1 commit: 2bb2d733b60d98bf1c9fc5b6a1be462cb02311a7
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 13 12:19:00 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 13 14:05:28 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bb2d733
7
8 dev-python/sqlalchemy: Version Bump
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/sqlalchemy/Manifest | 1 +
14 dev-python/sqlalchemy/sqlalchemy-1.0.10.ebuild | 86 ++++++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
18 index d10a4d3..90304d2 100644
19 --- a/dev-python/sqlalchemy/Manifest
20 +++ b/dev-python/sqlalchemy/Manifest
21 @@ -1,4 +1,5 @@
22 DIST SQLAlchemy-0.7.10.tar.gz 3541639 SHA256 77aa39d65c9d043eba6ba329b359ff867424fd6c403b7c0cb112b65e507e1d66 SHA512 631bc4ffb419defa531a66d82449fe48f93c88371ba0b8ab4217d900a0d1d90efe9699d8a9048d5c2ed33948c6d2f7cae46452ee45d442914018f3361e804367 WHIRLPOOL 74ffc17efbcbb2ac67712b9e11aa48431d18970f46ae5985aaa345aa8691f96e4acc4cf6fa37606699fbba83fcb7f74b0360fea2ac5e93a451585019e110f2ed
23 DIST SQLAlchemy-0.9.8.tar.gz 4080098 SHA256 de3ac04ecab0a7e0af64eee30a71e723ba5886b958205f7354dd62439da60389 SHA512 3df7d7a64cdfe7b684be98e7e9d6836da54c391343bb047224a11df888041034bcc54cc30d15dc3d56b5d397b35e6aabe5732e7ca8fbf553bd8d98731c249ea5 WHIRLPOOL 2cedf7713753a6cf8838741fcf06c5510387aa4e661ea3c0ecc2bb7bdb5b03fb90f072ccd1a5671f03943952340c6c3525836e1ebe9246506143b055a1ca1991
24 +DIST SQLAlchemy-1.0.10.tar.gz 4705865 SHA256 963415bf4ea4fa13698893464bc6917d291331e0e8202dddd0ebfed2864ef7e3 SHA512 c28663a28e460abc724998f1fa605c31d0060e77f654f7c392da75f36e337158e9955cb37ba1c6ee517ef182f42c25e682a279d6865c9ee438bfb13dffa475c5 WHIRLPOOL 7f15d92722e54bc38a991f5639d7dae645f8845d1229a54bf0eff854aef5de7ff4c2df4a51db0d9fe74c08129cd4b1fc09e5e99dd0af7ff52ea374f732efa355
25 DIST SQLAlchemy-1.0.8.tar.gz 4627601 SHA256 950c79c0abf9e9f99c43c627c51d40d14a946810a90c35e7cd827bfd0bffe46f SHA512 921f847a20548095cb1f41fe6147b393110e08f8f3ff0aee6081e7811e7c15b3c03583afd41ddf5aacdc1dde090c0512afb94c7cc33d9c27135a5525ed121e74 WHIRLPOOL 757f2a3832c8fefd5789cd981eb1b2028419362ed2714927198df6b91742236896d4ab0131969afa08e5508843e32e018a1361e28df3f22a15f811d78275f8cf
26 DIST SQLAlchemy-1.0.9.tar.gz 4662673 SHA256 c3d37501e36ec5d74c2d7b4a3764719db86a9cdab4a24431bf58b386743ab10e SHA512 5032977e4fd3ff12d7ae10ca87f0ec9cd2d9eb5d200020b74faad1309eb1de5bacc9b4f5e53cb1b0b0b9c7f59b923a87a12ba050b37a631f9c77af2b896eb076 WHIRLPOOL 5e824f8581b98ac26f47d0bc8ae706783602ebe6bf921c6767f46db83b8322b022ea51603d1002017052144946256583c4fd9d2a92742c752333b530ed356121
27
28 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.0.10.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.0.10.ebuild
29 new file mode 100644
30 index 0000000..aaa990b
31 --- /dev/null
32 +++ b/dev-python/sqlalchemy/sqlalchemy-1.0.10.ebuild
33 @@ -0,0 +1,86 @@
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +
40 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
41 +PYTHON_REQ_USE="sqlite?"
42 +
43 +inherit distutils-r1 flag-o-matic
44 +
45 +MY_PN="SQLAlchemy"
46 +MY_P="${MY_PN}-${PV/_beta/b}"
47 +
48 +DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
49 +HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
50 +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +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"
55 +IUSE="doc examples +sqlite test"
56 +
57 +REQUIRED_USE="test? ( sqlite )"
58 +
59 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
60 +DEPEND="${RDEPEND}
61 + test? (
62 + dev-python/pytest[${PYTHON_USEDEP}]
63 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
64 + )"
65 +S="${WORKDIR}/${MY_P}"
66 +
67 +python_prepare_all() {
68 + # Disable tests hardcoding function call counts specific to Python versions.
69 + rm -r test/aaa_profiling || die
70 + distutils-r1_python_prepare_all
71 +}
72 +
73 +python_compile() {
74 + if ! python_is_python3; then
75 + local CFLAGS=${CFLAGS}
76 + append-cflags -fno-strict-aliasing
77 + fi
78 + distutils-r1_python_compile
79 +}
80 +
81 +python_test() {
82 + # Create copies of necessary files in BUILD_DIR.
83 + # https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
84 + cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
85 + pushd "${BUILD_DIR}" > /dev/null || die
86 + if [[ "${EPYTHON}" == "python3.2" ]]; then
87 + 2to3 --no-diffs -w test || die
88 + fi
89 + # Recently upstream elected to make the testsuite also pytest capable
90 + # "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
91 + py.test test || die "Testsuite failed under ${EPYTHON}"
92 + popd > /dev/null
93 +}
94 +
95 +python_install_all() {
96 + use doc && HTML_DOCS=( doc/. )
97 + use examples && local EXAMPLES=( examples/. )
98 +
99 + distutils-r1_python_install_all
100 +}
101 +
102 +pkg_postinst() {
103 + if [[ -z ${REPLACING_VERSIONS} ]]; then
104 + if ! has_version dev-python/mysql-python; then
105 + elog "For MySQL support, install dev-python/mysql-python"
106 + fi
107 +
108 + if ! has_version dev-python/pymssql; then
109 + elog "For mssql support, install dev-python/pymssql"
110 + fi
111 +
112 + if ! has_version dev-python/psycopg:2; then
113 + elog "For postgresql support, install dev-python/psycopg:2"
114 + fi
115 + fi
116 +
117 + elog "mysql backend support can be enabled by installing mysql-python for cpython py2.7 only,"
118 + elog "or mysql-connector-python for support of cpythons 2.7 3.3 and 3.4"
119 +}