[arch-commits] Commit in python-wtforms/trunk (PKGBUILD)
Levente Polyak
anthraxx at gemini.archlinux.org
Tue Mar 8 21:41:12 UTC 2022
Date: Tuesday, March 8, 2022 @ 21:41:12
Author: anthraxx
Revision: 1145587
upgpkg: python-wtforms 3.0.1-1
Modified:
python-wtforms/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-08 21:31:16 UTC (rev 1145586)
+++ PKGBUILD 2022-03-08 21:41:12 UTC (rev 1145587)
@@ -5,27 +5,30 @@
_pyname=wtforms
pkgname=python-wtforms
-pkgver=2.3.3
-pkgrel=3
+pkgver=3.0.1
+pkgrel=1
pkgdesc='Flexible forms validation and rendering library for python web development'
url='https://wtforms.readthedocs.io/'
arch=('any')
license=('BSD')
-depends=('python')
-makedepends=('python-setuptools' 'python-babel' 'python-sphinx'
- 'python-pallets-sphinx-themes' 'python-sphinx-issues'
- 'python-sphinxcontrib-log-cabinet')
+depends=('python' 'python-markupsafe')
+makedepends=('python-setuptools' 'python-babel')
+checkdepends=('python-pytest' 'python-email-validator')
+optdepends=('python-email-validator: Email validation')
source=(https://github.com/wtforms/wtforms/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('f2b825a85f46a5eca2c8ecb7e0d1945e9697ad98c430b3043952eb5df87b77e180ac26aea0ad10c134438ef8f9d9c8d00ffc5b38a9fa413c6c95d43a681456a2')
-b2sums=('96a504e5a5334086372c81f3691edc0a598d3df9bb3eecce007daae1f445930e80aeea5c943e10500b2cba24ebff16e6e89ec31c9e6a1a33c5008297bbc1b064')
+sha512sums=('3e8b78026e3f0252113951aca20699477a753bdc0b0f7f01b934ddc8281ee89fc7a559ee519bc8501ff61dc7984b7ec3248d63ea57dd1c1b2c71d845a4479a49')
+b2sums=('57bd60cad3955a6097108c6f5bd151ee044812bd3830213a4c8470a168ef27d42336cb75341bdfa8a8b779faab318585f0760bd652115480b8441bf11c07c912')
build() {
cd ${_pyname}-${pkgver}
python setup.py compile_catalog build
- export PYTHONPATH=..
- make -C docs html SPHINXBUILD=sphinx-build
}
+check() {
+ cd ${_pyname}-${pkgver}
+ PYTHONPATH="build/lib" pytest
+}
+
package() {
cd ${_pyname}-${pkgver}
python setup.py install --root="${pkgdir}" -O1
@@ -32,7 +35,6 @@
find "$pkgdir" -type f -name \*.po -delete
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/html "${pkgdir}/usr/share/doc/${pkgname}/html"
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list