[arch-commits] Commit in python-flask-sqlalchemy/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 15:24:07 UTC 2019
Date: Saturday, October 26, 2019 @ 15:24:07
Author: foutrelis
Revision: 520405
archrelease: copy trunk to community-staging-any
Added:
python-flask-sqlalchemy/repos/community-staging-any/
python-flask-sqlalchemy/repos/community-staging-any/PKGBUILD
(from rev 520404, python-flask-sqlalchemy/trunk/PKGBUILD)
----------+
PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
Copied: python-flask-sqlalchemy/repos/community-staging-any/PKGBUILD (from rev 520404, python-flask-sqlalchemy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 15:24:07 UTC (rev 520405)
@@ -0,0 +1,68 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Serge Victor <arch at random.re>
+# Contributor: Kevin Azzam <aur at azz.am>
+
+_pyname=flask-sqlalchemy
+pkgbase=python-flask-sqlalchemy
+pkgname=('python-flask-sqlalchemy' 'python2-flask-sqlalchemy')
+pkgver=2.4.0
+pkgrel=2
+pkgdesc='Adds SQLAlchemy support to your Flask application'
+url='http://flask-sqlalchemy.pocoo.org/'
+arch=('any')
+license=('BSD')
+makedepends=('python-setuptools' 'python-flask' 'python-sqlalchemy'
+ 'python2-setuptools' 'python2-flask' 'python2-sqlalchemy'
+ 'python-sphinx' 'python-pallets-sphinx-themes' 'python-sphinx-issues')
+checkdepends=('python-pytest' 'python-blinker' 'python-mock'
+ 'python2-pytest' 'python2-blinker' 'python2-mock')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mitsuhiko/flask-sqlalchemy/archive/${pkgver}.tar.gz)
+sha256sums=('bf8c585851e6c8971751a6d23fa7a3f9bf26d8a4b0c1eff08583224a7ed62b2f')
+sha512sums=('4a5f247527ea07d58004d532365c955364c0999a0214b63fa1a96f3baf17e86e4a7a0d8f911e83fe965e5e9b23427c315ecfa83634379bf70c7b028f526518d5')
+
+prepare() {
+ sed -r "s|(release =)|\\1 '${pkgver}' #|" -i ${_pyname}-${pkgver}/docs/conf.py
+ cp -a ${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+ (cd ${_pyname}-${pkgver}
+ python setup.py build
+ make -j1 -C docs man text SPHINXBUILD=sphinx-build PYTHONPATH=..
+ )
+ (cd ${_pyname}-${pkgver}-py2
+ python2 setup.py build
+ make -j1 -C docs man text SPHINXBUILD=sphinx-build PYTHONPATH=..
+ )
+}
+
+check() {
+ (cd ${_pyname}-${pkgver}
+ PYTHONPATH=".:${PYTHONPATH}" py.test
+ )
+ (cd ${_pyname}-${pkgver}-py2
+ PYTHONPATH=".:${PYTHONPATH}" py.test2
+ )
+}
+
+package_python-flask-sqlalchemy() {
+ depends=('python-flask' 'python-sqlalchemy')
+ cd ${_pyname}-${pkgver}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES.rst README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r docs/_build/text "${pkgdir}/usr/share/doc/${pkgname}/text"
+ install -Dm 644 docs/_build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+package_python2-flask-sqlalchemy() {
+ depends=('python2-flask' 'python2-sqlalchemy')
+ cd ${_pyname}-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES.rst README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r docs/_build/text "${pkgdir}/usr/share/doc/${pkgname}/text"
+ install -Dm 644 docs/_build/man/${_pyname}.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list