Skip to content

Commit

Permalink
setup: remove werkzeug pin
Browse files Browse the repository at this point in the history
* to be forward compatible with flask >= 3.0.0

* the url_join will be removed in werkzeug >= 3.0.0 and could be
  replaced by the urllib.parse.urljoin function

* the DeprecationWarning in werkzeug itself says to use
  urllib.parse.urljoin instead

* the upper pin is not more necessary with this change
  • Loading branch information
utnapischtim committed Sep 24, 2024
1 parent 28fef34 commit d14d648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion flask_iiif/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# This file is part of Flask-IIIF
# Copyright (C) 2014, 2015, 2016, 2017 CERN.
# Copyright (C) 2024 Graz University of Technology.
#
# Flask-IIIF is free software; you can redistribute it and/or modify
# it under the terms of the Revised BSD License; see LICENSE file for
Expand All @@ -27,9 +28,10 @@

from __future__ import absolute_import

from urllib.parse import urljoin as url_join

from flask import current_app
from six import string_types
from werkzeug.urls import url_join
from werkzeug.utils import cached_property, import_string

from . import config
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of Flask-IIIF
# Copyright (C) 2014 CERN.
# Copyright (C) 2022 Graz University of Technology.
# Copyright (C) 2022-2024 Graz University of Technology.
#
# Flask-IIIF is free software; you can redistribute it and/or modify
# it under the terms of the Revised BSD License; see LICENSE file for
Expand Down Expand Up @@ -36,10 +36,9 @@ install_requires =

[options.extras_require]
tests =
pytest-black>=0.3.0,<0.3.10
pytest-black-ng>=0.4.0
flask-testing>=0.6.0
pytest-invenio>=1.4.0
werkzeug<3.0
sphinx>=4.5
redis>=3.5

Expand Down

0 comments on commit d14d648

Please sign in to comment.