Bug 271476 - www/py-flask-wtf: update to 1.1.1
Summary: www/py-flask-wtf: update to 1.1.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-17 22:03 UTC by Remko Catersels
Modified: 2023-06-01 18:39 UTC (History)
0 users

See Also:
rm: maintainer-feedback+


Attachments
Git diff py-flask-wtf update to 1.1.1 (1.25 KB, text/plain)
2023-05-17 22:03 UTC, Remko Catersels
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Remko Catersels 2023-05-17 22:03:36 UTC
Created attachment 242239 [details]
Git diff py-flask-wtf update to 1.1.1

Flask version 2.3.0 removed JSONEncoder which this version of Flask-WTF still used. Was fixed some time ago: https://github.com/wtforms/flask-wtf/pull/536

It causes puppetboard to fail:

App 55001 output:   File "/usr/local/lib/python3.9/site-packages/flask_wtf/recaptcha/widgets.py", line 4, in <module>
App 55001 output:     JSONEncoder = json.JSONEncoder
App 55001 output:
App 55001 output: AttributeError
App 55001 output: : module 'flask.json' has no attribute 'JSONEncoder'

Attached patch updates the port to 1.1.1. Changelog on readthedocs only appears to have a changelog up to 1.0.1. 

https://flask-wtf.readthedocs.io/en/1.0.x/changes/
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-06-01 18:37:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=af0144572b90072e482fc087bc1317b2e9ab0307

commit af0144572b90072e482fc087bc1317b2e9ab0307
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2023-06-01 18:33:38 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2023-06-01 18:33:38 +0000

    www/py-flask-wtf: update to 1.1.1

    This update fixes runtime with decent flask.
    Switch to pep517 packaging while here.

    PR:             271476
    Reported by:    sirdice@gmail.com

 www/py-flask-wtf/Makefile | 11 +++++++----
 www/py-flask-wtf/distinfo |  6 +++---
 2 files changed, 10 insertions(+), 7 deletions(-)
Comment 2 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2023-06-01 18:39:00 UTC
Committed, thanks a lot!