summaryrefslogtreecommitdiff
path: root/www/py-flask
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-flask')
-rw-r--r--www/py-flask/Makefile24
-rw-r--r--www/py-flask/distinfo6
2 files changed, 18 insertions, 12 deletions
diff --git a/www/py-flask/Makefile b/www/py-flask/Makefile
index b7c137b698ff..4e3fee0e633d 100644
--- a/www/py-flask/Makefile
+++ b/www/py-flask/Makefile
@@ -1,5 +1,6 @@
PORTNAME= flask
-DISTVERSION= 3.1.1
+DISTVERSION= 3.1.2
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,19 +20,24 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}werkzeug>=3.1:www/py-werkzeug@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}blinker>=1.9:devel/py-blinker@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
-USES= cpe python
+USES= cpe python:3.10+
CPE_VENDOR= palletsprojects
USE_PYTHON= pep517 concurrent autoplist
NO_ARCH= yes
-do-test:
- @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
+OPTIONS_DEFINE= ASYNC DOTENV
+OPTIONS_DEFAULT=ASYNC DOTENV
+
+ASYNC_DESC= Enable async
+ASYNC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asgiref>=3.2:www/py-asgiref@${PY_FLAVOR}
-.include <bsd.port.pre.mk>
+DOTENV_DESC= Enable dotenv
+DOTENV_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-dotenv>=0:www/py-python-dotenv@${PY_FLAVOR}
-.if ${PYTHON_REL} < 31000
-RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6.0:devel/py-importlib-metadata@${PY_FLAVOR}
-.endif
+.include <bsd.port.options.mk>
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/py-flask/distinfo b/www/py-flask/distinfo
index dd7789fa3a5b..8caaf5eb9819 100644
--- a/www/py-flask/distinfo
+++ b/www/py-flask/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1747179697
-SHA256 (flask-3.1.1.tar.gz) = 284c7b8f2f58cb737f0cf1c30fd7eaf0ccfcde196099d24ecede3fc2005aa59e
-SIZE (flask-3.1.1.tar.gz) = 753440
+TIMESTAMP = 1755740139
+SHA256 (flask-3.1.2.tar.gz) = bf656c15c80190ed628ad08cdfd3aaa35beb087855e2f494910aa3774cc4fd87
+SIZE (flask-3.1.2.tar.gz) = 720160