Поправил конифг pyproject.toml - изменил установку пакета config_manager

This commit is contained in:
2025-11-02 13:03:38 +03:00
parent 22bdcafc59
commit b91d621efd
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
# Используем официальный образ Python # Используем официальный образ Python
FROM python:3.11-slim FROM python:3.12-slim
# Устанавливаем git для клонирования репозитория # Устанавливаем git для клонирования репозитория
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

View File

@@ -14,7 +14,7 @@ readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
dependencies = [ dependencies = [
"python-dotenv>=1.0.0", "python-dotenv>=1.0.0",
"git+https://git.lesha.spb.ru/alex/config_manager.git@master#egg=config_manager" "config_manager @ git+https://git.lesha.spb.ru/alex/config_manager.git@master"
] ]
[tool.setuptools.packages.find] [tool.setuptools.packages.find]

View File

@@ -15,7 +15,7 @@ if __name__ == "__main__":
imap_port=os.getenv('IMAP_PORT'), imap_port=os.getenv('IMAP_PORT'),
smtp_port=os.getenv('SMTP_PORT') smtp_port=os.getenv('SMTP_PORT')
) )
emails = email_client.get_emails(folder=self.config.email_dir, only_unseen=True, mark_as_read=True) emails = email_client.get_emails(folder='spareparts', only_unseen=True, mark_as_read=True)
for email in emails: for email in emails:
print(email.subj) print(email.subj)