fix setuptools issue for python3.12 (#67)

* fix setuptools issue for python3.12

* one test file fot tests and ci
This commit is contained in:
Dmitry Afanasyev
2023-12-17 15:20:02 +03:00
committed by GitHub
parent 4e7ddf07fd
commit 4117a2f467
9 changed files with 22 additions and 49 deletions

View File

@@ -1,23 +0,0 @@
STAGE="runtests"
# ==== start app settings ====
APP_HOST="0.0.0.0"
APP_PORT="8000"
DB_NAME="test_chatgpt.db"
# ==== telegram settings ====
TELEGRAM_API_TOKEN="123456789:AABBCCDDEEFFaabbccddeeff-1234567890"
# set to true to start with webhook. Else bot will start on polling method
START_WITH_WEBHOOK="false"
# ==== domain settings ====
DOMAIN="http://localhost"
URL_PREFIX=
CHAT_PREFIX="/chat"
# ==== gpt settings ====
GPT_BASE_HOST="http://localhost"
# ==== other settings ====
USER="web"

View File

@@ -20,10 +20,7 @@ DIR_LOGS.mkdir(exist_ok=True)
env_path = f"{BASE_DIR}/settings/.env"
if environ.get("STAGE") == "runtests":
if "LOCALTEST" in environ:
env_path = f"{BASE_DIR}/settings/.env.local.runtests"
else:
env_path = f"{BASE_DIR}/settings/.env.ci.runtests"
env_path = f"{BASE_DIR}/settings/.env.runtests"
load_dotenv(env_path, override=True)