Skip to content

Commit

Permalink
Fix deprecated flask function (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelboulton committed May 14, 2023
1 parent a41570f commit 69585dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
9 changes: 3 additions & 6 deletions constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --all-extras --output-file=constraints.txt --resolver=backtracking --strip-extras pyproject.toml
Expand Down Expand Up @@ -78,7 +78,7 @@ filelock==3.8.2
# via
# tox
# virtualenv
flask==2.2.2
flask==2.2.5
# via tavern (pyproject.toml)
flit==3.8.0
# via tavern (pyproject.toml)
Expand All @@ -92,7 +92,6 @@ idna==3.4
# via requests
importlib-metadata==5.2.0
# via
# flask
# keyring
# twine
iniconfig==1.1.1
Expand Down Expand Up @@ -271,9 +270,7 @@ twine==4.0.2
types-pyyaml==6.0.12.2
# via tavern (pyproject.toml)
typing-extensions==4.4.0
# via
# black
# mypy
# via mypy
urllib3==1.26.13
# via
# docker
Expand Down
2 changes: 1 addition & 1 deletion example/mqtt/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def get_cached_db():
return db


@app.before_first_request
def setup_logging():
log_cfg = """
version: 1
Expand Down Expand Up @@ -208,5 +207,6 @@ def attempt(query):


if __name__ == "__main__":
setup_logging()
db = get_db()
_reset_db(db)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ dev = [
"bump2version",
"colorlog",
"docker-compose",
"flask",
"flask>=2.2.3",
"fluent-logger",
"itsdangerous",
"mypy",
Expand Down
13 changes: 5 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --all-extras --generate-hashes --output-file=requirements.txt --resolver=backtracking pyproject.toml
Expand Down Expand Up @@ -304,9 +304,9 @@ filelock==3.8.2 \
# via
# tox
# virtualenv
flask==2.2.2 \
--hash=sha256:642c450d19c4ad482f96729bd2a8f6d32554aa1e231f4f6b4e7e5264b16cca2b \
--hash=sha256:b9c46cc36662a7949f34b52d8ec7bb59c0d74ba08ba6cb9ce9adc1d8676d9526
flask==2.2.5 \
--hash=sha256:58107ed83443e86067e41eff4631b058178191a355886f8e479e347fa1285fdf \
--hash=sha256:edee9b0a7ff26621bd5a8c10ff484ae28737a2410d99b0bb9a6850c7fb977aa0
# via tavern (pyproject.toml)
flit==3.8.0 \
--hash=sha256:5ee0f88fd1cfa4160d1a8fa01237e96d06d677ae0403a0bbabbb277cb37c5e9c \
Expand All @@ -332,7 +332,6 @@ importlib-metadata==5.2.0 \
--hash=sha256:0eafa39ba42bf225fc00e67f701d71f85aead9f878569caf13c3724f704b970f \
--hash=sha256:404d48d62bba0b7a77ff9d405efd91501bef2e67ff4ace0bed40a0cf28c3c7cd
# via
# flask
# keyring
# twine
iniconfig==1.1.1 \
Expand Down Expand Up @@ -860,9 +859,7 @@ types-pyyaml==6.0.12.2 \
typing-extensions==4.4.0 \
--hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \
--hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e
# via
# black
# mypy
# via mypy
urllib3==1.26.13 \
--hash=sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc \
--hash=sha256:c083dd0dce68dbfbe1129d5271cb90f9447dea7d52097c6e0126120c521ddea8
Expand Down

0 comments on commit 69585dd

Please sign in to comment.