diff --git a/airflow/www/extensions/init_views.py b/airflow/www/extensions/init_views.py index 65ad7808bb8e7..65c58d4542c12 100644 --- a/airflow/www/extensions/init_views.py +++ b/airflow/www/extensions/init_views.py @@ -17,6 +17,7 @@ from __future__ import annotations import logging +import os import warnings from functools import cached_property from pathlib import Path diff --git a/pyproject.toml b/pyproject.toml index 6a93367cff394..1036ec04e62b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,7 +83,7 @@ dependencies = [ # The usage was added in #30596, seemingly only to override and improve the default error message. # Either revert that change or find another way, preferably without using connexion internals. # This limit can be removed after https://github.com/apache/airflow/issues/35234 is fixed - "connexion[flask]>=2.10.0,<3.0", + "connexion[flask,uvicorn,swagger-ui]>=3.0", "cron-descriptor>=1.2.24", "croniter>=0.3.17", "cryptography>=0.9.3", @@ -139,6 +139,7 @@ dependencies = [ # The issue tracking it is https://github.com/apache/airflow/issues/28723 "sqlalchemy>=1.4.28,<2.0", "sqlalchemy-jsonfield>=1.0", + "starlette>=0.37.1", "tabulate>=0.7.5", "tenacity>=6.2.0,!=8.2.0", "termcolor>=1.1.0", diff --git a/tests/api_connexion/endpoints/test_dataset_endpoint.py b/tests/api_connexion/endpoints/test_dataset_endpoint.py index c0fe28ae9e312..3254c2ee4f558 100644 --- a/tests/api_connexion/endpoints/test_dataset_endpoint.py +++ b/tests/api_connexion/endpoints/test_dataset_endpoint.py @@ -74,7 +74,6 @@ def configured_app(minimal_app_for_api): delete_user(connexion_app.app, username="test_queued_event") # type: ignore - class TestDatasetEndpoint: default_time = "2020-06-11T18:00:00+00:00"