From 9a45b38813d8ba7b28d73617f122861676199531 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sat, 21 Sep 2024 05:38:10 +0800 Subject: [PATCH] remove dotenv from prod deps --- chii/config.py | 3 --- poetry.lock | 2 +- pyproject.toml | 1 - scripts/grpc_client.py | 3 --- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/chii/config.py b/chii/config.py index 2ba50b0..01cdd12 100644 --- a/chii/config.py +++ b/chii/config.py @@ -2,12 +2,9 @@ import uuid from typing import Optional -from dotenv import load_dotenv from pydantic import AnyHttpUrl from pydantic_settings import BaseSettings -load_dotenv() - class Settings(BaseSettings, validate_default=True): debug: bool = os.environ.get("DEBUG", False) # type: ignore diff --git a/poetry.lock b/poetry.lock index bc3c1a8..387c48d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1970,4 +1970,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "d5530f40d0d3a1a21c84dbd54de598e7376a73c0805f7d1c0d49bf492487b06c" +content-hash = "6d3cadbf9a1cbf416ccde5180395a7c75a1f434d63e9981231bd94cbf202696a" diff --git a/pyproject.toml b/pyproject.toml index c37e337..9cce93b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,6 @@ grpcio = "1.66.1" libphpserialize = "0.0.8" pymysql = "1.1.1" pydantic = "2.9.2" -python-dotenv = "1.0.1" etcd3-py = "0.1.6" aiohttp = "3.10.5" pydantic-settings = "2.5.2" diff --git a/scripts/grpc_client.py b/scripts/grpc_client.py index 72b6ead..8a05d4f 100644 --- a/scripts/grpc_client.py +++ b/scripts/grpc_client.py @@ -1,5 +1,3 @@ -import logging - import grpc from api.v1 import timeline_pb2_grpc @@ -41,5 +39,4 @@ def run() -> None: if __name__ == "__main__": - logging.basicConfig() run()