1 |
commit: cc6321866dec4ad3d63f9c62e90d4631665ca624 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 30 13:08:32 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 13:54:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc632186 |
7 |
|
8 |
dev-python/sqlalchemy: Bump to version 1.1.4 |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-python/sqlalchemy/Manifest | 1 + |
13 |
dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild | 74 +++++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest |
17 |
index 5e9eda9..8596f0d 100644 |
18 |
--- a/dev-python/sqlalchemy/Manifest |
19 |
+++ b/dev-python/sqlalchemy/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST SQLAlchemy-1.0.12.tar.gz 4748974 SHA256 6679e20eae780b67ba136a4a76f83bb264d |
21 |
DIST SQLAlchemy-1.0.15.tar.gz 4776213 SHA256 586f5ccf068211795a89ed22d196c5cc3006b6be00261bcac6f584c0b8e0845a SHA512 12ca4afc8d26a666d721c70399ae30a3c63087265ee0debc10261fd6f1a31b15d5e43c6203da1703f8803c449cf650357d631e12be42fce605311e7acdb2c135 WHIRLPOOL 2ea6f6645fc416f3118adb4d4746f028dcf0e8e9f6c1eb20fb853609fad9a2ab8de5c167b0d9d00dc8de62fd3d244a997b327b55f244172827d44820be646caf |
22 |
DIST SQLAlchemy-1.1.2.tar.gz 5104171 SHA256 1692c35bc0f7026d20cabd43b0f6f265e855129f44eb4574fea361e3c5cc89a5 SHA512 5b7b8af5e7e96c844ee5e9b85314ede7dbdfd411ff88bc32517661108abcc2338fe1949a1378b135e2be6c5943de168dfe735bcd74d0581df95d98fe40a03c4a WHIRLPOOL 24b02311535db62ed7d932cc4f582b3f3a17633a726f0d4230890116a18516e4eac5a39eace2701d05fe51c71cc089113ace71b426051c9f3ab3275bd650b989 |
23 |
DIST SQLAlchemy-1.1.3.tar.gz 5111411 SHA256 8b0ed90292a294e17d24482c9328abe69eb8e3143e2bd7103b6fadae2562638f SHA512 b35994f5dc005db7ddc82b353f1cec639e081f5965177e83f7b834af34fdcdfabcf35b45ac6aea3366168c7b0a0d3e95e86b7e84e715e1483039806e976f9e48 WHIRLPOOL 3fcf0a7971e4e81dc346d809e07e1993720b88770300f81a916d799afd29aedbc8742a196a4bf4f922d8015f40bb7da0332801027cba24a985a76d0f2b0c9ae4 |
24 |
+DIST SQLAlchemy-1.1.4.tar.gz 5117489 SHA256 701b57d628b9fa1cfb82f10665e7214d5d2db23251ca6f23b91c5f56fcdbdeb5 SHA512 b4343644ba619c748f6194744fc940360714cc04ef8f11789c62936dcd47a3108c511a2122ba8c4956ba1c92d93e98beb3f3818a8add320c210258f85748f532 WHIRLPOOL 8ab19304c84d702adba52d8864a70a184aab82601384fbfc38bd984fd16a769b637810a1f2436133e2d1eddd9089b31fb27e5953111d819ee476ffdb2b4716a4 |
25 |
|
26 |
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..4f161b4 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/sqlalchemy/sqlalchemy-1.1.4.ebuild |
31 |
@@ -0,0 +1,74 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy ) |
39 |
+PYTHON_REQ_USE="sqlite?" |
40 |
+ |
41 |
+inherit distutils-r1 eutils flag-o-matic |
42 |
+ |
43 |
+MY_PN="SQLAlchemy" |
44 |
+MY_P="${MY_PN}-${PV/_beta/b}" |
45 |
+ |
46 |
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper" |
47 |
+HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy" |
48 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+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" |
53 |
+IUSE="doc examples +sqlite test" |
54 |
+ |
55 |
+REQUIRED_USE="test? ( sqlite )" |
56 |
+ |
57 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ test? ( |
60 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
61 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) |
62 |
+ )" |
63 |
+ |
64 |
+S="${WORKDIR}/${MY_P}" |
65 |
+ |
66 |
+python_prepare_all() { |
67 |
+ # Disable tests hardcoding function call counts specific to Python versions. |
68 |
+ rm -r test/aaa_profiling || die |
69 |
+ distutils-r1_python_prepare_all |
70 |
+} |
71 |
+ |
72 |
+python_compile() { |
73 |
+ if ! python_is_python3; then |
74 |
+ local CFLAGS=${CFLAGS} |
75 |
+ append-cflags -fno-strict-aliasing |
76 |
+ fi |
77 |
+ distutils-r1_python_compile |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ # Create copies of necessary files in BUILD_DIR. |
82 |
+ # https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/ |
83 |
+ cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die |
84 |
+ pushd "${BUILD_DIR}" > /dev/null || die |
85 |
+ if [[ "${EPYTHON}" == "python3.2" ]]; then |
86 |
+ 2to3 --no-diffs -w test || die |
87 |
+ fi |
88 |
+ # Recently upstream elected to make the testsuite also pytest capable |
89 |
+ # "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}" |
90 |
+ py.test --verbose test || die "Testsuite failed under ${EPYTHON}" |
91 |
+ popd > /dev/null |
92 |
+} |
93 |
+ |
94 |
+python_install_all() { |
95 |
+ use doc && HTML_DOCS=( doc/. ) |
96 |
+ use examples && dodoc -r examples |
97 |
+ |
98 |
+ distutils-r1_python_install_all |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python |
103 |
+ optfeature "mssql support" dev-python/pymssql |
104 |
+ optfeature "postgresql support" dev-python/psycopg:2 |
105 |
+} |