python-dotenv is optional testing dependency. We do not have it packaged yet for Python 3.14 so do not depend on it and force to not use it even it is available. TODO: Remove this patch once python-dotenv is packaged for Python 3.14. --- flask-3.1.3/pyproject.toml.orig +++ flask-3.1.3/pyproject.toml @@ -60,7 +60,6 @@ "asgiref", "greenlet", "pytest", - "python-dotenv", ] typing = [ "asgiref", --- flask-3.1.3/tests/test_cli.py.orig +++ flask-3.1.3/tests/test_cli.py @@ -518,12 +518,7 @@ def dotenv_not_available(): - try: - import dotenv # noqa: F401 - except ImportError: - return True - - return False + return True need_dotenv = pytest.mark.skipif(