Add pydantic-settings package to requirements.txt

This commit is contained in:
Automated Action 2025-05-13 23:29:26 +00:00
parent a9c71e9245
commit 5a8adf1d9c
4 changed files with 10 additions and 1 deletions

1
__init__.py Normal file
View File

@ -0,0 +1 @@
# Make this directory a Python package to help with imports

View File

@ -11,6 +11,7 @@ from alembic import context
# Add the project root directory to Python's path
BASE_DIR = Path(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(str(BASE_DIR))
sys.path.insert(0, str(BASE_DIR)) # Make sure the project root is first in path
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.

View File

@ -1,7 +1,13 @@
import sys
import os
from pathlib import Path
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
import uvicorn
from pathlib import Path
# Add the project root to the Python path
BASE_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, str(BASE_DIR))
from app.api.routes import router as api_router
from app.core.config import settings

View File

@ -1,6 +1,7 @@
fastapi>=0.95.0
uvicorn>=0.22.0
pydantic>=2.0.0
pydantic-settings>=2.0.0
sqlalchemy>=2.0.0
alembic>=1.11.0
python-dotenv>=1.0.0