Skip to content

Commit

Permalink
chore: update connexion to 3.x
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed May 1, 2024
1 parent 6e0522c commit bef791c
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 83 deletions.
5 changes: 2 additions & 3 deletions asu/asu.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import getenv
from pathlib import Path

import connexion
from connexion import FlaskApp
from flask import Flask, render_template, send_from_directory
from pkg_resources import resource_filename
from prometheus_client import CollectorRegistry, make_wsgi_app
Expand All @@ -24,8 +24,7 @@ def create_app(test_config: dict = None) -> Flask:
Flask: The application
"""

cnxn = connexion.FlaskApp(__name__)
app = cnxn.app
app = FlaskApp(__name__)
app.config.from_mapping(
PUBLIC_PATH=getenv("PUBLIC_PATH", Path.cwd() / "public"),
REDIS_URL=getenv("REDIS_URL") or "redis://localhost:6379",
Expand Down
254 changes: 175 additions & 79 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PyNaCl = "^1.5.0"
redis = ">=4.5.1,<6.0.0"
requests = "^2.28.2"
rq = "^1.13.0"
connexion = {extras = ["swagger-ui"], version = "^2.14.2"}
connexion = {extras = ["swagger-ui"], version = ">=2.14.2,<4.0.0"}
prometheus-client = ">=0.13.1,<0.21.0"
gunicorn = ">=20.1,<23.0"
podman = ">=4.4.1,<6.0.0"
Expand Down

0 comments on commit bef791c

Please sign in to comment.