1 |
commit: 24f5d98ac7eab53755659570a7abedd7b7041700 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 27 00:37:30 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 02:14:40 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24f5d98a |
7 |
|
8 |
dev-python/sqlalchemy: bup |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/sqlalchemy/Manifest | 1 + |
13 |
dev-python/sqlalchemy/sqlalchemy-1.0.17.ebuild | 73 ++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest |
17 |
index 6e863c2d8a..9837de0a2e 100644 |
18 |
--- a/dev-python/sqlalchemy/Manifest |
19 |
+++ b/dev-python/sqlalchemy/Manifest |
20 |
@@ -1,5 +1,6 @@ |
21 |
DIST SQLAlchemy-0.7.10.tar.gz 3541639 SHA256 77aa39d65c9d043eba6ba329b359ff867424fd6c403b7c0cb112b65e507e1d66 SHA512 631bc4ffb419defa531a66d82449fe48f93c88371ba0b8ab4217d900a0d1d90efe9699d8a9048d5c2ed33948c6d2f7cae46452ee45d442914018f3361e804367 WHIRLPOOL 74ffc17efbcbb2ac67712b9e11aa48431d18970f46ae5985aaa345aa8691f96e4acc4cf6fa37606699fbba83fcb7f74b0360fea2ac5e93a451585019e110f2ed |
22 |
DIST SQLAlchemy-0.9.8.tar.gz 4080098 SHA256 de3ac04ecab0a7e0af64eee30a71e723ba5886b958205f7354dd62439da60389 SHA512 3df7d7a64cdfe7b684be98e7e9d6836da54c391343bb047224a11df888041034bcc54cc30d15dc3d56b5d397b35e6aabe5732e7ca8fbf553bd8d98731c249ea5 WHIRLPOOL 2cedf7713753a6cf8838741fcf06c5510387aa4e661ea3c0ecc2bb7bdb5b03fb90f072ccd1a5671f03943952340c6c3525836e1ebe9246506143b055a1ca1991 |
23 |
DIST SQLAlchemy-1.0.15.tar.gz 4776213 SHA256 586f5ccf068211795a89ed22d196c5cc3006b6be00261bcac6f584c0b8e0845a SHA512 12ca4afc8d26a666d721c70399ae30a3c63087265ee0debc10261fd6f1a31b15d5e43c6203da1703f8803c449cf650357d631e12be42fce605311e7acdb2c135 WHIRLPOOL 2ea6f6645fc416f3118adb4d4746f028dcf0e8e9f6c1eb20fb853609fad9a2ab8de5c167b0d9d00dc8de62fd3d244a997b327b55f244172827d44820be646caf |
24 |
+DIST SQLAlchemy-1.0.17.tar.gz 4787165 SHA256 4352b8ddc625fe648e9e93929fa217c234d7b1a1a2412a3021924b5c2bd95194 SHA512 18fc00bd80d136a65d5ad6929dac97a67514e001baaeaa57e95b31243cfe11aab9ab62ba8f7e68a5e833fbf024507c4908f99277445c8c3c9a3314981567978c WHIRLPOOL 7bfe9479f8cd8290d8065bc62d4ecd6ee1fdc17ada0ebc056ae2a90643a7c8e361b4456f8b93fc9cffa1e72316146975b0fe4f3ce44a8e4f76cb0994fe052a13 |
25 |
DIST SQLAlchemy-1.1.4.tar.gz 5117489 SHA256 701b57d628b9fa1cfb82f10665e7214d5d2db23251ca6f23b91c5f56fcdbdeb5 SHA512 b4343644ba619c748f6194744fc940360714cc04ef8f11789c62936dcd47a3108c511a2122ba8c4956ba1c92d93e98beb3f3818a8add320c210258f85748f532 WHIRLPOOL 8ab19304c84d702adba52d8864a70a184aab82601384fbfc38bd984fd16a769b637810a1f2436133e2d1eddd9089b31fb27e5953111d819ee476ffdb2b4716a4 |
26 |
DIST SQLAlchemy-1.1.5.tar.gz 5134252 SHA256 68fb40049690e567ebda7b270176f5abf0d53d9fbd515fec4e43326f601119b6 SHA512 94cfa2a94c21a7f40a34f7bebacf74cafcd8cfc24cabd5a79e0ed28a7a6d0c4182c9ceb076b07e1ee5ca1bd01a38a25ca264bbfdf5344c40e0c59b59582eb043 WHIRLPOOL 2264a5f23e91854d9ad6dcdabc2622658e900be560e7f6f5461357850c445574a982ea81c9ae1b5fb35bea70c419b98f8f3ab6dd4ef1990b9ac647d7f7e80ef5 |
27 |
|
28 |
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.0.17.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.0.17.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000000..054beeaf5e |
31 |
--- /dev/null |
32 |
+++ b/dev-python/sqlalchemy/sqlalchemy-1.0.17.ebuild |
33 |
@@ -0,0 +1,73 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
40 |
+PYTHON_REQ_USE="sqlite?" |
41 |
+ |
42 |
+inherit distutils-r1 eutils flag-o-matic |
43 |
+ |
44 |
+MY_PN="SQLAlchemy" |
45 |
+MY_P="${MY_PN}-${PV/_beta/b}" |
46 |
+ |
47 |
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper" |
48 |
+HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy" |
49 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+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" |
54 |
+IUSE="doc examples +sqlite test" |
55 |
+ |
56 |
+REQUIRED_USE="test? ( sqlite )" |
57 |
+ |
58 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ test? ( |
61 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
62 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy) |
63 |
+ )" |
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 --verbose 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 && dodoc -r examples |
98 |
+ |
99 |
+ distutils-r1_python_install_all |
100 |
+} |
101 |
+ |
102 |
+pkg_postinst() { |
103 |
+ optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python |
104 |
+ optfeature "mssql support" dev-python/pymssql |
105 |
+ optfeature "postgresql support" dev-python/psycopg:2 |
106 |
+} |