[arch-commits] Commit in python-flask-wtf/trunk (PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon Dec 6 21:28:40 UTC 2021


    Date: Monday, December 6, 2021 @ 21:28:40
  Author: foutrelis
Revision: 1065388

Bump for wtform compat

Modified:
  python-flask-wtf/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-06 21:26:24 UTC (rev 1065387)
+++ PKGBUILD	2021-12-06 21:28:40 UTC (rev 1065388)
@@ -3,23 +3,23 @@
 
 _pyname=flask-wtf
 pkgname=python-flask-wtf
-pkgver=0.14.3
-pkgrel=4
+pkgver=1.0.0
+pkgrel=0
 pkgdesc='Simple integration of Flask and WTForms'
 url='https://flask-wtf.readthedocs.io/'
 arch=('any')
 license=('BSD')
 depends=('python-flask' 'python-wtforms' 'python-werkzeug')
-makedepends=('python-setuptools' 'python-sphinx')
+makedepends=('python-setuptools' 'python-sphinx' 'python-pallets-sphinx-themes'
+             'python-sphinxcontrib-log-cabinet' 'python-sphinx-issues')
 checkdepends=('python-flask-babel' 'python-tox')
 options=('!makeflags')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/lepture/flask-wtf/archive/${pkgver}.tar.gz)
-sha512sums=('f6d3c1e94647b33dbbc5ee9da86a749c879de4e43f98a58f43811393a5e05b5e6a1cc2546adc381ccdefeabafeb90cc75a00464491872465f9b60b641112e3c9')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/wtforms/flask-wtf/archive/v${pkgver}.tar.gz)
+sha512sums=('eb9e2268954cef004faef32c98cf162daf3538bfa926ba181291eba655338755d449f2a6d436b13474e0fcb08d5736f18b1e326b1ce0b8ca502120c834c85867')
 
 prepare() {
-  sed -r 's|dist = get_distribution|#|' -i ${_pyname}-${pkgver}/docs/conf.py
-  sed -r "s|(version =)|\\1 '${pkgver}'  #|" -i ${_pyname}-${pkgver}/docs/conf.py
-  sed -r "s|(release =)|\\1 '${pkgver}'  #|" -i ${_pyname}-${pkgver}/docs/conf.py
+  cd ${_pyname}-${pkgver}
+  sed -i "s/^release, version =/& '${pkgver}', '${pkgver%.*}.x' #/" docs/conf.py
 }
 
 build() {
@@ -35,7 +35,7 @@
 package() {
   cd ${_pyname}-${pkgver}
   python setup.py install --root="${pkgdir}" -O1
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -Dm 644 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/flask-wtf.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"



More information about the arch-commits mailing list