Skip to content

Commit

Permalink
setup.py: unrestrict flask version
Browse files Browse the repository at this point in the history
This does not need to be pinned
after removing the before_first_request
decorator.

The Werkzeug restriction was only added
for the pinned flask, so remove that too.
Werkzeug 3 has removed the safe_conversion
parameter of iri_to_uri, so remove that
from _stac_legacy.py.
  • Loading branch information
pjonsson authored and omad committed Dec 10, 2023
1 parent e8e6704 commit 5d83bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cubedash/_stac_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def legacy_redirect(location):
Used for backwards compatibility with older URLs that may be bookmarked or stored.
"""
if isinstance(location, str):
location = iri_to_uri(location, safe_conversion=True)
location = iri_to_uri(location)
response = Response(
json.dumps(
{
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"datacube>=1.8.10",
"eodatasets3>=0.25.0",
"fiona",
"flask==2.2.5",
"flask",
"Flask-Caching",
"flask-cors",
"flask-themer>=1.4.3",
Expand All @@ -93,7 +93,6 @@
"sqlalchemy>=1.4",
"structlog>=20.2.0",
"pytz",
"werkzeug<3",
],
tests_require=tests_require,
extras_require=extras_require,
Expand Down

0 comments on commit 5d83bd2

Please sign in to comment.