updating deps

This commit is contained in:
2026-01-14 16:59:53 +00:00
parent f7c698cd64
commit 08a3c74a31
12 changed files with 3114 additions and 3327 deletions

View File

@@ -7,12 +7,12 @@
!static !static
!manage.py !manage.py
!pyproject.toml !pyproject.toml
!uv.lock
!setup.cfg !setup.cfg
!entrypoint.sh !entrypoint.sh
!entrypoint-cron.sh !entrypoint-cron.sh
!requirements.txt
!package-lock.json !package-lock.json
!package.json !package.json
!frontend !frontend
/frontend/node_modules /frontend/node_modules
/frontend/dist /frontend/dist

View File

@@ -8,7 +8,3 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-yaml - id: check-yaml
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/python-poetry/poetry
rev: '1.8.2' # add version here
hooks:
- id: poetry-check

View File

@@ -1,6 +1,6 @@
[MAIN] [MAIN]
max-line-length=120 max-line-length=120
ignore-paths=.*/migrations ignore-paths=comic/migrations
load-plugins = pylint_django load-plugins = pylint_django
disable = missing-class-docstring,missing-function-docstring,abstract-method,missing-module-docstring,imported-auth-user,missing-docstring disable = missing-class-docstring,missing-function-docstring,abstract-method,missing-module-docstring,imported-auth-user,missing-docstring
good-names=pk good-names=pk

1
.python-version Normal file
View File

@@ -0,0 +1 @@
3.14

View File

@@ -1,5 +1,5 @@
FROM python:3.12-slim-bookworm FROM python:3.14-slim-trixie
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
ENV PYTHONFAULTHANDLER=1 \ ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \ PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1 \ PYTHONUNBUFFERED=1 \
@@ -14,23 +14,22 @@ RUN mkdir /static
WORKDIR /src WORKDIR /src
COPY . /src/
RUN echo "deb http://ftp.uk.debian.org/debian bookworm non-free non-free-firmware" > /etc/apt/sources.list.d/non-free.list
RUN echo "deb http://ftp.uk.debian.org/debian trixie non-free non-free-firmware" > /etc/apt/sources.list.d/non-free.list
RUN apt update \ RUN apt update \
&& apt install -y npm cron unrar libmariadb-dev libpq-dev pkg-config swig curl \ && apt install -y npm cron unrar libmariadb-dev libpq-dev pkg-config swig curl
&& curl -sSL https://install.python-poetry.org | python3 - \
&& poetry config virtualenvs.create false \ COPY . /src/
&& poetry install --no-dev \
&& cd frontend \ RUN uv sync --frozen --no-dev
RUN cd frontend \
&& npm install \ && npm install \
&& npm run build \ && npm run build \
&& apt remove -y npm software-properties-common pkg-config swig \ && rm -r node_modules
&& rm -r node_modules \
&& apt -y auto-remove \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN cat /src/cbreader/crontab >> /etc/cron.daily/cbreader RUN cat /src/cbreader/crontab >> /etc/cron.daily/cbreader

View File

@@ -1,4 +1,3 @@
poetry export --without-hashes -f requirements.txt --output requirements.txt $version=uv version --short
$version=poetry version -s
docker build . -t ajurna/cbwebreader -t ajurna/cbwebreader:$version docker build . -t ajurna/cbwebreader -t ajurna/cbwebreader:$version
docker push ajurna/cbwebreader --all-tags docker push ajurna/cbwebreader --all-tags

View File

@@ -13,8 +13,8 @@ services:
expose: expose:
- 8000 - 8000
volumes: volumes:
- ${COMIC_BOOK_VOLUME}:/comics # - ${COMIC_BOOK_VOLUME}:/comics
# - c:/comics:/comics - c:/comics:/comics
- static_files:/static - static_files:/static
- media_files:/media - media_files:/media
- .env:/src/.env - .env:/src/.env

View File

@@ -1,5 +1,5 @@
python manage.py migrate --settings=cbreader.settings.base uv run python manage.py migrate --settings=cbreader.settings.base
python manage.py collectstatic --settings=cbreader.settings.base --noinput --clear uv run python manage.py collectstatic --settings=cbreader.settings.base --noinput --clear
gunicorn --workers 3 --bind 0.0.0.0:8000 cbreader.wsgi:application uv run gunicorn --workers 3 --bind 0.0.0.0:8000 cbreader.wsgi:application

File diff suppressed because it is too large Load Diff

1826
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,56 +1,51 @@
[tool.black] [project]
line_length = 119
[tool.poetry]
name = "cbwebreader" name = "cbwebreader"
version = "1.1.9" version = "1.1.11"
description = "CBR/Z Web Reader" description = "CBR/Z Web Reader"
readme = "README.md"
requires-python = ">=3.14"
authors = ["ajurna <ajurna@gmail.com>"] authors = ["ajurna <ajurna@gmail.com>"]
license = "Creative Commons Attribution-ShareAlike 4.0 International License" license = "Creative Commons Attribution-ShareAlike 4.0 International License"
package-mode = false
[tool.poetry.dependencies] dependencies = [
python = "^3.12" "dj-database-url>=3.1.0",
Django = "5.0.4" "django>=6.0.1",
gunicorn = "^22.0.0" "django-boost>=2.1",
dj-database-url = "^2.1.0" "django-bootstrap4>=26.1",
python-dotenv = "^1.0.1" "django-cors-headers>=4.9.0",
loguru = "^0.7.2" "django-csp>=4.0",
django-silk = "^5.1.0" "django-extensions>=4.1",
mysqlclient = "^2.2.4" "django-filter>=25.2",
psycopg2-binary = "^2.9.9" "django-imagekit>=6.0.0",
rarfile = "4.2" "django-permissions-policy>=4.28.0",
django-extensions = "3.2.3" "django-silk>=5.4.3",
Pillow = "10.3.0" "django-sri>=0.8.0",
django-imagekit = "5.0.0" "django-webpack-loader>=3.2.3",
PyMuPDF = "1.24.2" "djangorestframework>=3.16.1",
django-bootstrap4 = "24.3" "djangorestframework-simplejwt>=5.5.1",
django-csp = "3.8" "drf-extensions>=0.7.1",
django-boost = "2.1" "drf-yasg>=1.21.11",
django-sri = "0.7.0" "gunicorn>=23.0.0",
django-permissions-policy = "4.19.0" "loguru>=0.7.3",
djangorestframework = "3.15.1" "mysqlclient>=2.2.7",
django-filter = "24.2" "pillow>=12.1.0",
django-cors-headers = "4.3.1" "psycopg2-binary>=2.9.11",
djangorestframework-simplejwt = "5.3.1" "pymupdf>=1.26.7",
django-webpack-loader = "3.1.0" "python-dotenv>=1.2.1",
drf-yasg = "1.21.7" "rarfile>=4.2",
drf-extensions = "0.7.1" "setuptools>=80.9.0",
]
[tool.poetry.dev-dependencies] [dependency-groups]
mypy = "1.10.0" dev = [
Werkzeug = "3.0.2" "coverage>=7.13.1",
pyOpenSSL = "24.1.0" "flake8>=7.3.0",
ipython = "8.24.0" "flake8-annotations>=3.2.0",
coverage = "7.5.0" "ipython>=9.9.0",
pre-commit = "3.7.0" "mypy>=1.19.1",
flake8 = "7.0.0" "pre-commit>=4.5.1",
flake8-annotations = "3.0.1" "pylint>=4.0.4",
"pylint-django>=2.7.0",
[tool.poetry.group.dev.dependencies] "pyopenssl>=25.3.0",
pylint = "3.1.0" "werkzeug>=3.1.5",
pylint-django = "2.5.5" ]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

1297
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff