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/alembic/
Date: Sun, 27 Aug 2017 04:26:27
Message-Id: 1503807884.e587e368e282d61d1a93abe9222a34ab623c797b.prometheanfire@gentoo
1 commit: e587e368e282d61d1a93abe9222a34ab623c797b
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 27 02:24:34 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 27 04:24:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e587e368
7
8 dev-python/alembic: 0.9.3 bup
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-python/alembic/Manifest | 1 +
13 dev-python/alembic/alembic-0.9.3.ebuild | 47 +++++++++++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-python/alembic/Manifest b/dev-python/alembic/Manifest
17 index 9e3d38cbbca..6546f109fce 100644
18 --- a/dev-python/alembic/Manifest
19 +++ b/dev-python/alembic/Manifest
20 @@ -1 +1,2 @@
21 DIST alembic-0.8.10.tar.gz 976028 SHA256 0e3b50e96218283ec7443fb661199f5a81f5879f766967a8a2d25e8f9d4e7919 SHA512 28456eb41a2b2d0d870f34cfddf46c25ed01fd1ee99b1a3697e6c0c5369f49245e54db0d7232cc839cf03a5c48efb48a8b967586b3a81ba9462b485b6782a415 WHIRLPOOL 7aeac48eb5fa81c91bfbf9c601875fe3329f1f899f5c20321574bc7141f82aa4dee8c7388cad67d28f6a13ad5d016a14beb7e84386f8a641d10c00cec1839cb1
22 +DIST alembic-0.9.3.tar.gz 991744 SHA256 57f2ede554c0b18f1cf811cfbb3b02c586a5422df94922e3821883ba0b8c616c SHA512 1f39521a1cc9e1e8f8d344f2e48e1f656aed2ffda8e0608b9c5a9a7a1f0e4d16865ae0fba903023512a198afc70e72c683b0ff2bd1bc2e9ba6667009e940a63e WHIRLPOOL 3ffc0bac46b4e0e89fa1e2afff2c1f2a6df5f9e3e9af3a4245ea4d048024b7b34896910db79d7bfc7be73fa9cb182d8a52425b67d5f57402984b6f3db39dc085
23
24 diff --git a/dev-python/alembic/alembic-0.9.3.ebuild b/dev-python/alembic/alembic-0.9.3.ebuild
25 new file mode 100644
26 index 00000000000..d031f72bfde
27 --- /dev/null
28 +++ b/dev-python/alembic/alembic-0.9.3.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="database migrations tool, written by the author of SQLAlchemy"
39 +HOMEPAGE="https://bitbucket.org/zzzeek/alembic"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm64 ~x86"
45 +IUSE="test doc"
46 +
47 +# requires.txt cites 'SQLAlchemy>=0.7.3' which is really both old and silly
48 +# because it shatters the testsuite. If 'someone' cares to adhere to correct form
49 +# and edit to -0.7.3, feel free, and then pick up the pieces.
50 +RDEPEND=">=dev-python/sqlalchemy-0.8.4[${PYTHON_USEDEP}]
51 + dev-python/mako[${PYTHON_USEDEP}]
52 + >=dev-python/python-editor-0.3[${PYTHON_USEDEP}]
53 + dev-python/python-dateutil[${PYTHON_USEDEP}]"
54 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
55 + test? ( ${RDEPEND}
56 + dev-python/nose[${PYTHON_USEDEP}]
57 + dev-python/mock[${PYTHON_USEDEP}] )"
58 +# For test phase
59 +DISTUTILS_IN_SOURCE_BUILD=1
60 +
61 +python_prepare_all() {
62 + # suite passes all if run from source. The residual fail & error are quite erroneous
63 + rm tests/test_script_consumption.py || die
64 +
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_test() {
69 + ${EPYTHON} run_tests.py || die "Testing failed with ${EPYTHON}"
70 +}
71 +
72 +python_install_all() {
73 + use doc && local HTML_DOCS=( docs/. )
74 +
75 + distutils-r1_python_install_all
76 +}