From d5e79375ae3abc13f6020ce55f1699bc65dff3a3 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 19 Aug 2024 15:38:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D1=8F=D0=B5=D1=82=20=D0=BC=D0=B8=D0=BD=D0=B8=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=83=D1=8E=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8E?= =?UTF-8?q?=20python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 5 +++++ src/altlinux/Dockerfile | 4 ++-- src/altlinux/pyproject.toml | 2 +- src/karkas_blocks/pyproject.toml | 2 +- src/karkas_core/pyproject.toml | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f277a5..9f672c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,6 +12,11 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files + - repo: https://github.com/netromdk/vermin + rev: v1.6.0 + hooks: + - id: vermin + args: ['-t=3.8-', '--violations'] - repo: https://github.com/PyCQA/isort rev: 5.13.2 # sync:isort:poetry.lock hooks: diff --git a/src/altlinux/Dockerfile b/src/altlinux/Dockerfile index 8a1f469..f79c76b 100644 --- a/src/altlinux/Dockerfile +++ b/src/altlinux/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-slim as builder +FROM python:3.8-slim as builder RUN pip install poetry RUN mkdir -p /app @@ -14,7 +14,7 @@ WORKDIR /app/src/altlinux RUN poetry lock && poetry install -FROM python:3.12-slim as base +FROM python:3.8-slim as base COPY --from=builder /app/src/altlinux /app diff --git a/src/altlinux/pyproject.toml b/src/altlinux/pyproject.toml index e63ca9e..76b1895 100644 --- a/src/altlinux/pyproject.toml +++ b/src/altlinux/pyproject.toml @@ -8,7 +8,7 @@ authors = [ readme = "README.md" [tool.poetry.dependencies] -python = "~3.12" +python = ">=3.8,<=3.12" karkas-core = { extras=["webhook"], path = "../karkas_core", develop = true } karkas-blocks = { path = "../karkas_blocks", develop = true } diff --git a/src/karkas_blocks/pyproject.toml b/src/karkas_blocks/pyproject.toml index 3fefa6a..a16d47d 100644 --- a/src/karkas_blocks/pyproject.toml +++ b/src/karkas_blocks/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Maxim Slipenko "] readme = "README.md" [tool.poetry.dependencies] -python = "~3.12" +python = ">=3.8,<=3.12" karkas-core = { path = "../karkas_core", develop = true } # peewee = "^3.17.6" diff --git a/src/karkas_core/pyproject.toml b/src/karkas_core/pyproject.toml index 26a6621..770dd20 100644 --- a/src/karkas_core/pyproject.toml +++ b/src/karkas_core/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Максим Слипенко "] readme = "README.md" [tool.poetry.dependencies] -python = "~3.12" +python = ">=3.8,<=3.12" aiogram = "^3.10.0" setuptools = "^71.0.1" restrictedpython = "^7.1"