This PR updates the Flask package dependencies to Flask >2, Jinja2 > 3, werkzeug > 2.0, < 2.1. It removes the pip package Flask-JSGlue and replaces it with a manual module of version 0.3.1 with the fixed syntax using the markupsafe package. Flask-JSGlue does not appear to be regularly maintained right now.
It also fixes an issue with WTForms >3 where a String Field was no longer correctly rendering a url. Wrapping it in flask.Markup resolves the issue.
Pinning numpy to >1.20 and switching use of np.int and np.float to int and float to clear deprecation warnings. Switching use of distutils to packaging.version to clear deprecation warnings.
This PR updates the Flask package dependencies to
Flask >2
,Jinja2 > 3
,werkzeug > 2.0, < 2.1
. It removes the pip packageFlask-JSGlue
and replaces it with a manual module of version 0.3.1 with the fixed syntax using themarkupsafe
package.Flask-JSGlue
does not appear to be regularly maintained right now.It also fixes an issue with
WTForms >3
where a String Field was no longer correctly rendering a url. Wrapping it inflask.Markup
resolves the issue.Pinning numpy to >1.20 and switching use of
np.int
andnp.float
toint
andfloat
to clear deprecation warnings. Switching use ofdistutils
topackaging.version
to clear deprecation warnings.