summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2018-05-18 07:23:39 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2018-05-18 07:23:39 -0400
commit633dea162f1143ab351d172e5d5bc3ca7bdcbcc1 (patch)
treeef5ad9e7fa7fd69abad2b209cbe75d238e04d8ef
parentx11-misc/xdg-utils: Bump to version 1.1.3 (diff)
downloadgentoo-633dea162f1143ab351d172e5d5bc3ca7bdcbcc1.tar.gz
gentoo-633dea162f1143ab351d172e5d5bc3ca7bdcbcc1.tar.bz2
gentoo-633dea162f1143ab351d172e5d5bc3ca7bdcbcc1.zip
dev-python/flask-sqlalchemy: Bump to 2.3.2
Package-Manager: Portage-2.3.24, Repoman-2.3.6
-rw-r--r--dev-python/flask-sqlalchemy/Manifest1
-rw-r--r--dev-python/flask-sqlalchemy/files/2.3.2-mapping.patch19
-rw-r--r--dev-python/flask-sqlalchemy/flask-sqlalchemy-2.3.2.ebuild47
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-python/flask-sqlalchemy/Manifest b/dev-python/flask-sqlalchemy/Manifest
index 68daed978098..f1bae36c3341 100644
--- a/dev-python/flask-sqlalchemy/Manifest
+++ b/dev-python/flask-sqlalchemy/Manifest
@@ -1 +1,2 @@
DIST Flask-SQLAlchemy-2.1.tar.gz 95967 BLAKE2B 1e316fb4b72f43f9342dcdc5e6c54b317fab2a9b83c315dd6323721506cc01589af7833409a0bebe82a87b924ace457d89d9de8b0d80b78d044ae73e076e89fb SHA512 023f3dd011a57768e921928dd3df791a54c64bb8a0cc1bb545dbb8e16dda263b730da74a0d400e5a057819830dd4cd014a642098a081c956a7ea8a2d37ec112a
+DIST Flask-SQLAlchemy-2.3.2.tar.gz 105530 BLAKE2B 2355c82b1ffb68429af4c16869e1a171aaf8b89f1dbdd48759dfe1e0a7021f17bdb301a45b837bd0d2de85ebd6ba81d4cd5a3d8659293f38f5893a260598b82f SHA512 e0c12e5cc5ddb3685f04c928185e4526fb6a94dedb5c53e2b5ece2e0f1cae6ea4c00b3f9d6863c1b6252357ccf2b5a4c1fca0185d2d741bdbc0ab62e2901d2ff
diff --git a/dev-python/flask-sqlalchemy/files/2.3.2-mapping.patch b/dev-python/flask-sqlalchemy/files/2.3.2-mapping.patch
new file mode 100644
index 000000000000..c736d15a3d12
--- /dev/null
+++ b/dev-python/flask-sqlalchemy/files/2.3.2-mapping.patch
@@ -0,0 +1,19 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -225,11 +225,11 @@
+
+
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {
+- 'python': ('https://docs.python.org/3/', None),
+- 'flask': ('http://flask.pocoo.org/docs/', None),
+- 'sqlalchemy': ('http://docs.sqlalchemy.org/en/latest/', None)
+-}
++# intersphinx_mapping = {
++# 'python': ('https://docs.python.org/3/', None),
++# 'flask': ('http://flask.pocoo.org/docs/', None),
++# 'sqlalchemy': ('http://docs.sqlalchemy.org/en/latest/', None)
++# }
+ pygments_style = 'flask_theme_support.FlaskyStyle'
+
+ # fall back if theme is not there
diff --git a/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.3.2.ebuild b/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.3.2.ebuild
new file mode 100644
index 000000000000..a01e106776a3
--- /dev/null
+++ b/dev-python/flask-sqlalchemy/flask-sqlalchemy-2.3.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+MY_PN="Flask-SQLAlchemy"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="SQLAlchemy support for Flask applications"
+HOMEPAGE="https://pypi.org/project/Flask-SQLAlchemy/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/flask-0.10[${PYTHON_USEDEP}]
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+# Patch out un-needed d'loading of obj.inv files in doc build
+PATCHES=( "${FILESDIR}"/2.3.2-mapping.patch )
+
+# Req'd for tests in py3
+DISTUTILS_IN_SOURCE_BUILD=1
+
+S="${WORKDIR}/${MY_P}"
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ pytest
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
+ distutils-r1_python_install_all
+}