build(poetry): update python dependencies

This commit is contained in:
2026-07-01 20:53:01 +03:00
parent 081aa8d17f
commit 0730b9f567
5 changed files with 1872 additions and 1003 deletions

View File

@@ -2,6 +2,7 @@ DOCKER_REPO=git.shmyga.ru
DOCKER_GROUP=infernalgames
DOCKER_ROOT="$DOCKER_REPO/$DOCKER_GROUP"
VERSION=$(grep -m 1 'version' ./pyproject.toml | grep -oP 'version\s*=\s*"\K[^"]+')
PYTHON_VERSION=$(grep -m 1 'python' ./pyproject.toml | grep -oP 'python\s*=\s*"\^?\K[^"]+')
DOCKER_PROJECTS=("gallery")
OPENWEATHER_KEY="<EMPTY>"

View File

@@ -1,4 +1,4 @@
FROM python:3.12 AS builder
FROM python:3.14 AS builder
ENV POETRY_HOME="/opt/poetry"
ENV PATH="$POETRY_HOME/bin:$PATH"
RUN apt update && \
@@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/root/.npm \
COPY static ./
RUN npm run build
FROM python:3.12-slim
FROM python:3.14-slim
ENV PATH="/app/.venv/bin:$PATH"
WORKDIR /app

2837
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,26 +7,26 @@ readme = "README.md"
packages = [{ include = "gallery" }]
[tool.poetry.dependencies]
python = "^3.12"
aiohttp = "^3.9.5"
beautifulsoup4 = "^4.12.3"
dateparser = "^1.2.0"
pydantic = "^2.8.2"
aiocache = { extras = ["redis"], version = "^0.12.2" }
python = "^3.14"
aiohttp = "^3.14"
beautifulsoup4 = "^4.15"
dateparser = "^1.4"
pydantic = "^2.13"
aiocache = { extras = ["redis"], version = "^0.12" }
[tool.poetry.group.app.dependencies]
fastapi = "^0.111.1"
jinja2 = "^3.1.4"
babel = "^2.18.0"
fastapi = {extras = ["standard"], version = "^0.139.0"}
jinja2 = "^3.1"
babel = "^2.18"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.1"
pytest-asyncio = "^0.23.8"
pytest = "^9.1"
pytest-asyncio = "^1.4"
[tool.poetry.group.dev.dependencies]
pylint = "^3.2.6"
black = "^24.4.2"
isort = "^5.13.2"
pylint = "^4.0"
black = "^26.5"
isort = "^8.0"
[build-system]
requires = ["poetry-core"]

View File

@@ -2,14 +2,17 @@
set -e
cd "$(dirname $(dirname "$0"))" || exit
# env
if [[ ! -f .env ]]; then
cp .env-base .env
fi
source .env
PYTHON_VERSION=3.12
# python
poetry env use ${PYTHON_VERSION}
poetry install
# static
cd static || exit
if [[ -f $HOME/.nvm/nvm.sh ]]; then