mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-24 07:16:17 +01:00
The installer ships as the steam_installer package beside steam_backlog_enforcer, with its tests, docs and Proton lock. The enforcer's fast install now starts the installer from this checkout. Both appinfo.vdf readers share one key-value decoder (steam_installer.appinfo_kv), and the duplicated test fixtures and helpers are folded into conftest and _cli_helpers so the whole-tree duplicate-code check is clean. check_requirements_sync treats sibling packages as first-party. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWZCxnNWLtpVwFLVk9w
25 lines
606 B
Python
25 lines
606 B
Python
"""Everything one install run is about, bundled so it travels as one argument."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from pathlib import Path
|
|
|
|
from steam_installer import appinfo, takeover
|
|
from steam_installer.library import SteamLibrary
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class Job:
|
|
"""The app, where it goes, what Steam already staged, and as whom."""
|
|
|
|
library: SteamLibrary
|
|
metadata: appinfo.AppMetadata
|
|
install_target: Path
|
|
staged: takeover.Staged | None
|
|
username: str
|
|
language: str
|