mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-02-02 06:15:57 +00:00
updating deps
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
!static
|
||||
!manage.py
|
||||
!pyproject.toml
|
||||
!uv.lock
|
||||
!setup.cfg
|
||||
!entrypoint.sh
|
||||
!entrypoint-cron.sh
|
||||
!requirements.txt
|
||||
!package-lock.json
|
||||
!package.json
|
||||
!frontend
|
||||
|
||||
@@ -8,7 +8,3 @@ repos:
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/python-poetry/poetry
|
||||
rev: '1.8.2' # add version here
|
||||
hooks:
|
||||
- id: poetry-check
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[MAIN]
|
||||
max-line-length=120
|
||||
ignore-paths=.*/migrations
|
||||
ignore-paths=comic/migrations
|
||||
load-plugins = pylint_django
|
||||
disable = missing-class-docstring,missing-function-docstring,abstract-method,missing-module-docstring,imported-auth-user,missing-docstring
|
||||
good-names=pk
|
||||
|
||||
1
.python-version
Normal file
1
.python-version
Normal file
@@ -0,0 +1 @@
|
||||
3.14
|
||||
27
Dockerfile
27
Dockerfile
@@ -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 \
|
||||
PYTHONHASHSEED=random \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
@@ -14,23 +14,22 @@ RUN mkdir /static
|
||||
|
||||
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 \
|
||||
&& 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 \
|
||||
&& poetry install --no-dev \
|
||||
&& cd frontend \
|
||||
&& apt install -y npm cron unrar libmariadb-dev libpq-dev pkg-config swig curl
|
||||
|
||||
COPY . /src/
|
||||
|
||||
RUN uv sync --frozen --no-dev
|
||||
|
||||
RUN cd frontend \
|
||||
&& npm install \
|
||||
&& npm run build \
|
||||
&& apt remove -y npm software-properties-common pkg-config swig \
|
||||
&& rm -r node_modules \
|
||||
&& apt -y auto-remove \
|
||||
&& apt clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& rm -r node_modules
|
||||
|
||||
|
||||
RUN cat /src/cbreader/crontab >> /etc/cron.daily/cbreader
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
poetry export --without-hashes -f requirements.txt --output requirements.txt
|
||||
$version=poetry version -s
|
||||
$version=uv version --short
|
||||
docker build . -t ajurna/cbwebreader -t ajurna/cbwebreader:$version
|
||||
docker push ajurna/cbwebreader --all-tags
|
||||
|
||||
@@ -13,8 +13,8 @@ services:
|
||||
expose:
|
||||
- 8000
|
||||
volumes:
|
||||
- ${COMIC_BOOK_VOLUME}:/comics
|
||||
# - c:/comics:/comics
|
||||
# - ${COMIC_BOOK_VOLUME}:/comics
|
||||
- c:/comics:/comics
|
||||
- static_files:/static
|
||||
- media_files:/media
|
||||
- .env:/src/.env
|
||||
|
||||
@@ -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
|
||||
|
||||
3172
frontend/package-lock.json
generated
3172
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
1826
poetry.lock
generated
1826
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,56 +1,51 @@
|
||||
[tool.black]
|
||||
line_length = 119
|
||||
|
||||
[tool.poetry]
|
||||
[project]
|
||||
name = "cbwebreader"
|
||||
version = "1.1.9"
|
||||
version = "1.1.11"
|
||||
description = "CBR/Z Web Reader"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.14"
|
||||
authors = ["ajurna <ajurna@gmail.com>"]
|
||||
license = "Creative Commons Attribution-ShareAlike 4.0 International License"
|
||||
package-mode = false
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.12"
|
||||
Django = "5.0.4"
|
||||
gunicorn = "^22.0.0"
|
||||
dj-database-url = "^2.1.0"
|
||||
python-dotenv = "^1.0.1"
|
||||
loguru = "^0.7.2"
|
||||
django-silk = "^5.1.0"
|
||||
mysqlclient = "^2.2.4"
|
||||
psycopg2-binary = "^2.9.9"
|
||||
rarfile = "4.2"
|
||||
django-extensions = "3.2.3"
|
||||
Pillow = "10.3.0"
|
||||
django-imagekit = "5.0.0"
|
||||
PyMuPDF = "1.24.2"
|
||||
django-bootstrap4 = "24.3"
|
||||
django-csp = "3.8"
|
||||
django-boost = "2.1"
|
||||
django-sri = "0.7.0"
|
||||
django-permissions-policy = "4.19.0"
|
||||
djangorestframework = "3.15.1"
|
||||
django-filter = "24.2"
|
||||
django-cors-headers = "4.3.1"
|
||||
djangorestframework-simplejwt = "5.3.1"
|
||||
django-webpack-loader = "3.1.0"
|
||||
drf-yasg = "1.21.7"
|
||||
drf-extensions = "0.7.1"
|
||||
dependencies = [
|
||||
"dj-database-url>=3.1.0",
|
||||
"django>=6.0.1",
|
||||
"django-boost>=2.1",
|
||||
"django-bootstrap4>=26.1",
|
||||
"django-cors-headers>=4.9.0",
|
||||
"django-csp>=4.0",
|
||||
"django-extensions>=4.1",
|
||||
"django-filter>=25.2",
|
||||
"django-imagekit>=6.0.0",
|
||||
"django-permissions-policy>=4.28.0",
|
||||
"django-silk>=5.4.3",
|
||||
"django-sri>=0.8.0",
|
||||
"django-webpack-loader>=3.2.3",
|
||||
"djangorestframework>=3.16.1",
|
||||
"djangorestframework-simplejwt>=5.5.1",
|
||||
"drf-extensions>=0.7.1",
|
||||
"drf-yasg>=1.21.11",
|
||||
"gunicorn>=23.0.0",
|
||||
"loguru>=0.7.3",
|
||||
"mysqlclient>=2.2.7",
|
||||
"pillow>=12.1.0",
|
||||
"psycopg2-binary>=2.9.11",
|
||||
"pymupdf>=1.26.7",
|
||||
"python-dotenv>=1.2.1",
|
||||
"rarfile>=4.2",
|
||||
"setuptools>=80.9.0",
|
||||
]
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
mypy = "1.10.0"
|
||||
Werkzeug = "3.0.2"
|
||||
pyOpenSSL = "24.1.0"
|
||||
ipython = "8.24.0"
|
||||
coverage = "7.5.0"
|
||||
pre-commit = "3.7.0"
|
||||
flake8 = "7.0.0"
|
||||
flake8-annotations = "3.0.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pylint = "3.1.0"
|
||||
pylint-django = "2.5.5"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"coverage>=7.13.1",
|
||||
"flake8>=7.3.0",
|
||||
"flake8-annotations>=3.2.0",
|
||||
"ipython>=9.9.0",
|
||||
"mypy>=1.19.1",
|
||||
"pre-commit>=4.5.1",
|
||||
"pylint>=4.0.4",
|
||||
"pylint-django>=2.7.0",
|
||||
"pyopenssl>=25.3.0",
|
||||
"werkzeug>=3.1.5",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user