Compare commits

..
5 Commits
Author SHA1 Message Date
d3e538de7b feat(moongate): offer LAN-only mode during install (#819)
Moongate v0.9.51 added a cloud-free Direct (LAN/VPN) per-printer mode;
its installer supports it via MOONGATE_LAN_ONLY=1 / --lan-only. Ask the
question KIAUH-natively (get_confirm, default No = current behaviour)
and pass MOONGATE_LAN_ONLY through the existing env hand-off.

The env var is passed either way ("1"/"0"): Moongate's installer is
growing its own interactive terminal prompt for the same choice, and an
explicitly-set value suppresses it, so KIAUH users only ever see
KIAUH-styled dialogs.

Also: the pre-install ATTENTION dialog mentions the LAN-only option
(it skips the tunnel, auth proxy and Moonraker rebind), and the
success dialog's pairing step matches the chosen mode.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-03 17:31:46 +02:00
dw-0 42a998d454 refactor: remove unused command execution functions from backend 2026-07-21 19:53:53 +02:00
dw-0 ab60f8cddc refactor: replace remove_file with remove_with_sudo 2026-07-21 19:53:13 +02:00
dw-0 428a53829c chore: Update copyright information 2026-07-21 18:32:09 +02:00
dw-0 87d20fe7e0 refactor: replace CURRENT_USER with get_current_user in multiple components; add user group utility functions 2026-07-21 17:19:40 +02:00
163 changed files with 630 additions and 262 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import shutil import shutil
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
+4 -4
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass, field from dataclasses import dataclass, field
@@ -23,11 +24,10 @@ from components.klipper import (
KLIPPER_SERVICE_TEMPLATE, KLIPPER_SERVICE_TEMPLATE,
KLIPPER_UDS_NAME, KLIPPER_UDS_NAME,
) )
from core.constants import CURRENT_USER
from core.instance_manager.base_instance import BaseInstance from core.instance_manager.base_instance import BaseInstance
from core.logger import Logger from core.logger import Logger
from utils.fs_utils import create_folders, get_data_dir from utils.fs_utils import create_folders, get_data_dir
from utils.sys_utils import get_service_file_path from utils.sys_utils import get_current_user, get_service_file_path
# noinspection PyMethodMayBeStatic # noinspection PyMethodMayBeStatic
@@ -93,7 +93,7 @@ class Klipper:
service_content = template_content.replace( service_content = template_content.replace(
"%USER%", "%USER%",
CURRENT_USER, get_current_user(),
) )
service_content = service_content.replace( service_content = service_content.replace(
"%KLIPPER_DIR%", "%KLIPPER_DIR%",
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
+12 -10
View File
@@ -1,15 +1,14 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import grp
import os
import shutil import shutil
from pathlib import Path from pathlib import Path
from subprocess import CalledProcessError, run from subprocess import CalledProcessError, run
@@ -28,7 +27,6 @@ from components.klipper.klipper_dialogs import (
) )
from components.webui_client.base_data import BaseWebClient from components.webui_client.base_data import BaseWebClient
from components.webui_client.client_utils import create_client_config_symlink from components.webui_client.client_utils import create_client_config_symlink
from core.constants import CURRENT_USER
from core.instance_manager.base_instance import SUFFIX_BLACKLIST from core.instance_manager.base_instance import SUFFIX_BLACKLIST
from core.logger import DialogType, Logger from core.logger import DialogType, Logger
from core.services.backup_service import BackupService from core.services.backup_service import BackupService
@@ -42,6 +40,8 @@ from utils.input_utils import get_confirm, get_number_input, get_string_input
from utils.instance_utils import get_instances from utils.instance_utils import get_instances
from utils.sys_utils import ( from utils.sys_utils import (
cmd_sysctl_service, cmd_sysctl_service,
get_current_user,
get_user_groups,
install_python_packages, install_python_packages,
parse_packages_from_file, parse_packages_from_file,
) )
@@ -93,12 +93,14 @@ def check_user_groups(interactive: bool = True) -> None:
must confirm before groups are modified. When ``interactive`` is false (the must confirm before groups are modified. When ``interactive`` is false (the
headless CLI path), groups are added automatically without prompting. headless CLI path), groups are added automatically without prompting.
""" """
user_groups = [grp.getgrgid(gid).gr_name for gid in os.getgroups()] user_groups = get_user_groups()
missing_groups = [g for g in ["tty", "dialout"] if g not in user_groups] missing_groups = [g for g in ["tty", "dialout"] if g not in user_groups]
if not missing_groups: if not missing_groups:
return return
current_user = get_current_user()
if interactive: if interactive:
Logger.print_dialog( Logger.print_dialog(
DialogType.ATTENTION, DialogType.ATTENTION,
@@ -116,22 +118,22 @@ def check_user_groups(interactive: bool = True) -> None:
], ],
) )
if not get_confirm(f"Add user '{CURRENT_USER}' to group(s) now?"): if not get_confirm(f"Add user '{current_user}' to group(s) now?"):
log = "Skipped adding user to required groups. You might encounter issues." log = "Skipped adding user to required groups. You might encounter issues."
Logger.print_warn(log) Logger.print_warn(log)
return return
else: else:
Logger.print_info( Logger.print_info(
f"Adding user '{CURRENT_USER}' to required groups: " f"Adding user '{current_user}' to required groups: "
f"{', '.join(missing_groups)}" f"{', '.join(missing_groups)}"
) )
try: try:
for group in missing_groups: for group in missing_groups:
Logger.print_status(f"Adding user '{CURRENT_USER}' to group {group} ...") Logger.print_status(f"Adding user '{current_user}' to group {group} ...")
command = ["sudo", "usermod", "-a", "-G", group, CURRENT_USER] command = ["sudo", "usermod", "-a", "-G", group, current_user]
run(command, check=True) run(command, check=True)
Logger.print_ok(f"Group {group} assigned to user '{CURRENT_USER}'.") Logger.print_ok(f"Group {group} assigned to user '{current_user}'.")
except CalledProcessError as e: except CalledProcessError as e:
Logger.print_error(f"Unable to add user to usergroups: {e}") Logger.print_error(f"Unable to add user to usergroups: {e}")
raise raise
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import List from typing import List
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import traceback import traceback
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import Any, Dict, List from typing import Any, Dict, List
@@ -330,10 +339,11 @@ class TestCheckUserGroups:
def test_interactive_mode_prompts_before_adding_user(self, monkeypatch) -> None: def test_interactive_mode_prompts_before_adding_user(self, monkeypatch) -> None:
from components.klipper.klipper_utils import check_user_groups from components.klipper.klipper_utils import check_user_groups
monkeypatch.setattr("os.getgroups", lambda: [])
monkeypatch.setattr( monkeypatch.setattr(
"grp.getgrgid", "components.klipper.klipper_utils.get_user_groups", lambda: []
lambda gid: type("Group", (), {"gr_name": "tty"})(), )
monkeypatch.setattr(
"components.klipper.klipper_utils.get_current_user", lambda: "tester"
) )
prompted: List[str] = [] prompted: List[str] = []
@@ -357,10 +367,11 @@ class TestCheckUserGroups:
def test_headless_mode_auto_adds_without_prompt(self, monkeypatch) -> None: def test_headless_mode_auto_adds_without_prompt(self, monkeypatch) -> None:
from components.klipper.klipper_utils import check_user_groups from components.klipper.klipper_utils import check_user_groups
monkeypatch.setattr("os.getgroups", lambda: [])
monkeypatch.setattr( monkeypatch.setattr(
"grp.getgrgid", "components.klipper.klipper_utils.get_user_groups", lambda: []
lambda gid: type("Group", (), {"gr_name": "tty"})(), )
monkeypatch.setattr(
"components.klipper.klipper_utils.get_current_user", lambda: "tester"
) )
monkeypatch.setattr( monkeypatch.setattr(
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
import re import re
from pathlib import Path from pathlib import Path
from subprocess import ( from subprocess import (
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import field from dataclasses import field
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from pathlib import Path from pathlib import Path
from core.constants import SYSTEMD from core.constants import SYSTEMD
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
import shutil import shutil
from pathlib import Path from pathlib import Path
from subprocess import CalledProcessError, run from subprocess import CalledProcessError, run
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+4 -4
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass, field from dataclasses import dataclass, field
@@ -22,14 +23,13 @@ from components.moonraker import (
MOONRAKER_LOG_NAME, MOONRAKER_LOG_NAME,
MOONRAKER_SERVICE_TEMPLATE, MOONRAKER_SERVICE_TEMPLATE,
) )
from core.constants import CURRENT_USER
from core.instance_manager.base_instance import BaseInstance from core.instance_manager.base_instance import BaseInstance
from core.logger import Logger from core.logger import Logger
from core.simple_config_parser.simple_config_parser import ( from core.simple_config_parser.simple_config_parser import (
SimpleConfigParser, SimpleConfigParser,
) )
from utils.fs_utils import create_folders from utils.fs_utils import create_folders
from utils.sys_utils import get_service_file_path from utils.sys_utils import get_current_user, get_service_file_path
# noinspection PyMethodMayBeStatic # noinspection PyMethodMayBeStatic
@@ -98,7 +98,7 @@ class Moonraker:
service_content = template_content.replace( service_content = template_content.replace(
"%USER%", "%USER%",
CURRENT_USER, get_current_user(),
) )
service_content = service_content.replace( service_content = service_content.replace(
"%MOONRAKER_DIR%", "%MOONRAKER_DIR%",
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import Dict, List from typing import Dict, List
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import traceback import traceback
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,9 +1,9 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# It was modified by Dominik Willner <th33xitus@gmail.com> # # It was modified by Dominik Willner <dev.dw-0@proton.me> #
# # # #
# The original file is part of Moonraker: # # The original file is part of Moonraker: #
# https://github.com/Arksine/moonraker # # https://github.com/Arksine/moonraker #
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
import json import json
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
import json import json
import shutil import shutil
from pathlib import Path from pathlib import Path
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import json import json
@@ -40,7 +41,7 @@ from core.simple_config_parser.simple_config_parser import (
from core.types.color import Color from core.types.color import Color
from core.types.component_status import ComponentStatus from core.types.component_status import ComponentStatus
from utils.common import get_install_status from utils.common import get_install_status
from utils.fs_utils import create_symlink, remove_file from utils.fs_utils import create_symlink, remove_with_sudo
from utils.git_utils import ( from utils.git_utils import (
get_latest_remote_tag, get_latest_remote_tag,
get_latest_unstable_tag, get_latest_unstable_tag,
@@ -352,7 +353,7 @@ def create_nginx_cfg(
source = NGINX_SITES_AVAILABLE.joinpath(cfg_name) source = NGINX_SITES_AVAILABLE.joinpath(cfg_name)
target = NGINX_SITES_ENABLED.joinpath(cfg_name) target = NGINX_SITES_ENABLED.joinpath(cfg_name)
remove_file(Path("/etc/nginx/sites-enabled/default"), True) remove_with_sudo(Path("/etc/nginx/sites-enabled/default"))
generate_nginx_cfg_from_template(cfg_name, template_src=template_src, **kwargs) generate_nginx_cfg_from_template(cfg_name, template_src=template_src, **kwargs)
create_symlink(source, target, True) create_symlink(source, target, True)
set_nginx_permissions() set_nginx_permissions()
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass, field from dataclasses import dataclass, field
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import shutil import shutil
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import shutil import shutil
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass, field from dataclasses import dataclass, field
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import pytest import pytest
+3 -24
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# # # #
@@ -7,12 +7,13 @@
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import shutil import shutil
import subprocess import subprocess
from pathlib import Path from pathlib import Path
from typing import Any, List, Protocol, Sequence, cast, runtime_checkable from typing import Any, Protocol, Sequence, cast
# --------------------------------------------------------------------------- # # --------------------------------------------------------------------------- #
# Singleton backends # # Singleton backends #
@@ -26,27 +27,6 @@ from typing import Any, List, Protocol, Sequence, cast, runtime_checkable
# per-module duplicates # per-module duplicates
def run(cmd: str | List[str], **kwargs: Any) -> subprocess.CompletedProcess[str]:
"""Run a command through the shared command runner."""
return command_runner.run(cmd, **kwargs)
def check_output(cmd: str | List[str], **kwargs: Any) -> str | bytes:
"""Run a command and return its output through the shared command runner."""
return command_runner.check_output(cmd, **kwargs)
def call(cmd: str | List[str], **kwargs: Any) -> int:
"""Run a command and return its exit code through the shared command runner."""
return command_runner.call(cmd, **kwargs)
def popen(cmd: str | List[str], **kwargs: Any) -> subprocess.Popen:
"""Start a process through the shared command runner."""
return command_runner.popen(cmd, **kwargs)
@runtime_checkable
class CommandRunner(Protocol): class CommandRunner(Protocol):
"""Pluggable backend for executing system commands.""" """Pluggable backend for executing system commands."""
@@ -107,7 +87,6 @@ class SubprocessRunner:
return subprocess.Popen(cmd, **kwargs) return subprocess.Popen(cmd, **kwargs)
@runtime_checkable
class FilesystemBackend(Protocol): class FilesystemBackend(Protocol):
"""Pluggable backend for filesystem operations.""" """Pluggable backend for filesystem operations."""
+14 -2
View File
@@ -1,6 +1,16 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
import subprocess import subprocess
import sys
from pathlib import Path from pathlib import Path
import pytest import pytest
@@ -13,12 +23,14 @@ from utils import fs_utils, sys_utils
class TestSubprocessRunner: class TestSubprocessRunner:
def test_run_executes_command(self) -> None: def test_run_executes_command(self) -> None:
runner = SubprocessRunner() runner = SubprocessRunner()
result = runner.run(["true"]) result = runner.run([sys.executable, "-c", ""])
assert result.returncode == 0 assert result.returncode == 0
def test_check_output_returns_stdout(self) -> None: def test_check_output_returns_stdout(self) -> None:
runner = SubprocessRunner() runner = SubprocessRunner()
output = runner.check_output(["echo", "hello"], text=True) output = runner.check_output(
[sys.executable, "-c", "print('hello')"], text=True
)
assert "hello" in output assert "hello" in output
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import argparse import argparse
+11 -1
View File
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -507,9 +516,10 @@ class TestPackaging:
def test_pyproject_metadata_allows_editable_dev_install(self) -> None: def test_pyproject_metadata_allows_editable_dev_install(self) -> None:
project_root = Path(__file__).resolve().parents[4] project_root = Path(__file__).resolve().parents[4]
import subprocess as sp import subprocess as sp
import sys
result = sp.run( result = sp.run(
["python", "-m", "pip", "install", "--dry-run", "-e", ".[dev]"], [sys.executable, "-m", "pip", "install", "--dry-run", "-e", ".[dev]"],
cwd=project_root, cwd=project_root,
capture_output=True, capture_output=True,
text=True, text=True,
+1 -6
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -7,8 +7,6 @@
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
import os
import pwd
from pathlib import Path from pathlib import Path
# global dependencies # global dependencies
@@ -17,9 +15,6 @@ GLOBAL_DEPS = ["git", "wget", "curl", "unzip", "dfu-util", "python3-virtualenv"]
# strings # strings
INVALID_CHOICE = "Invalid choice. Please select a valid value." INVALID_CHOICE = "Invalid choice. Please select a valid value."
# current user
CURRENT_USER = pwd.getpwuid(os.getuid())[0]
# dirs # dirs
SYSTEMD = Path("/etc/systemd/system") SYSTEMD = Path("/etc/systemd/system")
NGINX_SITES_AVAILABLE = Path("/etc/nginx/sites-available") NGINX_SITES_AVAILABLE = Path("/etc/nginx/sites-available")
-24
View File
@@ -1,24 +0,0 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations
import warnings
from typing import Callable
def deprecated(info: str = "", replaced_by: Callable | None = None) -> Callable:
def decorator(func) -> Callable:
def wrapper(*args, **kwargs):
msg = f"{info}{replaced_by.__name__ if replaced_by else ''}"
warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
return func(*args, **kwargs)
return wrapper
return decorator
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
import subprocess import subprocess
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass from dataclasses import dataclass
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+1 -1
View File
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import sys import sys
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import List, Literal, Type from typing import List, Literal, Type
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+9
View File
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import List, Type from typing import List, Type
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import Any, List from typing import Any, List
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import Any, Dict, List from typing import Any, Dict, List
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import Any, List from typing import Any, List
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
import pytest import pytest
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from contextlib import contextmanager from contextlib import contextmanager
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import textwrap import textwrap
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import shutil import shutil
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass, field from dataclasses import dataclass, field
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from typing import Any, List from typing import Any, List
+2 -1
View File
@@ -1,11 +1,12 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# This file is part of KIAUH - Klipper Installation And Update Helper # # This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh # # https://github.com/dw-0/kiauh #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from __future__ import annotations from __future__ import annotations
import shutil import shutil
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2025 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2025 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,10 +1,11 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from pathlib import Path from pathlib import Path
from typing import List from typing import List
@@ -1,6 +1,11 @@
# ======================================================================= # # ======================================================================= #
# Tests: Verhalten beim Aktualisieren von Multiline-Optionen # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# #
# https://github.com/dw-0/simple-config-parser #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from pathlib import Path from pathlib import Path
from core.simple_config_parser.simple_config_parser import ( from core.simple_config_parser.simple_config_parser import (
@@ -1,10 +1,11 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from pathlib import Path from pathlib import Path
import pytest import pytest
@@ -1,3 +1,12 @@
# ======================================================================= #
# Copyright (C) 2020 - 2026 Dominik Willner <dev.dw-0@proton.me> #
# #
# This file is part of KIAUH - Klipper Installation And Update Helper #
# https://github.com/dw-0/kiauh #
# #
# This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= #
from pathlib import Path from pathlib import Path
from core.simple_config_parser.simple_config_parser import Gcode, SimpleConfigParser from core.simple_config_parser.simple_config_parser import Gcode, SimpleConfigParser
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,10 +1,11 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from pathlib import Path from pathlib import Path
from core.simple_config_parser.simple_config_parser import Section, SimpleConfigParser from core.simple_config_parser.simple_config_parser import Section, SimpleConfigParser
@@ -1,5 +1,5 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
@@ -1,10 +1,11 @@
# ======================================================================= # # ======================================================================= #
# Copyright (C) 2024 Dominik Willner <th33xitus@gmail.com> # # Copyright (C) 2024 Dominik Willner <dev.dw-0@proton.me> #
# # # #
# https://github.com/dw-0/simple-config-parser # # https://github.com/dw-0/simple-config-parser #
# # # #
# This file may be distributed under the terms of the GNU GPLv3 license # # This file may be distributed under the terms of the GNU GPLv3 license #
# ======================================================================= # # ======================================================================= #
from pathlib import Path from pathlib import Path
import pytest import pytest

Some files were not shown because too many files have changed in this diff Show More