Re: git: 3232af189573 - main - www/py-flask: Update to 3.0.0

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 27 Nov 2023 17:12:49 UTC
Jan Beich <jbeich@FreeBSD.org> writes:

> [00:00:23] Warning: www/flexget dependency on www/py-flask@py39 has wrong PKGNAME of 'py39-Flask' but should be 'py39-flask'; Is the dependency missing a @FLAVOR?
> [00:00:24] Warning: www/py-flask-compress dependency on www/py-flask@py39 has wrong PKGNAME of 'py39-Flask' but should be 'py39-flask'; Is the dependency missing a @FLAVOR?
> [00:00:24] Warning: www/py-flask-login dependency on www/py-flask@py39 has wrong PKGNAME of 'py39-Flask' but should be 'py39-flask'; Is the dependency missing a @FLAVOR?
> [00:00:24] Warning: www/py-flask-restx dependency on www/py-flask@py39 has wrong PKGNAME of 'py39-Flask' but should be 'py39-flask'; Is the dependency missing a @FLAVOR?
> [00:00:24] Warning: www/py-flask-cors dependency on www/py-flask@py39 has wrong PKGNAME of 'py39-Flask' but should be 'py39-flask'; Is the dependency missing a @FLAVOR?

Adjusting *_DEPENDS is trivial but may not be correct.

$ git grep -lF :www/py-flask | xargs sed -i '' '/py-flask@/s/Flask/flask/'
$ git diff
[...]
-               ${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \
+               ${PYTHON_PKGNAMEPREFIX}flask>0:www/py-flask@${PY_FLAVOR} \
[...]

See also
https://wiki.freebsd.org/Python/PortsPolicy#PORTNAME
https://pypi.org/project/Flask/ (still capitalized)

>>>> import flask_restx
>>>> import flask_login

Fixed in 0335abf42682 and c50a6746b601. Also compatible with the old
py-flask and py-werkzeug.