Skip to content

Commit

Permalink
Merge ed7175b into af7f411
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoening committed Jul 1, 2023
2 parents af7f411 + ed7175b commit 9cb9d0f
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 129 deletions.
2 changes: 1 addition & 1 deletion flexmeasures/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create( # noqa C901
if app.testing:
from fakeredis import FakeStrictRedis

redis_conn = FakeStrictRedis()
redis_conn = FakeStrictRedis(host="redis", port="1234")
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/flask-classful@werkzeug-2.2
# <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 9cb9d0f

Please sign in to comment.