Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/
Date: Fri, 16 Feb 2018 06:08:18
Message-Id: 1518751352.ed782808d24cc2131aa8993886b7a1857920b58d.prometheanfire@gentoo
1 commit: ed782808d24cc2131aa8993886b7a1857920b58d
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 03:22:32 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 03:22:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed782808
7
8 dev-python/sqlalchemy: 1.2.2 bup
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.2.ebuild | 73 +++++++++++++++++++++++++++
14 2 files changed, 74 insertions(+)
15
16 diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest
17 index 57305e5bff5..d3bb7f60352 100644
18 --- a/dev-python/sqlalchemy/Manifest
19 +++ b/dev-python/sqlalchemy/Manifest
20 @@ -4,3 +4,4 @@ DIST SQLAlchemy-1.0.17.tar.gz 4787165 BLAKE2B b00ead35149cfd7eab3476e29aa2b2b79e
21 DIST SQLAlchemy-1.0.19.tar.gz 4788659 BLAKE2B 813bc2148fd080762ea7748d9878500afac4148dc186a34172321fd97333eb6c8632ae3b05b2e8b187a3660ae34a426062ade56297b693d367eeea2c3966b249 SHA512 57d51fecb40e349b05da027bf39375a81c1d98e6d47f4dd076b9c7e2e3c8b6bdf8317e7b3e88c015cbd0d7858324ba0499a21a8ac39568c9ec95326e02af97bb
22 DIST SQLAlchemy-1.1.12.tar.gz 5178158 BLAKE2B 92455943f3e5ce8c87fc9dd21da7c5ea54a9292fe2a3a319a8a9c8d54cd103193935d567326b8632d2fcd94664ef91cd1a3d621008bec684ba35ff73691ff01e SHA512 f9d14b3d4eab049e9d7377008cf11678c1413e204baad898093282d1812d242a544bbb6606b4e9a83b37d5c17bcec3c115ffe402dda8b6a84d0d5186415645e3
23 DIST SQLAlchemy-1.2.0.tar.gz 5451303 BLAKE2B 273edad173583d47d6ebdb4d3efddddb6e8e6c1e333667d71a1befb0aabc7ff8231f926c18d5463e1d4b815d2b2f39b7c9bca03ab3bf0f91f039b7ea55071e28 SHA512 0d9e57147b022955ad20da5b280e8734ba4be9585301b6e8fb9b96797d87d8707f95cb58afbaf310ec8033defffc4d794bec1d5089ca016b8dd9497e292881e3
24 +DIST SQLAlchemy-1.2.2.tar.gz 5460157 BLAKE2B 60c5066a2993d9878f5d3abec1a6a9a4d0a3dc5878df71baee895e5278b95696b775e16000da0ba4c2c358b0a90e70faff0b5733a4f00255b0ec0d605cdd07c6 SHA512 060ce803b8b621d51aa69100c598c424c36f051bdce1e2df3f4d837815f91cb55c4e089db5375b01832ec28bf42332311009c51c1b5e7aae92aea001ee880db5
25
26 diff --git a/dev-python/sqlalchemy/sqlalchemy-1.2.2.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.2.2.ebuild
27 new file mode 100644
28 index 00000000000..3c3f17ea7ae
29 --- /dev/null
30 +++ b/dev-python/sqlalchemy/sqlalchemy-1.2.2.ebuild
31 @@ -0,0 +1,73 @@
32 +# Copyright 1999-2018 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 +}