pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-flask-admin



Module Name:    pkgsrc
Committed By:   adam
Date:           Tue Dec  1 10:21:02 UTC 2026

Modified Files:
        pkgsrc/www/py-flask-admin: Makefile PLIST distinfo

Log Message:
py-flask-admin: updated to 2.2.1

2.2.1

Bugfixes:

BaseTimeBetweenFilter.validate() now returns False on invalid input instead of raising an exception.
Fix encoding for editing file in FileAdmin. Now it uses UTF-8 and accepts non-ASCII characters.
SQLAlchemy backend: conv_ARRAY now infers the array element's python_type and passes it through as the Select2TagsField coerce callable. Saving a Postgres ARRAY(Integer) / ARRAY(Float) column no 
longer fails with column "x" is of type integer[] but expression is of type text[]
Fix sorting arrow direction in admin list view. Now it reflects the current sorting state
MongoEngine fileadmin backend: downloading GridFS files now preserves their name and extension instead of saving them as file
MongoEngine backend: stop reading the deprecated GridOut.contentType property. File downloads and list/form widgets now resolve the MIME type via metadata["content_type"], the GridFS document 
directly (for legacy data), or filename-based guessing
MongoEngine backend: QueryAjaxModelLoader.format now handles unresolved DBRef values gracefully instead of crashing with AttributeError: 'DBRef' object has no attribute 'pk' (which surfaced as HTTP 
500 from the autocomplete endpoint when a ReferenceField target was deleted). Broken references are shown as (missing: <collection>/<id>) so users can clear them
Peewee backend: inline model forms now support form_extra_fields when the child form is autogenerated. Previously, inline forms ignored these fields because they bypassed get_form() and called 
model_form() directly.
SQLAlchemy backend: the Unique validator now resolves its session when it runs instead of capturing the session that was active when the form was scaffolded. With flask-sqlalchemy-lite, forms 
scaffolded inside a startup app_context() previously kept querying that context's Session, which was never committed, rolled back or closed, so one connection per process sat "idle in transaction" 
after the first save of a form with a unique column (and failed permanently with PendingRollbackError once the server dropped it). Both ModelView(Model, db) and the deprecated ModelView(Model, 
db.session) continue to work
Peewee backend: ModelView.get_one() now returns None when no record matches, instead of letting peewee's DoesNotExist propagate. Requesting the details, edit or delete view for an absent or malformed 
id no longer returns HTTP 500; it flashes "Record does not exist." and redirects, matching the other backends

Type hints:

Type hints added to all functions and methods (some still use typing.Any where full typing not yet available)
Updated InlineBaseFormAdmin.get_form() to return type[BaseForm] | None rather than T_MODEL_VIEW | None
Minor type hinting improvements for peewee backend
Admin(index_view=...) now accepts a BaseView instance rather than AdminIndexView, allowing e.g. FileAdmin


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 pkgsrc/www/py-flask-admin/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/www/py-flask-admin/PLIST
cvs rdiff -u -r1.32 -r1.33 pkgsrc/www/py-flask-admin/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-flask-admin/Makefile
diff -u pkgsrc/www/py-flask-admin/Makefile:1.34 pkgsrc/www/py-flask-admin/Makefile:1.35
--- pkgsrc/www/py-flask-admin/Makefile:1.34     Sun May 10 13:01:37 2026
+++ pkgsrc/www/py-flask-admin/Makefile  Tue Dec  1 10:21:02 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.34 2026/05/10 13:01:37 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2026/12/01 10:21:02 adam Exp $
 
-DISTNAME=      flask_admin-2.2.0
+DISTNAME=      flask_admin-2.2.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flask-admin/}
@@ -10,18 +10,18 @@ HOMEPAGE=   https://github.com/flask-admin
 COMMENT=       Simple and extensible administrative interface framework for Flask
 LICENSE=       modified-bsd
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
-DEPENDS+=      ${PYPKGPREFIX}-flask>=0.7:../../www/py-flask
-DEPENDS+=      ${PYPKGPREFIX}-wtforms-[0-9]*:../../www/py-wtforms
-TEST_DEPENDS+= ${PYPKGPREFIX}-arrow-[0-9]*:../../time/py-arrow
-TEST_DEPENDS+= ${PYPKGPREFIX}-boto3-[0-9]*:../../net/py-boto3
-# unpackaged
-#TEST_DEPENDS+=        ${PYPKGPREFIX}-citext-[0-9]*:../../time/py-citext
-TEST_DEPENDS+= ${PYPKGPREFIX}-flask-sqlalchemy-[0-9]*:../../www/py-flask-sqlalchemy
-TEST_DEPENDS+= ${PYPKGPREFIX}-sqlalchemy-utils-[0-9]*:../../databases/py-sqlalchemy-utils
-TEST_DEPENDS+= ${PYPKGPREFIX}-mongo-[0-9]*:../../databases/py-mongo
-TEST_DEPENDS+= ${PYPKGPREFIX}-peewee-[0-9]*:../../databases/py-peewee
-TEST_DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core>=0:../../devel/py-flit_core
+DEPENDS+=      ${PYPKGPREFIX}-flask>=2.0:../../www/py-flask
+DEPENDS+=      ${PYPKGPREFIX}-jinja2>=3.0:../../textproc/py-jinja2
+DEPENDS+=      ${PYPKGPREFIX}-markupsafe>=2.0:../../textproc/py-markupsafe
+DEPENDS+=      ${PYPKGPREFIX}-werkzeug>=2.0:../../www/py-werkzeug
+DEPENDS+=      ${PYPKGPREFIX}-wtforms>=2.3:../../www/py-wtforms
+TEST_DEPENDS+= ${PYPKGPREFIX}-arrow>=0:../../time/py-arrow
+TEST_DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4>=0:../../www/py-beautifulsoup4
+TEST_DEPENDS+= ${PYPKGPREFIX}-botocore>=1.35:../../net/py-botocore
+TEST_DEPENDS+= ${PYPKGPREFIX}-flask-sqlalchemy>=0:../../www/py-flask-sqlalchemy
+TEST_DEPENDS+= ${PYPKGPREFIX}-moto>=0:../../net/py-moto
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/www/py-flask-admin/PLIST
diff -u pkgsrc/www/py-flask-admin/PLIST:1.21 pkgsrc/www/py-flask-admin/PLIST:1.22
--- pkgsrc/www/py-flask-admin/PLIST:1.21        Sun May  3 14:40:41 2026
+++ pkgsrc/www/py-flask-admin/PLIST     Tue Dec  1 10:21:02 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.21 2026/05/03 14:40:41 wiz Exp $
+@comment $NetBSD: PLIST,v 1.22 2026/12/01 10:21:02 adam Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -118,6 +118,9 @@ ${PYSITELIB}/flask_admin/contrib/peeweem
 ${PYSITELIB}/flask_admin/contrib/pymongo/__init__.py
 ${PYSITELIB}/flask_admin/contrib/pymongo/__init__.pyc
 ${PYSITELIB}/flask_admin/contrib/pymongo/__init__.pyo
+${PYSITELIB}/flask_admin/contrib/pymongo/_types.py
+${PYSITELIB}/flask_admin/contrib/pymongo/_types.pyc
+${PYSITELIB}/flask_admin/contrib/pymongo/_types.pyo
 ${PYSITELIB}/flask_admin/contrib/pymongo/filters.py
 ${PYSITELIB}/flask_admin/contrib/pymongo/filters.pyc
 ${PYSITELIB}/flask_admin/contrib/pymongo/filters.pyo
@@ -1739,6 +1742,9 @@ ${PYSITELIB}/flask_admin/tests/mongoengi
 ${PYSITELIB}/flask_admin/tests/mongoengine/test_basic.py
 ${PYSITELIB}/flask_admin/tests/mongoengine/test_basic.pyc
 ${PYSITELIB}/flask_admin/tests/mongoengine/test_basic.pyo
+${PYSITELIB}/flask_admin/tests/mongoengine/test_helpers.py
+${PYSITELIB}/flask_admin/tests/mongoengine/test_helpers.pyc
+${PYSITELIB}/flask_admin/tests/mongoengine/test_helpers.pyo
 ${PYSITELIB}/flask_admin/tests/peeweemodel/__init__.py
 ${PYSITELIB}/flask_admin/tests/peeweemodel/__init__.pyc
 ${PYSITELIB}/flask_admin/tests/peeweemodel/__init__.pyo

Index: pkgsrc/www/py-flask-admin/distinfo
diff -u pkgsrc/www/py-flask-admin/distinfo:1.32 pkgsrc/www/py-flask-admin/distinfo:1.33
--- pkgsrc/www/py-flask-admin/distinfo:1.32     Mon Aug 10 07:50:48 2026
+++ pkgsrc/www/py-flask-admin/distinfo  Tue Dec  1 10:21:02 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.32 2026/08/10 07:50:48 wiz Exp $
+$NetBSD: distinfo,v 1.33 2026/12/01 10:21:02 adam Exp $
 
-BLAKE2s (flask_admin-2.2.0.tar.gz) = be21fe3a7b8e890cbbda5d6dcc1f9767b8aa332a3b39f4f31b5fa974a49215c3
-SHA512 (flask_admin-2.2.0.tar.gz) = 3cb8d03170e8ccaff6c6240c00ec55bd8e571d1b936b47ed1d6f57c2f7dcf026a326adc1bcde4f73e9e4cbb13a66c64d67124403a078ce05bd85d09e19c95c01
-Size (flask_admin-2.2.0.tar.gz) = 5145370 bytes
+BLAKE2s (flask_admin-2.2.1.tar.gz) = 875a387a577efbfdaef89f27f6faf55bfa40637d3c8c099029f7d29cadf71e83
+SHA512 (flask_admin-2.2.1.tar.gz) = 2066feefc0efe10d4d9fcdaf70a838094edf7d4a88425ac5e39e07e01802a615cb7c70cf41373e0f39e37e4ab880f229c25d905f6845ce8810e18bd67f0c5f17
+Size (flask_admin-2.2.1.tar.gz) = 5155446 bytes
 SHA1 (patch-pyproject.toml) = 15f5ff41f39781cd9d213b5ff526975c989ef5ff



Home | Main Index | Thread Index | Old Index