Skip to content

Commit

Permalink
Upgrade dependencies after v014 (#757)
Browse files Browse the repository at this point in the history
* first attempt, use Flask-Classful branch. New blocker is Flask-Login and forecasting/scheduling jobs are failing now

Signed-off-by: Nicolas Höning <[email protected]>

* fix: from cunla/fakeredis-py#204

Signed-off-by: F.N. Claessen <[email protected]>

* prevent sphinx warning

Signed-off-by: F.N. Claessen <[email protected]>

* black

Signed-off-by: F.N. Claessen <[email protected]>

* move to original rq-dashboard in .txt

Signed-off-by: Nicolas Höning <[email protected]>

* add comment

Signed-off-by: Nicolas Höning <[email protected]>

---------

Signed-off-by: Nicolas Höning <[email protected]>
Signed-off-by: F.N. Claessen <[email protected]>
Co-authored-by: F.N. Claessen <[email protected]>
  • Loading branch information
nhoening and Flix6x authored Jul 7, 2023
1 parent 3772b08 commit 19a1e81
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 125 deletions.
2 changes: 1 addition & 1 deletion documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"https://docs.python.org/3/": None}
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}

# -- Options for copybytton extension ---------------------------------------
copybutton_prompt_is_regexp = True
Expand Down
4 changes: 3 additions & 1 deletion flexmeasures/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def create( # noqa C901
if app.testing:
from fakeredis import FakeStrictRedis

redis_conn = FakeStrictRedis()
redis_conn = FakeStrictRedis(
host="redis", port="1234"
) # dummy connection details
else:
redis_conn = Redis(
app.config["FLEXMEASURES_REDIS_URL"],
Expand Down
2 changes: 1 addition & 1 deletion flexmeasures/data/services/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from flask_security.recoverable import update_password
from email_validator import (
validate_email,
validate_email_deliverability,
EmailNotValidError,
EmailUndeliverableError,
)
from email_validator.deliverability import validate_email_deliverability
from flask_security.utils import hash_password
from werkzeug.exceptions import NotFound

Expand Down
25 changes: 17 additions & 8 deletions requirements/app.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ iso8601
xlrd
workalendar
inflection
inflect
# <6.0.2 and pydantic due to https://github.com/jaraco/inflect/issues/187
inflect<=6.0.2
pydantic<2
humanize
psycopg2-binary
bcrypt
Expand All @@ -21,6 +23,7 @@ click
click-default-group
email_validator
rq
# rq-dashboard-compatible # use this if compatibility with Flask 2.3 is not done
rq-dashboard
# the following uses environment markers (see PEP 496)
rq-win; os_name == 'nt' or os_name == 'win'
Expand All @@ -37,15 +40,20 @@ importlib_metadata
# see GH#607 for issue on this pin
sqlalchemy>=1.4.0, <2
Flask-SSLify
# use <0.4 if not compatible with Flask2.2 yet
Flask_JSON
Flask-Migrate
Flask-WTF
Flask-Mail
Flask-Security-Too>=5.0
# This pin is tough to debug, but logging in (in API) stops working at 0.6.2. Maybe Flask 2.2 will help resolve this.
Flask-Login <= 0.6.1
Flask-Classful
Flask-Marshmallow
# <5.2: https://github.com/Parallels/rq-dashboard/issues/417 as 5.2 requires Flask 2.3
Flask-Security-Too>=5.0, <5.2
# This pin is tough to debug, but logging in (in API) stops working at 0.6.2.
# On repeated call to API with auth token, user is anonymous.
# See test_get_one_user or test_api_task_run_post_unauthorized_wrong_role for a good example
Flask-Login<0.6.2
Flask-Classful @ git+https://github.com/superseed/[email protected]
# <0.15: https://github.com/marshmallow-code/flask-marshmallow/issues/262
Flask-Marshmallow<0.15
Flask-Cors
sentry-sdk[flask]
marshmallow>=3
Expand All @@ -57,5 +65,6 @@ uniplot>=0.7.0
# Maximum constraints here due to Flask-Classful not supporting Werkzeug 2.2.0 yet, see GH#595 and https://github.com/teracyhq/flask-classful/pull/145
Flask-SQLAlchemy>=2.4.3,<3
# flask should be after all the flask plugins, because setup might find they ARE flask
flask>=1.0,<=2.1.2
werkzeug <2.1
# <2.3: https://github.com/Parallels/rq-dashboard/issues/417 and https://github.com/FlexMeasures/flexmeasures/issues/754 and flask-login 0.6.1 not compatible
flask>=1.0, <=2.1.2
werkzeug<=2.1
Loading

0 comments on commit 19a1e81

Please sign in to comment.