From a220afdb0b66f450e93ae25e857def8f34d5e766 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Thu, 6 Aug 2026 10:26:07 +0800 Subject: [PATCH] update: schedule add multi python --- extras/requirements-py310 | 9 ++++++++- extras/requirements-py312 | 8 +++++++- extras/requirements-py38 | 9 ++++++++- schedule/Dockerfile | 6 ++---- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/extras/requirements-py310 b/extras/requirements-py310 index c9c407e..fe84b78 100644 --- a/extras/requirements-py310 +++ b/extras/requirements-py310 @@ -1,2 +1,9 @@ # this is not system dependences -ipykernel \ No newline at end of file +ipykernel +nbclient +nbformat +ipykernel +httpx +apscheduler +pymysql +loguru \ No newline at end of file diff --git a/extras/requirements-py312 b/extras/requirements-py312 index 6b483c9..4cf8bc2 100644 --- a/extras/requirements-py312 +++ b/extras/requirements-py312 @@ -1,4 +1,10 @@ # this is not system dependences jupyter notebook -ipykernel \ No newline at end of file +nbclient +nbformat +ipykernel +httpx +apscheduler +pymysql +loguru \ No newline at end of file diff --git a/extras/requirements-py38 b/extras/requirements-py38 index c9c407e..fe84b78 100644 --- a/extras/requirements-py38 +++ b/extras/requirements-py38 @@ -1,2 +1,9 @@ # this is not system dependences -ipykernel \ No newline at end of file +ipykernel +nbclient +nbformat +ipykernel +httpx +apscheduler +pymysql +loguru \ No newline at end of file diff --git a/schedule/Dockerfile b/schedule/Dockerfile index cfeae40..20b3379 100644 --- a/schedule/Dockerfile +++ b/schedule/Dockerfile @@ -10,12 +10,10 @@ RUN uv venv --python 3.12 /opt/venv/python3.12 && \ UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.12/bin/python -r extras/requirements-py312 RUN uv venv --python 3.8 /opt/venv/python3.8 && \ - UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 && \ - /opt/venv/python3.8/bin/python -m ipykernel install --prefix=/opt/venv/python3.12 --name=python38 --display-name="python3.8" + UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 RUN uv venv --python 3.10 /opt/venv/python3.10 && \ - UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.10/bin/python -r extras/requirements-py310 && \ - /opt/venv/python3.10/bin/python -m ipykernel install --prefix=/opt/venv/python3.12 --name=python310 --display-name="python3.10" + UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.10/bin/python -r extras/requirements-py310 EXPOSE 8000 CMD ["uv", "run", "--frozen", "--package", "schedule", "gunicorn", "--config", "schedule/gunicorn.conf.py", "schedule.main:app"]