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