From 135ed4fd7ad66df71ba5672011c233e2ab5cfe03 Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Fri, 28 Mar 2025 20:26:23 +0500 Subject: [PATCH] restructure --- Dockerfile | 5 ++--- {pomodoro_bot => src/pomodoro_bot}/__init__.py | 0 {pomodoro_bot => src/pomodoro_bot}/bot.py | 0 {pomodoro_bot => src/pomodoro_bot}/main.py | 0 {pomodoro_bot => src/pomodoro_bot}/models.py | 0 {pomodoro_bot => src/pomodoro_bot}/redis_client.py | 0 {pomodoro_bot => src/pomodoro_bot}/time_magager.py | 0 {pomodoro_bot => src/pomodoro_bot}/user_manager.py | 0 8 files changed, 2 insertions(+), 3 deletions(-) rename {pomodoro_bot => src/pomodoro_bot}/__init__.py (100%) rename {pomodoro_bot => src/pomodoro_bot}/bot.py (100%) rename {pomodoro_bot => src/pomodoro_bot}/main.py (100%) rename {pomodoro_bot => src/pomodoro_bot}/models.py (100%) rename {pomodoro_bot => src/pomodoro_bot}/redis_client.py (100%) rename {pomodoro_bot => src/pomodoro_bot}/time_magager.py (100%) rename {pomodoro_bot => src/pomodoro_bot}/user_manager.py (100%) diff --git a/Dockerfile b/Dockerfile index a784672..95d7ab5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,10 @@ FROM python:3.11-slim WORKDIR /app -COPY ./pomodoro_bot ./pomodoro_bot -COPY requirements.txt ./ +COPY ./src /app ENV PYTHONPATH=/app RUN pip install --no-cache-dir -r requirements.txt -CMD ["python", "-m", "pomodoro_bot.main"] \ No newline at end of file +CMD ["python", "-m", "pomodoro_bot.main"] diff --git a/pomodoro_bot/__init__.py b/src/pomodoro_bot/__init__.py similarity index 100% rename from pomodoro_bot/__init__.py rename to src/pomodoro_bot/__init__.py diff --git a/pomodoro_bot/bot.py b/src/pomodoro_bot/bot.py similarity index 100% rename from pomodoro_bot/bot.py rename to src/pomodoro_bot/bot.py diff --git a/pomodoro_bot/main.py b/src/pomodoro_bot/main.py similarity index 100% rename from pomodoro_bot/main.py rename to src/pomodoro_bot/main.py diff --git a/pomodoro_bot/models.py b/src/pomodoro_bot/models.py similarity index 100% rename from pomodoro_bot/models.py rename to src/pomodoro_bot/models.py diff --git a/pomodoro_bot/redis_client.py b/src/pomodoro_bot/redis_client.py similarity index 100% rename from pomodoro_bot/redis_client.py rename to src/pomodoro_bot/redis_client.py diff --git a/pomodoro_bot/time_magager.py b/src/pomodoro_bot/time_magager.py similarity index 100% rename from pomodoro_bot/time_magager.py rename to src/pomodoro_bot/time_magager.py diff --git a/pomodoro_bot/user_manager.py b/src/pomodoro_bot/user_manager.py similarity index 100% rename from pomodoro_bot/user_manager.py rename to src/pomodoro_bot/user_manager.py