1 |
commit: c17b31cf453cf0d7c3eb40bc27be80e09cb16b7f |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 10 20:33:10 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 10 20:33:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17b31cf |
7 |
|
8 |
dev-python/sqlalchemy-migrate: drop dep on sphinxcontrib-issuetracker |
9 |
|
10 |
Bug: https://bugs.gentoo.org/527188 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
...lalchemy-migrate-0.11-disable-sphinx-exts.patch | 13 +++++++ |
15 |
.../sqlalchemy-migrate-0.11.0-r1.ebuild | 43 ++++++++++++++++++++++ |
16 |
2 files changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/sqlalchemy-migrate/files/sqlalchemy-migrate-0.11-disable-sphinx-exts.patch b/dev-python/sqlalchemy-migrate/files/sqlalchemy-migrate-0.11-disable-sphinx-exts.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..afb8ff6dc46 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/sqlalchemy-migrate/files/sqlalchemy-migrate-0.11-disable-sphinx-exts.patch |
23 |
@@ -0,0 +1,13 @@ |
24 |
+intersphinx: prevent resource downloads at build time\ |
25 |
+issuetracker: broken. see bug #527188 |
26 |
+--- a/doc/source/conf.py |
27 |
++++ b/doc/source/conf.py |
28 |
+@@ -28,7 +28,7 @@ sys.path.append(os.path.dirname(os.path.abspath('.'))) |
29 |
+ |
30 |
+ # Add any Sphinx extension module names here, as strings. They can be extensions |
31 |
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
32 |
+-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinxcontrib.issuetracker'] |
33 |
++extensions = ['sphinx.ext.autodoc'] |
34 |
+ |
35 |
+ # link to sqlalchemy docs |
36 |
+ intersphinx_mapping = { |
37 |
|
38 |
diff --git a/dev-python/sqlalchemy-migrate/sqlalchemy-migrate-0.11.0-r1.ebuild b/dev-python/sqlalchemy-migrate/sqlalchemy-migrate-0.11.0-r1.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..0cffbd3cae3 |
41 |
--- /dev/null |
42 |
+++ b/dev-python/sqlalchemy-migrate/sqlalchemy-migrate-0.11.0-r1.ebuild |
43 |
@@ -0,0 +1,43 @@ |
44 |
+# Copyright 1999-2018 Gentoo Authors |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=7 |
48 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
49 |
+ |
50 |
+inherit distutils-r1 |
51 |
+ |
52 |
+DESCRIPTION="SQLAlchemy Schema Migration Tools" |
53 |
+HOMEPAGE="https://pypi.org/project/sqlalchemy-migrate/" |
54 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
59 |
+IUSE="doc" |
60 |
+ |
61 |
+CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
62 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ ${CDEPEND} |
64 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
65 |
+RDEPEND=">=dev-python/sqlalchemy-0.7.8[${PYTHON_USEDEP}] |
66 |
+ !~dev-python/sqlalchemy-0.9.5[${PYTHON_USEDEP}] |
67 |
+ dev-python/decorator[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/six-1.7.0[${PYTHON_USEDEP}] |
69 |
+ dev-python/python-sqlparse[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/tempita-0.4[${PYTHON_USEDEP}]" |
71 |
+# Testsuite requires a missing dep and errors with poor report output |
72 |
+ |
73 |
+PATCHES=( "${FILESDIR}/${PN}-0.11-disable-sphinx-exts.patch" ) |
74 |
+ |
75 |
+python_compile_all() { |
76 |
+ if use doc; then |
77 |
+ einfo ""; einfo "The build seeks to import modules from an installed state of the package" |
78 |
+ einfo "simply ignore all warnings / errors of failure to import module migrate.<module>"; einfo "" |
79 |
+ emake -C doc/source html || die "Generation of documentation failed" |
80 |
+ fi |
81 |
+} |
82 |
+ |
83 |
+python_install_all() { |
84 |
+ use doc && local HTML_DOCS=( doc/source/_build/html/. ) |
85 |
+ distutils-r1_python_install_all |
86 |
+} |