sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
56 stars 32 forks source link

Updating Flask package dependencies #784

Closed havok2063 closed 2 years ago

havok2063 commented 2 years ago

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.