summaryrefslogtreecommitdiffstats
path: root/python/Flask-SQLAlchemy
diff options
context:
space:
mode:
author Dimitris Zlatanidis <d.zlatanidis@gmail.com>2019-12-22 13:21:00 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-31 18:06:26 +0700
commit23394e3bf89bee106759f25db3da9013ad384a6c (patch)
tree975f9a71d5b19a26ddeb4905f52be91170a90d9c /python/Flask-SQLAlchemy
parente8c06f622cfd8737f374f150d68a7c94111b55a9 (diff)
downloadslackbuilds-23394e3bf89bee106759f25db3da9013ad384a6c.tar.gz
slackbuilds-23394e3bf89bee106759f25db3da9013ad384a6c.tar.xz
python/Flask-SQLAlchemy: Updated for version 2.4.1.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'python/Flask-SQLAlchemy')
-rw-r--r--python/Flask-SQLAlchemy/Flask-SQLAlchemy.SlackBuild9
-rw-r--r--python/Flask-SQLAlchemy/Flask-SQLAlchemy.info6
-rw-r--r--python/Flask-SQLAlchemy/README8
3 files changed, 18 insertions, 5 deletions
diff --git a/python/Flask-SQLAlchemy/Flask-SQLAlchemy.SlackBuild b/python/Flask-SQLAlchemy/Flask-SQLAlchemy.SlackBuild
index fb49926cdd..359ec1404c 100644
--- a/python/Flask-SQLAlchemy/Flask-SQLAlchemy.SlackBuild
+++ b/python/Flask-SQLAlchemy/Flask-SQLAlchemy.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Flask-SQLAlchemy
-VERSION=${VERSION:-2.3.0}
+VERSION=${VERSION:-2.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,11 +71,16 @@ find -L . \
python setup.py install --root=$PKG
+# Install python3 bindings. Default is no.
+if [ "${PYTHON3:-no}" = "yes" ]; then
+ python3 setup.py install --root=$PKG
+fi
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README CHANGES LICENSE docs/*.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst CHANGES.rst LICENSE.rst docs/*.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/Flask-SQLAlchemy/Flask-SQLAlchemy.info b/python/Flask-SQLAlchemy/Flask-SQLAlchemy.info
index f2a0318d41..eda7eed72e 100644
--- a/python/Flask-SQLAlchemy/Flask-SQLAlchemy.info
+++ b/python/Flask-SQLAlchemy/Flask-SQLAlchemy.info
@@ -1,8 +1,8 @@
PRGNAM="Flask-SQLAlchemy"
-VERSION="2.3.0"
+VERSION="2.4.1"
HOMEPAGE="https://github.com/mitsuhiko/flask-sqlalchemy"
-DOWNLOAD="https://pypi.python.org/packages/31/50/f4bfe4c1bad62e5efa2ec8987d7b290975713a15c50a332b6993cc994ea4/Flask-SQLAlchemy-2.3.0.tar.gz"
-MD5SUM="c86449f44e90e996142872ac4b97f7ee"
+DOWNLOAD="https://files.pythonhosted.org/packages/52/7a/35bacbedafdc652d5198b80eb22eacccae0c97a49740a45da828b05cc37b/Flask-SQLAlchemy-2.4.1.tar.gz"
+MD5SUM="1f5781cf3e1a2b1aabda47a5b20d2073"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="Flask SQLAlchemy"
diff --git a/python/Flask-SQLAlchemy/README b/python/Flask-SQLAlchemy/README
index fc294fe764..b96885c552 100644
--- a/python/Flask-SQLAlchemy/README
+++ b/python/Flask-SQLAlchemy/README
@@ -1,2 +1,10 @@
Flask-SQLAlchemy is a Flask microframework extension which adds
support for the SQLAlchemy SQL toolkit/ORM.
+
+python3 and python3-Flask is an optional dependencies.
+
+You need to set PYTHON3=yes,
+
+for example:
+
+ PYTHON3=yes ./Flask-SQLAlchemy.SlackBuild