mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 14:28:54 -06:00
chore: order the installer imports after the split
This commit is contained in:
1 parent
2a4fb883d3
commit
6dd9970fb6
42 files changed
+75
-96
No files matched your search
@@ -1,5 +1,4 @@
|
||||
"""The backups a run leaves: listing them, deleting one, and the setup an action names."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
@@ -16,12 +15,12 @@ from installer.detect_frontends import detect_platforms
|
||||
from installer.detect_os import detect_os
|
||||
from installer.events import EVENTS
|
||||
from installer.host_fs import _clear_read_only
|
||||
from installer.restore import _backup_note
|
||||
from installer.install_record import day_words, load_record
|
||||
from installer.invocation import _INVOCATION
|
||||
from installer.paths import shown_path, spelled
|
||||
from installer.platforms import normalize_platform
|
||||
from installer.refusal import Refusal
|
||||
from installer.restore import _backup_note
|
||||
from installer.safe_replace import KeptFiles, _backup_files, _is_backup_run, _tree
|
||||
from installer.text import _plural, format_size
|
||||
|
||||
|
||||
+2
-2
@@ -11,6 +11,7 @@ from pathlib import Path
|
||||
from typing import NoReturn
|
||||
|
||||
from installer.arguments import PACK_NAME_END, build_parser
|
||||
from installer.backups import run_backups, run_delete_backup
|
||||
from installer.combinations import combination_refusals, given_options
|
||||
from installer.console import OUTPUT, fold_line
|
||||
from installer.detect_os import detect_os
|
||||
@@ -18,7 +19,6 @@ from installer.events import EVENTS, EVENT_SCHEMA, _event_exit_code, _event_mode
|
||||
from installer.from_folders import _open_local_sources
|
||||
from installer.handheld_app import app_not_added
|
||||
from installer.host_fs import _is_dir, _writing
|
||||
from installer.restore import restore_kept
|
||||
from installer.invocation import (
|
||||
LISTING_FLAGS,
|
||||
OFFLINE_VARIABLE,
|
||||
@@ -34,8 +34,8 @@ from installer.platforms import AVAILABLE_PLATFORMS, TARGET_PLATFORMS, _name_key
|
||||
from installer.refusal import Refusal
|
||||
from installer.regions import resolve_regions
|
||||
from installer.remote import remote_from_env, remote_in_use
|
||||
from installer.backups import run_backups, run_delete_backup
|
||||
from installer.removal import run_removal
|
||||
from installer.restore import restore_kept
|
||||
from installer.run import _install
|
||||
from installer.tui_routes import (
|
||||
TUI_LIST_ENV,
|
||||
|
||||
@@ -16,7 +16,7 @@ from pathlib import Path
|
||||
from typing import IO, TYPE_CHECKING, BinaryIO, ContextManager
|
||||
|
||||
from installer.download import _claim_partial, _release_claim
|
||||
from installer.install_record import recorded_data_copies
|
||||
from installer.failure_causes import OfflineReason
|
||||
from installer.host_fs import (
|
||||
DRIVE_FULL,
|
||||
NOT_WRITABLE,
|
||||
@@ -28,11 +28,11 @@ from installer.host_fs import (
|
||||
_write_refused,
|
||||
_writing,
|
||||
)
|
||||
from installer.install_record import recorded_data_copies
|
||||
from installer.local_check import _read_digests
|
||||
from installer.manifest import OTHER_SYSTEMS
|
||||
from installer.network import _retry_after_failure, _retry_delay
|
||||
from installer.offline import LOCAL, _Offline, _network_allowed, _offline_only
|
||||
from installer.failure_causes import OfflineReason
|
||||
from installer.paths import _destination_path
|
||||
from installer.platforms import entry_systems
|
||||
from installer.remote import MAX_DATA_ARCHIVE_SIZE, MAX_DOWNLOAD_SIZE, MAX_RETRIES
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""RetroArch builds found on Android, and the app folders Android keeps out of reach."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import contextlib
|
||||
|
||||
@@ -15,7 +15,12 @@ from installer.config_values import (
|
||||
_parse_retroarch_system_dir,
|
||||
_retroarch_cfg_dir,
|
||||
)
|
||||
from installer.detection_notes import note_detection
|
||||
from installer.detect_android import _detect_android, android_unreachable_folders
|
||||
from installer.detect_launchbox import (
|
||||
_launchbox_retroarch_system_dir,
|
||||
launchbox_emulators,
|
||||
launchbox_root,
|
||||
)
|
||||
from installer.detect_os import (
|
||||
_detect_embedded,
|
||||
_macos_retroarch_base,
|
||||
@@ -23,16 +28,11 @@ from installer.detect_os import (
|
||||
_read_registry,
|
||||
_unix_retroarch_base,
|
||||
)
|
||||
from installer.detection_notes import note_detection
|
||||
from installer.host_fs import _SETUP_SEARCH, _exists, _host_path, _is_dir, _is_file, _note_refused
|
||||
from installer.paths import MOVED, RETRODECK_CONFIG, shown_path
|
||||
from installer.platforms import display_name
|
||||
from installer.text import _CONTROLS
|
||||
from installer.detect_android import _detect_android, android_unreachable_folders
|
||||
from installer.detect_launchbox import (
|
||||
_launchbox_retroarch_system_dir,
|
||||
launchbox_emulators,
|
||||
launchbox_root,
|
||||
)
|
||||
|
||||
|
||||
def _steam_libraries() -> list[Path]:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""LaunchBox on Windows: where it lives, the emulators it lists and their BIOS folders."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import contextlib
|
||||
|
||||
@@ -11,13 +11,13 @@ from installer.folder_index import (
|
||||
FolderIndex,
|
||||
_ZippedLookup,
|
||||
)
|
||||
from installer.host_fs import _is_file
|
||||
from installer.local_copies import (
|
||||
_copy_reason,
|
||||
_counts_by_folder,
|
||||
_known_destinations,
|
||||
_place_reason,
|
||||
)
|
||||
from installer.host_fs import _is_file
|
||||
from installer.manifest import GAME_DATA, entry_copies
|
||||
from installer.paths import _entry_path, shown_path
|
||||
from installer.platforms import entry_systems
|
||||
|
||||
@@ -18,6 +18,7 @@ from typing import TYPE_CHECKING, BinaryIO
|
||||
|
||||
from installer.console import Progress
|
||||
from installer.events import EVENTS
|
||||
from installer.failure_causes import HttpReason, NetworkReason, OfflineReason
|
||||
from installer.folder_index import FOLDER_IN_PLACE, _copy_local
|
||||
from installer.host_fs import (
|
||||
DRIVE_FULL,
|
||||
@@ -38,7 +39,6 @@ from installer.invocation import DEFAULT_JOBS, offline_requested
|
||||
from installer.local_check import _digest_file, _digest_handle, expected_hashes, unreachable_words
|
||||
from installer.network import _retry_after_failure, _server_delay, network_words
|
||||
from installer.offline import LOCAL, offline_words
|
||||
from installer.failure_causes import HttpReason, NetworkReason, OfflineReason
|
||||
from installer.outcome import _transfer_failure
|
||||
from installer.pack_source import NOT_IN_PACK, _extract_from_pack
|
||||
from installer.paths import _entry_path, _entry_place
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The index of a folder BIOS files are copied from: each file by hash, inside archives too."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import contextlib
|
||||
|
||||
@@ -7,6 +7,7 @@ from pathlib import Path
|
||||
|
||||
from installer.console import SAID_FAILED
|
||||
from installer.events import EVENTS
|
||||
from installer.folder_index import FolderIndex, MAX_SCANNED_FILES, PSEUDO_FOLDERS
|
||||
from installer.invocation import DEFAULT_JOBS
|
||||
from installer.offline import LOCAL, local_manifest_platform
|
||||
from installer.pack_source import _PART_FILE, PackSource
|
||||
@@ -16,8 +17,6 @@ from installer.refusal import Refusal
|
||||
from installer.safe_replace import unreadable_words
|
||||
from installer.text import _plural, screen_text
|
||||
|
||||
from installer.folder_index import FolderIndex, MAX_SCANNED_FILES, PSEUDO_FOLDERS
|
||||
|
||||
|
||||
def sources_line(
|
||||
folders: list[tuple[str, int]], fixed: int, downloaded: int, missing: int,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Reading the game folders of a card into the systems and BIOS sets its games need."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Which BIOS regions the games on a card need, and when a rule keeps every region."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
+2
-2
@@ -18,6 +18,8 @@ from installer.game_files import (
|
||||
game_folders,
|
||||
games_root,
|
||||
)
|
||||
from installer.game_folders import GamesPlan, _GamesDocs, _plan_read_folders, _read_folder_games
|
||||
from installer.games_index import GAMES, GAMES_REASONS, GamesData, GamesUnavailable, games_setups
|
||||
from installer.host_fs import _is_dir
|
||||
from installer.offline import LOCAL
|
||||
from installer.paths import shown_path
|
||||
@@ -29,8 +31,6 @@ from installer.text import _plural, agree
|
||||
if TYPE_CHECKING:
|
||||
from installer.game_files import GameFolder
|
||||
from installer.terminal import Terminal
|
||||
from installer.game_folders import GamesPlan, _GamesDocs, _plan_read_folders, _read_folder_games
|
||||
from installer.games_index import GAMES, GAMES_REASONS, GamesData, GamesUnavailable, games_setups
|
||||
|
||||
|
||||
def plan_games(plat: str, bios_path: Path, manifest: dict, folder: Path | None = None,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The games index under install/games/: where it lives, its bounds, the setups it covers."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
|
||||
@@ -26,9 +26,9 @@ from installer.destination import (
|
||||
)
|
||||
from installer.detect_os import _os_default_dests, card_title
|
||||
from installer.from_folders import _read_from_folder, from_folder_problem
|
||||
from installer.local_copies import plan_local_copies
|
||||
from installer.host_fs import _exists, _is_dir
|
||||
from installer.invocation import _INVOCATION, Invocation
|
||||
from installer.local_copies import plan_local_copies
|
||||
from installer.offline import LOCAL
|
||||
from installer.paths import shown_path
|
||||
from installer.platforms import _name_key, display_name, normalize_platform
|
||||
|
||||
@@ -17,13 +17,13 @@ from installer.choices import (
|
||||
from installer.console import _ask, _quit
|
||||
from installer.datadirs import data_directory_state, data_fetch_bytes, select_data_directories
|
||||
from installer.destination import _last_name, on_its_card, shown_bios_folder
|
||||
from installer.local_copies import plan_local_copies
|
||||
from installer.frontend_folders import save_lines
|
||||
from installer.host_fs import _is_file
|
||||
from installer.install_record import _RECORD_TAKEN
|
||||
from installer.invocation import _INVOCATION
|
||||
from installer.line_folder import _ask_from_folder
|
||||
from installer.local_check import not_in_place, read_in_place
|
||||
from installer.local_copies import plan_local_copies
|
||||
from installer.manifest import OTHER_SYSTEMS
|
||||
from installer.narrowing import _chosen, narrow
|
||||
from installer.offline import LOCAL, _offline_only, offline_named
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The copies a run takes from --from folders: where each goes, why, and what could not be read."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
+2
-2
@@ -17,10 +17,11 @@ from installer.datadirs import install_data_directory
|
||||
from installer.download import download_files
|
||||
from installer.events import EVENTS
|
||||
from installer.filesystems import fat32_drive
|
||||
from installer.local_copies import plan_local_copies
|
||||
from installer.host_fs import DRIVE_FULL, _drive_full, _is_dir, _stop
|
||||
from installer.lists import ListFailure, held_targets, load_targets, targets_file_words
|
||||
from installer.local_copies import plan_local_copies
|
||||
from installer.offline import LOCAL
|
||||
from installer.pack_parts import PackError, PackMember, pack_bound, plan_pack_parts, write_pack
|
||||
from installer.pack_source import (
|
||||
pack_name_platforms,
|
||||
part_file_name,
|
||||
@@ -33,7 +34,6 @@ from installer.text import _plural, format_size, screen_text
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.terminal import Terminal
|
||||
from installer.pack_parts import PackError, PackMember, pack_bound, plan_pack_parts, write_pack
|
||||
|
||||
|
||||
# FAT32 holds no file of 4 GiB or more (its size field is 32 bits). A pack
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The ZIP parts of a pack: planned, written, marked, swapped into place, and their markers read back."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
|
||||
@@ -11,13 +11,13 @@ import urllib.error
|
||||
from collections.abc import Iterable
|
||||
from pathlib import Path, PurePosixPath
|
||||
|
||||
from installer.backups import _action_setup, _backup_date
|
||||
from installer.choices import available_choices, emulator_names, resolve_choices, resolve_systems
|
||||
from installer.console import QUIT_CODE, _answer_yes
|
||||
from installer.events import EVENTS
|
||||
from installer.filesystems import keeps_case
|
||||
from installer.host_fs import _clear_read_only, _is_link
|
||||
from installer.install_record import _record_now, load_record, setup_record
|
||||
from installer.restore import _update_record
|
||||
from installer.invocation import _INVOCATION, offline_requested
|
||||
from installer.lists import fetch_manifest
|
||||
from installer.local_check import _digest_file
|
||||
@@ -27,14 +27,6 @@ from installer.paths import shown_path, spelled
|
||||
from installer.platforms import display_name, refuse_name
|
||||
from installer.refusal import Refusal
|
||||
from installer.remote import MAX_MANIFEST_BYTES, active_remote
|
||||
from installer.safe_replace import (
|
||||
BACKUP_DIR,
|
||||
KEPT,
|
||||
REMOVED_NOTE,
|
||||
_move_aside,
|
||||
)
|
||||
from installer.text import _plural, agree, format_size
|
||||
from installer.backups import _action_setup, _backup_date
|
||||
from installer.removal_plan import (
|
||||
CHANGED_SINCE_PLAN,
|
||||
REMOVAL_REASONS,
|
||||
@@ -44,6 +36,14 @@ from installer.removal_plan import (
|
||||
plan_misplaced_removal,
|
||||
plan_removal,
|
||||
)
|
||||
from installer.restore import _update_record
|
||||
from installer.safe_replace import (
|
||||
BACKUP_DIR,
|
||||
KEPT,
|
||||
REMOVED_NOTE,
|
||||
_move_aside,
|
||||
)
|
||||
from installer.text import _plural, agree, format_size
|
||||
|
||||
|
||||
def _left_by_hand(folder: Path, record: dict, fold: bool) -> list[str]:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Which installed files a removal takes, which it keeps and why."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
@@ -11,12 +10,12 @@ from typing import NamedTuple
|
||||
from installer.choices import available_choices, system_ids
|
||||
from installer.filesystems import keeps_case
|
||||
from installer.host_fs import _is_link
|
||||
from installer.restore import _below, _check_ours
|
||||
from installer.install_record import record_argv, record_options
|
||||
from installer.local_check import _digest_file
|
||||
from installer.manifest import OTHER_SYSTEMS, entry_copies
|
||||
from installer.narrowing import designated_cores
|
||||
from installer.platforms import display_name, entry_systems, system_title
|
||||
from installer.restore import _below, _check_ours
|
||||
from installer.safe_replace import BACKUP_DIR
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""--restore: a backup put back in place, and the install record after it."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
|
||||
+2
-2
@@ -36,6 +36,8 @@ from installer.plan import _check_free_space
|
||||
from installer.platforms import display_name
|
||||
from installer.refusal import Refusal
|
||||
from installer.romm import _check_run_romm, _pass_romm_layout
|
||||
from installer.run_check import _pass_check_existing, _pass_check_report, _pass_dry_run
|
||||
from installer.run_download import _pass_download, _remember_install
|
||||
from installer.run_files import _select_setup_files
|
||||
from installer.run_setups import (
|
||||
_check_run_cores,
|
||||
@@ -59,8 +61,6 @@ if TYPE_CHECKING:
|
||||
from installer.folder_index import FolderIndex
|
||||
from installer.setup_passes import _PlatformPass
|
||||
from installer.run_setups import _InstallRun
|
||||
from installer.run_check import _pass_check_existing, _pass_check_report, _pass_dry_run
|
||||
from installer.run_download import _pass_download, _remember_install
|
||||
|
||||
|
||||
def _pass_install_tree(run: _InstallRun, p: _PlatformPass, entry: dict,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The passes that read a setup: files in place, files missing, and what a dry run would do."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The download pass of a setup: what offline leaves, the question, the folder, the fetch."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
+10
-10
@@ -50,6 +50,16 @@ from installer.plan_words import (
|
||||
)
|
||||
from installer.platforms import system_title
|
||||
from installer.refusal import Refusal
|
||||
from installer.setup_passes import (
|
||||
_PlatformPass,
|
||||
_pass_case_and_names,
|
||||
_pass_emulators,
|
||||
_pass_files,
|
||||
_pass_installed_cores,
|
||||
_pass_options,
|
||||
_pass_target,
|
||||
_pass_version_and_saves,
|
||||
)
|
||||
from installer.tally import (
|
||||
_bytes,
|
||||
_left_out_lines,
|
||||
@@ -63,16 +73,6 @@ from installer.text import _plural, format_size
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.run_setups import _InstallRun
|
||||
from installer.setup_passes import (
|
||||
_PlatformPass,
|
||||
_pass_case_and_names,
|
||||
_pass_emulators,
|
||||
_pass_files,
|
||||
_pass_installed_cores,
|
||||
_pass_options,
|
||||
_pass_target,
|
||||
_pass_version_and_saves,
|
||||
)
|
||||
|
||||
|
||||
def _system_label(name: str, manifest: dict | None) -> str:
|
||||
|
||||
@@ -36,8 +36,8 @@ from installer.pack_source import pack_name_platforms
|
||||
from installer.paths import MOVED
|
||||
from installer.platforms import AVAILABLE_PLATFORMS, _NO_BIOS_FOLDER, display_name, normalize_platform
|
||||
from installer.refusal import Refusal
|
||||
from installer.setup_passes import _output_kind, needed_targets
|
||||
from installer.safe_replace import KEPT
|
||||
from installer.setup_passes import _output_kind, needed_targets
|
||||
from installer.setups import PORTABLE_ONLY, _default_dest, _line_setups, drive_example, found_setups
|
||||
from installer.standalone import _install_standalone_folders
|
||||
from installer.terminal import Terminal
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The first passes over a setup's file list: names, options, board, target, cores, emulators, saves."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
+2
-2
@@ -20,9 +20,8 @@ from installer.cards import (
|
||||
drive_kind,
|
||||
)
|
||||
from installer.console import _ask, _quit
|
||||
from installer.detection_notes import note_detection
|
||||
from installer.detect_frontends import _UNNAMEABLE, detect_platforms
|
||||
from installer.detect_android import _android_storage_root
|
||||
from installer.detect_frontends import _UNNAMEABLE, detect_platforms
|
||||
from installer.detect_os import (
|
||||
_DETECTED_OS,
|
||||
_FROM_CARD,
|
||||
@@ -32,6 +31,7 @@ from installer.detect_os import (
|
||||
detected_os,
|
||||
detected_shown,
|
||||
)
|
||||
from installer.detection_notes import note_detection
|
||||
from installer.frontend_folders import _retroarch_config_at
|
||||
from installer.host_fs import _DETECTION_REFUSED, _is_dir, _is_file
|
||||
from installer.offline import LOCAL
|
||||
|
||||
+12
-12
@@ -23,6 +23,15 @@ from installer.tui_choice import (
|
||||
tui_choices,
|
||||
)
|
||||
from installer.tui_commands import _tui_card, tui_flags, tui_record_kept
|
||||
from installer.tui_folder_actions import (
|
||||
_activate_browse,
|
||||
_activate_cardroot,
|
||||
_activate_create,
|
||||
_activate_folder,
|
||||
_activate_platforms,
|
||||
_activate_setup,
|
||||
_open_folder_screen,
|
||||
)
|
||||
from installer.tui_paint import _CHECK_FIELDS, _styled
|
||||
from installer.tui_rows import (
|
||||
TUI_TICK_ROWS,
|
||||
@@ -34,18 +43,6 @@ from installer.tui_rows import (
|
||||
)
|
||||
from installer.tui_screens import _only_match
|
||||
from installer.tui_state import TuiRow
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.tui_state import TuiState
|
||||
from installer.tui_folder_actions import (
|
||||
_activate_browse,
|
||||
_activate_cardroot,
|
||||
_activate_create,
|
||||
_activate_folder,
|
||||
_activate_platforms,
|
||||
_activate_setup,
|
||||
_open_folder_screen,
|
||||
)
|
||||
from installer.tui_steps import (
|
||||
_activate_action,
|
||||
_back,
|
||||
@@ -60,6 +57,9 @@ from installer.tui_steps import (
|
||||
tui_quit,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.tui_state import TuiState
|
||||
|
||||
|
||||
def _plan_close(state: TuiState, row: TuiRow) -> list[tuple]:
|
||||
"""Close on the plan: every file in place."""
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The screen a full-screen session opens on, from the options and what detection found."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""What choosing a setup, a platform, a card or a folder does."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The help screen, and the view that picks which screen to draw."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import textwrap
|
||||
|
||||
@@ -8,15 +8,15 @@ from installer.host_fs import closed_folder
|
||||
from installer.terminal import TUI_MIN_COLS, TUI_MIN_ROWS
|
||||
from installer.text import cell_width
|
||||
from installer.tui_actions import _activate, _checklist, _option, _tick, _toggle_region
|
||||
from installer.tui_steps import _back, _open_details, _push, _start_run, tui_interrupt, tui_quit
|
||||
from installer.tui_folder_actions import _card_refusal, _choose_card, _closed_status, typed_path
|
||||
from installer.tui_commands import _tui_standalone_fits
|
||||
from installer.tui_folder_actions import _card_refusal, _choose_card, _closed_status, typed_path
|
||||
from installer.tui_frame import _armed, _bar_click, _bar_commits, _pager_starts
|
||||
from installer.tui_help import tui_view
|
||||
from installer.tui_keys import TuiKey, TuiMouse
|
||||
from installer.tui_rows import TUI_TICK_ROWS, _CHECKLISTS, _PAGERS, _first_item, tui_rows
|
||||
from installer.tui_screens import _only_match, _pager_items
|
||||
from installer.tui_help import tui_view
|
||||
from installer.tui_state import TUI_MAX_WIDTH
|
||||
from installer.tui_steps import _back, _open_details, _push, _start_run, tui_interrupt, tui_quit
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.tui_state import TuiRow, TuiState
|
||||
|
||||
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, NamedTuple
|
||||
|
||||
from installer.backups import backup_words
|
||||
from installer.cards import _mounted_cards, card_system
|
||||
from installer.destination import _last_name
|
||||
from installer.detect_os import detected_os
|
||||
@@ -31,7 +32,6 @@ from installer.outcome import (
|
||||
from installer.paths import shown_path
|
||||
from installer.platforms import display_name
|
||||
from installer.removal import _kept_words, kept_line
|
||||
from installer.backups import backup_words
|
||||
from installer.romm import ROMM_SCAN_WORDS
|
||||
from installer.tally import installed_words, left_out_words
|
||||
from installer.text import _plural, _wrap, agree, cell_width, format_size
|
||||
|
||||
@@ -4,17 +4,17 @@ from __future__ import annotations
|
||||
from collections.abc import Callable
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from installer.backups import list_backups
|
||||
from installer.device import detect_board
|
||||
from installer.platforms import display_name
|
||||
from installer.backups import list_backups
|
||||
from installer.tui_actions import _activate, _device_focus, _install_now, _same_plan
|
||||
from installer.tui_steps import _focus_plan, _replace, _start_check, _start_run
|
||||
from installer.tui_folder_actions import _known_choice, _tui_folder_facts
|
||||
from installer.tui_choice import _needed
|
||||
from installer.tui_commands import TUI_ACTION_RUNS
|
||||
from installer.tui_folder_actions import _known_choice, _tui_folder_facts
|
||||
from installer.tui_outcome import full_drive_words
|
||||
from installer.tui_paint import _styled
|
||||
from installer.tui_rows import tui_rows
|
||||
from installer.tui_steps import _focus_plan, _replace, _start_check, _start_run
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.tui_state import TuiState
|
||||
|
||||
@@ -6,6 +6,7 @@ from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from installer.backups import backup_words
|
||||
from installer.cards import _doubt_kinds, _mount_name, _mounted_cards
|
||||
from installer.choices import recorded_axes
|
||||
from installer.cores import CORE_PLATFORMS
|
||||
@@ -18,7 +19,6 @@ from installer.plan import CONFIRM_FROM_BYTES
|
||||
from installer.plan_words import cores_words
|
||||
from installer.platforms import TARGET_PLATFORMS, _tui_system_label, system_title
|
||||
from installer.regions import region_title
|
||||
from installer.backups import backup_words
|
||||
from installer.setups import setup_list
|
||||
from installer.tally import tally
|
||||
from installer.text import _plural, cell_width, format_size
|
||||
|
||||
@@ -5,11 +5,11 @@ import re
|
||||
from collections.abc import Callable
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from installer.backups import backup_words
|
||||
from installer.detect_os import detected_shown
|
||||
from installer.manifest import OTHER_SYSTEMS
|
||||
from installer.offline import LOCAL
|
||||
from installer.platforms import display_name
|
||||
from installer.backups import backup_words
|
||||
from installer.setups import _setup_label
|
||||
from installer.text import _plural, _wrap, cell_width, format_duration, format_size
|
||||
from installer.tui_choice import (
|
||||
@@ -56,10 +56,6 @@ from installer.tui_plan_view import (
|
||||
)
|
||||
from installer.tui_routes import TUI_ROUTES
|
||||
from installer.tui_rows import OTHER_HELP, tui_rows
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.tui_paint import TuiLine
|
||||
from installer.tui_state import TuiRow, TuiState
|
||||
from installer.tui_where_views import (
|
||||
_view_browse,
|
||||
_view_cardroot,
|
||||
@@ -70,6 +66,10 @@ from installer.tui_where_views import (
|
||||
_view_setup,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from installer.tui_paint import TuiLine
|
||||
from installer.tui_state import TuiRow, TuiState
|
||||
|
||||
|
||||
def _view_checking(state: TuiState, width: int, height: int) -> tuple:
|
||||
# Titled as the plan is: ArkOS's card was "RetroArch:" here, "ArkOS
|
||||
|
||||
@@ -23,7 +23,6 @@ from installer.offline import OFFLINE_FLAG_VALUE
|
||||
from installer.outcome import LINE_SAVE_REMEDY
|
||||
from installer.text import screen_text
|
||||
from installer.tui_actions import open_tui_pack, use_tui_pack
|
||||
from installer.tui_steps import tui_interrupt
|
||||
from installer.tui_commands import tui_argv, tui_run_env
|
||||
from installer.tui_engine import (
|
||||
_EngineRun,
|
||||
@@ -35,6 +34,8 @@ from installer.tui_engine import (
|
||||
_tui_put_app,
|
||||
_tui_work_folder,
|
||||
)
|
||||
from installer.tui_first_screen import tui_start
|
||||
from installer.tui_help import tui_view
|
||||
from installer.tui_input import tui_hits, tui_update
|
||||
from installer.tui_outcome import TUI_RESULT_AGAIN, TUI_RESULT_COPY, tui_keeps_log, tui_outcome
|
||||
from installer.tui_plan_view import TUI_SAVE_REMEDY, _shown
|
||||
@@ -44,10 +45,8 @@ from installer.tui_routes import (
|
||||
tui_idle_exit,
|
||||
tui_wants_mouse,
|
||||
)
|
||||
from installer.tui_help import tui_view
|
||||
from installer.tui_state import TuiState
|
||||
|
||||
from installer.tui_first_screen import tui_start
|
||||
from installer.tui_steps import tui_interrupt
|
||||
from installer.tui_terminal import (
|
||||
_TuiSignals,
|
||||
_TuiTerminal,
|
||||
@@ -58,6 +57,7 @@ from installer.tui_terminal import (
|
||||
tui_suspend,
|
||||
)
|
||||
|
||||
|
||||
TUI_FRAME = 0.1
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""Moves between screens: opening and leaving them, starting a check or a run, the action menus."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The terminal under the full screen: its modes, suspend and signals, and a terminal that closes."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import codecs
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
"""The screens that choose the setup, the platform, the card and the folder."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
Reference in new issue
Block a user