Simple integration of Flask and WTForms, including CSRF, file upload

and Recaptcha integration.

WWW: https://flask-wtf.readthedocs.org/en/latest/
This commit is contained in:
Ruslan Makhmatkhanov 2014-12-17 09:40:04 +00:00
parent ebeac598b2
commit c5fc7b300c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374837
4 changed files with 39 additions and 0 deletions

View file

@ -1536,6 +1536,7 @@
SUBDIR += py-flask-flatpages
SUBDIR += py-flask-sockets
SUBDIR += py-flask-uploads
SUBDIR += py-flask-wtf
SUBDIR += py-flexget
SUBDIR += py-flup
SUBDIR += py-formalchemy

32
www/py-flask-wtf/Makefile Normal file
View file

@ -0,0 +1,32 @@
# $FreeBSD$
PORTNAME= Flask-WTF
PORTVERSION= 0.10.3
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rm@FreeBSD.org
COMMENT= Simple integration of Flask and WTForms
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>0:${PORTSDIR}/www/py-flask \
${PYTHON_PKGNAMEPREFIX}werkzeug>0:${PORTSDIR}/www/py-werkzeug \
${PYTHON_PKGNAMEPREFIX}wtforms>0:${PORTSDIR}/textproc/py-wtforms
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
${PYTHON_PKGNAMEPREFIX}Flask-Babel>0:${PORTSDIR}/devel/py-flask-babel
OPTIONS_DEFINE= TESTS
TESTS_DESC= Install test suite dependencies
TESTS_BUILD_DEPENDS= ${RUN_DEPENDS} \
${TEST_DEPENDS}
USES= python
USE_PYTHON= autoplist distutils
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (Flask-WTF-0.10.3.tar.gz) = 40da66462df074c2a0fd209e6047972bc226125f6c484c8e367ea10e71ddd718
SIZE (Flask-WTF-0.10.3.tar.gz) = 247240

View file

@ -0,0 +1,4 @@
Simple integration of Flask and WTForms, including CSRF, file upload
and Recaptcha integration.
WWW: https://flask-wtf.readthedocs.org/en/latest/