chore(core): Remove python-dotenv

This commit is contained in:
Fangyin Cheng
2025-05-23 11:21:12 +08:00
parent 3dd53e8ffb
commit 946c4aa8f9
3 changed files with 488 additions and 375 deletions

View File

@@ -15,7 +15,6 @@ dependencies = [
"aiohttp==3.8.4",
"chardet==5.1.0",
"importlib-resources==5.12.0",
"python-dotenv==1.0.0",
"cachetools",
"pydantic>=2.6.0",
# For AWEL type checking

View File

@@ -4,18 +4,12 @@ import os
import random
import sys
from dotenv import load_dotenv
if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
print("Setting random seed to 42")
random.seed(42)
# Load the users .env file into environment variables
# load_dotenv(verbose=True, override=True)
ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# load_dotenv(os.path.join(ROOT_PATH, ".plugin_env"))
del load_dotenv
TAG_KEY_KNOWLEDGE_FACTORY_DOMAIN_TYPE = "knowledge_factory_domain_type"
TAG_KEY_KNOWLEDGE_CHAT_DOMAIN_TYPE = "knowledge_chat_domain_type"

856
uv.lock generated

File diff suppressed because one or more lines are too long