diff --git a/setup.cfg b/setup.cfg index b2a08ed..8184d65 100644 --- a/setup.cfg +++ b/setup.cfg @@ -55,6 +55,7 @@ install_requires = httpx itsdangerous pydantic-settings + python-dotenv # Temporarily, using teuthology without monkey patching the thread teuthology @ git+https://github.com/ceph/teuthology@teuth-api#egg=teuthology[test]" # Original: git+https://github.com/ceph/teuthology#egg=teuthology[test] diff --git a/src/teuthology_api/config.py b/src/teuthology_api/config.py index 4d0a70c..09f29e9 100644 --- a/src/teuthology_api/config.py +++ b/src/teuthology_api/config.py @@ -1,6 +1,7 @@ from functools import lru_cache from pydantic_settings import BaseSettings, SettingsConfigDict - +from dotenv import load_dotenv +load_dotenv() class APISettings(BaseSettings): """