Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/
Date: Fri, 29 Dec 2017 16:14:15
Message-Id: 1514564046.04dfa382a5bf7639e3b6dff632d12ebfb5b14125.patrick@gentoo
1 commit: 04dfa382a5bf7639e3b6dff632d12ebfb5b14125
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 29 16:05:30 2017 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 29 16:14:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04dfa382
7
8 dev-python/sqlalchemy: Bump
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-python/sqlalchemy/Manifest | 1 +
13 dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild | 73 +++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
17 index d17816fad36..aa6d9b615ac 100644
18 --- a/dev-python/sqlalchemy/Manifest
19 +++ b/dev-python/sqlalchemy/Manifest
20 @@ -10,3 +10,4 @@ DIST SQLAlchemy-1.1.14.tar.gz 5183519 BLAKE2B 24b2b12cf38d4f0ab46631588b2b2f1f2a
21 DIST SQLAlchemy-1.1.15.tar.gz 5197858 BLAKE2B fa8f726ab7eb9a3702a0eb341979b8aeaf21f6c1a7a627779536a22c1b15301153ec69a0c2fc312cd0d904478eff43faacafc5944e43140dfb4a01c8ac1ac3a5 SHA512 a88ad65b8b0506f4a86cea1da183ecc9279cf8ce9b9b0f3eb2a512e46130d4bc58d38d86abd803029044d5fc80a6e0a80180094934720990caad209b0a98e115
22 DIST SQLAlchemy-1.1.5.tar.gz 5134252 BLAKE2B 7bd55befda5cc87261fb3a1eb0efab4b8a414f6cc9cf8836bb9c32c4aab216678594927fc2b2195c9394112fb873c7561053cd25ca78e7ec849b709ab5b9029d SHA512 94cfa2a94c21a7f40a34f7bebacf74cafcd8cfc24cabd5a79e0ed28a7a6d0c4182c9ceb076b07e1ee5ca1bd01a38a25ca264bbfdf5344c40e0c59b59582eb043
23 DIST SQLAlchemy-1.1.9.tar.gz 5164787 BLAKE2B 88e625a71d04e0ca3ee703d8fc923202f2752350c1ba538da1e3275f459bd7a7e2853c01ce01eac215942a827b09ec25a126d20c15da92f6e7761e61598ae053 SHA512 95df08e6bca0013ddc7e61aa82d7d51eb133a9b34aa430a785bd8cec8eb79a2b6e1503c1757a71487b09e2f292b5916e6797efb2026d43175e34a52b68cf81c6
24 +DIST SQLAlchemy-1.2.0.tar.gz 5451303 BLAKE2B 273edad173583d47d6ebdb4d3efddddb6e8e6c1e333667d71a1befb0aabc7ff8231f926c18d5463e1d4b815d2b2f39b7c9bca03ab3bf0f91f039b7ea55071e28 SHA512 0d9e57147b022955ad20da5b280e8734ba4be9585301b6e8fb9b96797d87d8707f95cb58afbaf310ec8033defffc4d794bec1d5089ca016b8dd9497e292881e3
25
26 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild
27 new file mode 100644
28 index 00000000000..14e4876c0d0
29 --- /dev/null
30 +++ b/dev-python/sqlalchemy/sqlalchemy-1.2.0.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
38 +PYTHON_REQ_USE="sqlite?"
39 +
40 +inherit distutils-r1 eutils flag-o-matic
41 +
42 +MY_PN="SQLAlchemy"
43 +MY_P="${MY_PN}-${PV/_beta/b}"
44 +
45 +DESCRIPTION="Python SQL toolkit and Object Relational Mapper"
46 +HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.python.org/pypi/SQLAlchemy"
47 +SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +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"
52 +IUSE="doc examples +sqlite test"
53 +
54 +REQUIRED_USE="test? ( sqlite )"
55 +
56 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
57 +DEPEND="${RDEPEND}
58 + test? (
59 + dev-python/pytest[${PYTHON_USEDEP}]
60 + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 pypy)
61 + )"
62 +
63 +S="${WORKDIR}/${MY_P}"
64 +
65 +python_prepare_all() {
66 + # Disable tests hardcoding function call counts specific to Python versions.
67 + rm -r test/aaa_profiling || die
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_compile() {
72 + if ! python_is_python3; then
73 + local CFLAGS=${CFLAGS}
74 + append-cflags -fno-strict-aliasing
75 + fi
76 + distutils-r1_python_compile
77 +}
78 +
79 +python_test() {
80 + # Create copies of necessary files in BUILD_DIR.
81 + # https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
82 + cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
83 + pushd "${BUILD_DIR}" > /dev/null || die
84 + if [[ "${EPYTHON}" == "python3.2" ]]; then
85 + 2to3 --no-diffs -w test || die
86 + fi
87 + # Recently upstream elected to make the testsuite also pytest capable
88 + # "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
89 + py.test --verbose test || die "Testsuite failed under ${EPYTHON}"
90 + popd > /dev/null
91 +}
92 +
93 +python_install_all() {
94 + use doc && HTML_DOCS=( doc/. )
95 + use examples && dodoc -r examples
96 +
97 + distutils-r1_python_install_all
98 +}
99 +
100 +pkg_postinst() {
101 + optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python
102 + optfeature "mssql support" dev-python/pymssql
103 + optfeature "postgresql support" dev-python/psycopg:2
104 +}