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_GROUP=infernalgames
DOCKER_ROOT="$DOCKER_REPO/$DOCKER_GROUP" DOCKER_ROOT="$DOCKER_REPO/$DOCKER_GROUP"
VERSION=$(grep -m 1 'version' ./pyproject.toml | grep -oP 'version\s*=\s*"\K[^"]+') 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") DOCKER_PROJECTS=("gallery")
OPENWEATHER_KEY="<EMPTY>" 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 POETRY_HOME="/opt/poetry"
ENV PATH="$POETRY_HOME/bin:$PATH" ENV PATH="$POETRY_HOME/bin:$PATH"
RUN apt update && \ RUN apt update && \
@@ -22,7 +22,7 @@ RUN --mount=type=cache,target=/root/.npm \
COPY static ./ COPY static ./
RUN npm run build RUN npm run build
FROM python:3.12-slim FROM python:3.14-slim
ENV PATH="/app/.venv/bin:$PATH" ENV PATH="/app/.venv/bin:$PATH"
WORKDIR /app 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" }] packages = [{ include = "gallery" }]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.12" python = "^3.14"
aiohttp = "^3.9.5" aiohttp = "^3.14"
beautifulsoup4 = "^4.12.3" beautifulsoup4 = "^4.15"
dateparser = "^1.2.0" dateparser = "^1.4"
pydantic = "^2.8.2" pydantic = "^2.13"
aiocache = { extras = ["redis"], version = "^0.12.2" } aiocache = { extras = ["redis"], version = "^0.12" }
[tool.poetry.group.app.dependencies] [tool.poetry.group.app.dependencies]
fastapi = "^0.111.1" fastapi = {extras = ["standard"], version = "^0.139.0"}
jinja2 = "^3.1.4" jinja2 = "^3.1"
babel = "^2.18.0" babel = "^2.18"
[tool.poetry.group.test.dependencies] [tool.poetry.group.test.dependencies]
pytest = "^8.3.1" pytest = "^9.1"
pytest-asyncio = "^0.23.8" pytest-asyncio = "^1.4"
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
pylint = "^3.2.6" pylint = "^4.0"
black = "^24.4.2" black = "^26.5"
isort = "^5.13.2" isort = "^8.0"
[build-system] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]

View File

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