From 59dc46ac94a834b9fafb7763e8350aef1fd5c655 Mon Sep 17 00:00:00 2001 From: kleink Date: Sun, 27 Oct 2013 21:55:23 +0000 Subject: [PATCH] Update py-flask-wtf to 0.9.3. (No changelog for 0.9.3 supplied, but includes maintainer change.) Version 0.9.2 ------------- Released 2013/9/11 - Upgrade wtforms to 1.0.5. - No lazy string for i18n `#77`_. - No DateInput widget in html5 `#81`_. - PUT and PATCH for CSRF `#86`_. .. _`#77`: https://github.com/lepture/flask-wtf/issues/77 .. _`#81`: https://github.com/lepture/flask-wtf/issues/81 .. _`#86`: https://github.com/lepture/flask-wtf/issues/86 Version 0.9.1 ------------- Released 2013/8/21 This is a patch version for backward compitable for Flask<0.10 `#82`_. .. _`#82`: https://github.com/lepture/flask-wtf/issues/82 Version 0.9.0 ------------- Released 2013/8/15 - Add i18n support (issue #65) - Use default html5 widgets and fields provided by wtforms - Python 3.3+ support - Redesign form, replace SessionSecureForm - CSRF protection solution - Drop wtforms imports - Fix recaptcha i18n support - Fix recaptcha validator for python 3 - More test cases, it's 90%+ coverage now - Redesign documentation --- www/py-flask-wtf/Makefile | 8 ++++---- www/py-flask-wtf/PLIST | 11 ++++++++++- www/py-flask-wtf/distinfo | 9 ++++----- .../patches/patch-flask__wtf_recaptcha_widgets.py | 13 ------------- 4 files changed, 18 insertions(+), 23 deletions(-) delete mode 100644 www/py-flask-wtf/patches/patch-flask__wtf_recaptcha_widgets.py diff --git a/www/py-flask-wtf/Makefile b/www/py-flask-wtf/Makefile index 73ea681377596..81687bc88d625 100644 --- a/www/py-flask-wtf/Makefile +++ b/www/py-flask-wtf/Makefile @@ -1,12 +1,12 @@ -# $NetBSD: Makefile,v 1.5 2013/08/04 14:58:42 kleink Exp $ +# $NetBSD: Makefile,v 1.6 2013/10/27 21:55:23 kleink Exp $ -DISTNAME= Flask-WTF-0.8.4 +DISTNAME= Flask-WTF-0.9.3 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} CATEGORIES= www python MASTER_SITES= http://pypi.python.org/packages/source/F/Flask-WTF/ MAINTAINER= kleink@NetBSD.org -HOMEPAGE= http://github.com/ajford/flask-wtf +HOMEPAGE= http://github.com/lepture/flask-wtf COMMENT= Simple integration of Flask and WTForms LICENSE= modified-bsd @@ -18,7 +18,7 @@ PYTHON_VERSIONS_INCOMPATIBLE= 31 32 EGG_NAME= ${DISTNAME:S/-/_/} DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask -DEPENDS+= ${PYPKGPREFIX}-wtforms>=1.0:../../www/py-wtforms +DEPENDS+= ${PYPKGPREFIX}-wtforms>=1.0.5:../../www/py-wtforms .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/py-flask-wtf/PLIST b/www/py-flask-wtf/PLIST index 826a6ff22c93d..68d9a64c22c5f 100644 --- a/www/py-flask-wtf/PLIST +++ b/www/py-flask-wtf/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1 2013/01/07 21:51:10 kleink Exp $ +@comment $NetBSD: PLIST,v 1.2 2013/10/27 21:55:23 kleink Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -8,6 +8,12 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.txt ${PYSITELIB}/flask_wtf/__init__.py ${PYSITELIB}/flask_wtf/__init__.pyc ${PYSITELIB}/flask_wtf/__init__.pyo +${PYSITELIB}/flask_wtf/_compat.py +${PYSITELIB}/flask_wtf/_compat.pyc +${PYSITELIB}/flask_wtf/_compat.pyo +${PYSITELIB}/flask_wtf/csrf.py +${PYSITELIB}/flask_wtf/csrf.pyc +${PYSITELIB}/flask_wtf/csrf.pyo ${PYSITELIB}/flask_wtf/file.py ${PYSITELIB}/flask_wtf/file.pyc ${PYSITELIB}/flask_wtf/file.pyo @@ -17,6 +23,9 @@ ${PYSITELIB}/flask_wtf/form.pyo ${PYSITELIB}/flask_wtf/html5.py ${PYSITELIB}/flask_wtf/html5.pyc ${PYSITELIB}/flask_wtf/html5.pyo +${PYSITELIB}/flask_wtf/i18n.py +${PYSITELIB}/flask_wtf/i18n.pyc +${PYSITELIB}/flask_wtf/i18n.pyo ${PYSITELIB}/flask_wtf/recaptcha/__init__.py ${PYSITELIB}/flask_wtf/recaptcha/__init__.pyc ${PYSITELIB}/flask_wtf/recaptcha/__init__.pyo diff --git a/www/py-flask-wtf/distinfo b/www/py-flask-wtf/distinfo index 1061884313815..9f74877fc1732 100644 --- a/www/py-flask-wtf/distinfo +++ b/www/py-flask-wtf/distinfo @@ -1,6 +1,5 @@ -$NetBSD: distinfo,v 1.4 2013/08/04 14:58:42 kleink Exp $ +$NetBSD: distinfo,v 1.5 2013/10/27 21:55:23 kleink Exp $ -SHA1 (Flask-WTF-0.8.4.tar.gz) = b358c5f1f06a8f5a1508d9a0352fd773f3c9fde5 -RMD160 (Flask-WTF-0.8.4.tar.gz) = da850e2da16bc8a88c723790df1dd022d093aeef -Size (Flask-WTF-0.8.4.tar.gz) = 237765 bytes -SHA1 (patch-flask__wtf_recaptcha_widgets.py) = fb8be817708e9edd4391929981edb77715c945dd +SHA1 (Flask-WTF-0.9.3.tar.gz) = 9a8cb86789024587d5c5f910fa91d30ce2bec9fd +RMD160 (Flask-WTF-0.9.3.tar.gz) = 72a731385c485881409c8a0092b57737ec65569c +Size (Flask-WTF-0.9.3.tar.gz) = 245191 bytes diff --git a/www/py-flask-wtf/patches/patch-flask__wtf_recaptcha_widgets.py b/www/py-flask-wtf/patches/patch-flask__wtf_recaptcha_widgets.py deleted file mode 100644 index 1b0dbad6e4a25..0000000000000 --- a/www/py-flask-wtf/patches/patch-flask__wtf_recaptcha_widgets.py +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-flask__wtf_recaptcha_widgets.py,v 1.1 2013/08/04 14:58:42 kleink Exp $ - ---- flask_wtf/recaptcha/widgets.py.orig 2013-07-04 03:56:53.000000000 +0200 -+++ flask_wtf/recaptcha/widgets.py -@@ -14,7 +14,7 @@ from werkzeug import url_encode - try: - from flaskext.babel import gettext as _ - except ImportError: -- _ = lambda(s): s -+ _ = lambda s: s - - RECAPTCHA_API_SERVER = 'http://api.recaptcha.net/' - RECAPTCHA_SSL_API_SERVER = 'https://www.google.com/recaptcha/api/'