Skip to content

Commit 5a4ddf0

Browse files
bobokungithub-actions[bot]fabricionawebdependabot[bot]pre-commit-ci[bot]
authored
4.6.0 (#931)
# Requirements Updated - "humanize==4.13.0" - "ruff==0.12.11" # Breaking Changes - **DEPRECATE `QBT_CONFIG` / `--config-file` OPTION** - No longer supporting `QBT_CONFIG` / `--config-file`. Instead please switch over to **`QBT_CONFIG_DIR` / `--config-dir`**. - `QBT_CONFIG` / `--config-file` option will still work for now but is now considered legacy and will be removed in a future release. - **Note**: All yml/yaml files will be treated as valid configuration files and loaded in the `QBT_CONFIG_DIR` path. Please ensure you **remove** any old/unused configurations that you don't want to be loaded prior to using this path. # Improvements - Adds docker support for PUID/PGID environment variables - Dockerfile copies the latest `config.yml.sample` in the config folder - Add `QBT_HOST` / `--host` option to specify webUI host address (#929 Thanks to @QuixThe2nd) - WebUI: Quick action settings persist now # Bug Fixes - WebUI: Fix loading spinner to be centered in the webUI **Full Changelog**: v4.5.5...v4.6.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Fabricio Silva <hi@fabricio.dev> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Parsa Yazdani <parsa@yazdani.au> Co-authored-by: Actionbot <actions@github.com>
1 parent 1562917 commit 5a4ddf0

36 files changed

+892
-330
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Docker Develop Release
33
on:
44
push:
55
branches: [ develop ]
6+
workflow_dispatch:
67

78
concurrency:
89
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/update-develop-branch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,11 @@ jobs:
7474
fi
7575
7676
echo "Successfully updated develop branch to $NEW_VERSION"
77+
78+
- name: Trigger develop workflow
79+
if: success()
80+
run: |
81+
echo "Triggering develop workflow..."
82+
gh workflow run develop.yml --ref develop
83+
env:
84+
GH_TOKEN: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
exclude: ^.github/
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
3030
# Ruff version.
31-
rev: v0.12.9
31+
rev: v0.12.10
3232
hooks:
3333
# Run the linter.
3434
- id: ruff-check

CHANGELOG

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1+
# Requirements Updated
2+
- "humanize==4.13.0"
3+
- "ruff==0.12.11"
4+
5+
# Breaking Changes
6+
- **DEPRECATE `QBT_CONFIG` / `--config-file` OPTION**
7+
- No longer supporting `QBT_CONFIG` / `--config-file`. Instead please switch over to **`QBT_CONFIG_DIR` / `--config-dir`**.
8+
- `QBT_CONFIG` / `--config-file` option will still work for now but is now considered legacy and will be removed in a future release.
9+
- **Note**: All yml/yaml files will be treated as valid configuration files and loaded in the `QBT_CONFIG_DIR` path. Please ensure you **remove** any old/unused configurations that you don't want to be loaded prior to using this path.
10+
111
# Improvements
2-
- **ci(docker)**: add OCI labels and build metadata to Docker images
3-
- **Web UI**: Show an "Update available" badge next to the version and a toast notification when a newer version is detected
4-
- **Web UI**: Add integrated docs with collapsible sections
5-
- **ci(build)**: Publish to PyPI
6-
- **Category**: Allow category changes regardless of the "Category Update All" status (Fixes #913)
12+
- Adds docker support for PUID/PGID environment variables
13+
- Dockerfile copies the latest `config.yml.sample` in the config folder
14+
- Add `QBT_HOST` / `--host` option to specify webUI host address (#929 Thanks to @QuixThe2nd)
15+
- WebUI: Quick action settings persist now
716

817
# Bug Fixes
9-
- Fixes container hanging when using run command with QBT_RUN flag (Fixes #911)
10-
- Fixes bug on interval scheduler not displaying the correct next run time
11-
- Fix bug on webAPI requests not being queued correctly when called during a scheduled run
18+
- WebUI: Fix loading spinner to be centered in the webUI
1219

13-
**Full Changelog**: https://github.com/StuffAnThings/qbit_manage/compare/v4.5.4...v4.5.5
20+
**Full Changelog**: https://github.com/StuffAnThings/qbit_manage/compare/v4.5.5...v4.6.0

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM python:3.13-alpine as builder
33

44
ARG BRANCH_NAME=master
55
ENV BRANCH_NAME=${BRANCH_NAME}
6+
ENV QBM_DOCKER=True
67

78
# Install build-time dependencies only
89
RUN apk add --no-cache \
@@ -48,24 +49,28 @@ LABEL org.opencontainers.image.base.name="python:3.13-alpine"
4849

4950
ENV TINI_VERSION=v0.19.0
5051

52+
5153
# Runtime dependencies (smaller than build stage)
5254
RUN apk add --no-cache \
5355
tzdata \
5456
bash \
5557
curl \
5658
jq \
5759
tini \
60+
su-exec \
5861
&& rm -rf /var/cache/apk/*
5962

6063
# Copy installed packages and scripts from builder
6164
COPY --from=builder /usr/local/lib/python3.13/site-packages/ /usr/local/lib/python3.13/site-packages/
6265
COPY --from=builder /app /app
6366
COPY . /app
67+
COPY entrypoint.sh /app/entrypoint.sh
6468
WORKDIR /app
69+
RUN chmod +x /app/entrypoint.sh
6570
VOLUME /config
6671

6772
# Expose port 8080
6873
EXPOSE 8080
6974

70-
ENTRYPOINT ["/sbin/tini", "-s", "--"]
75+
ENTRYPOINT ["/sbin/tini", "-s", "/app/entrypoint.sh"]
7176
CMD ["python3", "qbit_manage.py"]

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,23 +280,31 @@ reinstall: uninstall install
280280
.PHONY: prep-release
281281
prep-release:
282282
@echo "Preparing release..."
283-
@# Step 1: Strip '-develop*' suffix from VERSION
283+
@# Step 1: Update uv lock and sync dependencies
284+
@echo "Updating uv lock and syncing dependencies..."
285+
@uv lock --upgrade
286+
@uv sync
287+
@echo "✓ Dependencies updated"
288+
@# Step 2: Strip '-develop*' suffix from VERSION
284289
@current_version=$$(cat VERSION); \
285290
clean_version=$$(echo $$current_version | sed 's/-develop.*$$//'); \
286291
echo "$$clean_version" > VERSION; \
287292
echo "✓ VERSION updated to $$clean_version"
288-
@# Step 2: Check Tauri Rust project builds
293+
@# Step 3: Check Tauri Rust project builds
289294
@echo "Running cargo check in desktop/tauri/src-tauri..."
290295
@cd desktop/tauri/src-tauri && cargo check
291-
@# Step 3: Prepare CHANGELOG skeleton and bump Full Changelog link
296+
@# Step 4: Prepare CHANGELOG skeleton and bump Full Changelog link
292297
@new_version=$$(cat VERSION); \
293298
major=$$(echo "$$new_version" | cut -d. -f1); \
294299
minor=$$(echo "$$new_version" | cut -d. -f2); \
295300
patch=$$(echo "$$new_version" | cut -d. -f3); \
296301
prev_patch=$$((patch - 1)); \
297302
prev_version="$$major.$$minor.$$prev_patch"; \
303+
updated_deps=$$(git diff master..HEAD -- pyproject.toml | grep '^+' | grep '==' | sed 's/^+//' | sed 's/^ *//' | sed 's/,$$//' | sed 's/^/- /'); \
298304
echo "# Requirements Updated" > CHANGELOG; \
299-
echo "" >> CHANGELOG; \
305+
if [ -n "$$updated_deps" ]; then \
306+
echo "$$updated_deps" >> CHANGELOG; \
307+
fi; \
300308
echo "" >> CHANGELOG; \
301309
echo "# New Features" >> CHANGELOG; \
302310
echo "" >> CHANGELOG; \

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# <img src="icons/qbm_logo.png" width="75"> qBit Manage
1+
# <img src="https://github.com/StuffAnThings/qbit_manage/blob/master/icons/qbm_logo.png?raw=true" width="75"> qBit Manage
22

33
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/StuffAnThings/qbit_manage?style=plastic)](https://github.com/StuffAnThings/qbit_manage/releases)
44
[![GitHub commits since latest release (by SemVer)](https://img.shields.io/github/commits-since/StuffAnThings/qbit_manage/latest/develop?label=Commits%20in%20Develop&style=plastic)](https://github.com/StuffAnThings/qbit_manage/tree/develop)
55
[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/bobokun/qbit_manage?label=docker&sort=semver&style=plastic)](https://hub.docker.com/r/bobokun/qbit_manage)
6-
![Github Workflow Status](https://img.shields.io/github/actions/workflow/status/StuffAnThings/qbit_manage/version.yml?style=plastic)
6+
[![PyPi (latest semver)](https://img.shields.io/pypi/v/qbit-manage?label=PyPI&sort=semver&style=plastic)](https://pypi.org/project/qbit-manage)
7+
[![Github Workflow Status](https://img.shields.io/github/actions/workflow/status/StuffAnThings/qbit_manage/version.yml?style=plastic)](https://github.com/StuffAnThings/qbit_manage/actions/workflows/version.yml)
78
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/StuffAnThings/qbit_manage/master.svg)](https://results.pre-commit.ci/latest/github/StuffAnThings/qbit_manage/master)
89
[![Ghcr packages](https://img.shields.io/badge/ghcr.io-packages?style=plastic&label=packages)](https://ghcr.io/StuffAnThings/qbit_manage)
910
[![Docker Pulls](https://img.shields.io/docker/pulls/bobokun/qbit_manage?style=plastic)](https://hub.docker.com/r/bobokun/qbit_manage)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.5.5
1+
4.6.0

desktop/tauri/src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)