Skip to content

Commit

Permalink
refactor(pikatypes): move aur_types to this new module
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Aug 22, 2024
1 parent b3e20e8 commit 6513865
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pikaur/aur.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from urllib import parse
from urllib.parse import quote

from .aur_types import AurBaseUrl, AURPackageInfo
from .exceptions import AURError
from .logging_extras import create_logger
from .pikatypes import AurBaseUrl, AURPackageInfo
from .progressbar import ThreadSafeProgressBar
from .provider import Provider
from .urllib_helper import get_gzip_from_url, get_json_from_url
Expand Down
2 changes: 1 addition & 1 deletion pikaur/aur_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .version import VersionMatcher

if TYPE_CHECKING:
from .aur_types import AURPackageInfo
from .pikatypes import AURPackageInfo


logger = create_logger("aur_deps")
Expand Down
2 changes: 1 addition & 1 deletion pikaur/conflicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
if TYPE_CHECKING:
from collections.abc import Sequence

from .aur_types import AURPackageInfo
from .core import AURInstallInfo
from .pikatypes import AURPackageInfo


def get_new_repo_pkgs_conflicts(repo_packages: list[str]) -> dict[str, list[str]]:
Expand Down
2 changes: 1 addition & 1 deletion pikaur/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from typing_extensions import TypedDict

from .aur_types import AURPackageInfo
from .pikatypes import AURPackageInfo

IOStream = IO[bytes] | int | None

Expand Down
2 changes: 1 addition & 1 deletion pikaur/getpkgbuild_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from .args import parse_args
from .aur import find_aur_packages, get_repo_url
from .aur_deps import get_aur_deps_list
from .aur_types import AURPackageInfo
from .core import check_executables, interactive_spawn
from .exceptions import PackagesNotFoundInRepoError
from .i18n import translate
from .pacman import PackageDB
from .pikaprint import print_stdout
from .pikatypes import AURPackageInfo
from .print_department import print_not_found_packages
from .urllib_helper import wrap_proxy_env

Expand Down
2 changes: 1 addition & 1 deletion pikaur/install_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from typing import TYPE_CHECKING

from .args import parse_args, reconstruct_args
from .aur_types import AURPackageInfo
from .build import PackageBuild, PkgbuildChanged, clone_aur_repos
from .config import DiffPagerValues, PikaurConfig, UsingDynamicUsers
from .conflicts import find_aur_conflicts
Expand Down Expand Up @@ -52,6 +51,7 @@
print_stdout,
print_warning,
)
from .pikatypes import AURPackageInfo
from .print_department import (
pretty_format_sysupgrade,
print_not_found_packages,
Expand Down
2 changes: 1 addition & 1 deletion pikaur/install_info_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .args import parse_args, reconstruct_args
from .aur import find_aur_packages, find_aur_provided_deps, strip_aur_repo_name
from .aur_deps import find_aur_deps, find_repo_deps_of_aur_pkgs
from .aur_types import AURPackageInfo
from .core import AURInstallInfo, ComparableType, PackageSource, RepoInstallInfo
from .exceptions import DependencyError, DependencyVersionMismatchError, SysExit
from .i18n import translate
Expand All @@ -22,6 +21,7 @@
strip_repo_name,
)
from .pikaprint import print_error, print_stderr, print_stdout
from .pikatypes import AURPackageInfo
from .print_department import print_ignored_package, print_not_found_packages
from .prompt import ask_to_continue
from .replacements import find_replacements
Expand Down
2 changes: 1 addition & 1 deletion pikaur/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import pyalpm

from .args import parse_args
from .aur_types import AURPackageInfo
from .config import (
AurReposCachePath,
CacheRoot,
Expand All @@ -44,6 +43,7 @@
from .logging_extras import create_logger
from .pacman import PackageDB
from .pikaprint import TTYRestore, bold_line, print_error, print_stderr, print_warning
from .pikatypes import AURPackageInfo
from .pikspect import PikspectSignalHandler
from .pkg_cache_cli import cli_clean_packages_cache
from .print_department import print_version
Expand Down
2 changes: 1 addition & 1 deletion pikaur/pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from re import Pattern
from typing import Final

from .aur_types import AURPackageInfo
from .pikatypes import AURPackageInfo


REPO_NAME_DELIMITER: "Final" = "/"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pikaur/print_department.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from .alpm import OFFICIAL_REPOS, PyAlpmWrapper
from .args import parse_args
from .aur_types import AURPackageInfo
from .config import VERSION, AurSearchSortingValues, PikaurConfig, UpgradeSortingValues
from .core import DEFAULT_TIMEZONE, InstallInfo
from .i18n import translate, translate_many
Expand All @@ -26,6 +25,7 @@
print_warning,
printable_length,
)
from .pikatypes import AURPackageInfo
from .version import get_common_version, get_version_diff

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion pikaur/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

import pyalpm

from .aur_types import AURPackageInfo
from .i18n import translate
from .pikaprint import Colors, bold_line, color_line, print_error, print_stdout
from .pikatypes import AURPackageInfo
from .print_department import print_package_search_results
from .prompt import NotANumberInputError, get_multiple_numbers_input
from .version import VersionMatcher
Expand Down
2 changes: 1 addition & 1 deletion pikaur/search_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
get_all_aur_names,
get_all_aur_packages,
)
from .aur_types import AURPackageInfo
from .exceptions import AURError, SysExit
from .i18n import translate
from .pacman import PackageDB, get_pkg_id, refresh_pkg_db_if_needed
from .pikaprint import print_error, print_stderr
from .pikatypes import AURPackageInfo
from .print_department import print_package_search_results

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion pikaur/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

import pyalpm

from .aur_types import AURPackageInfo
from .core import InstallInfo
from .pikatypes import AURPackageInfo


DEVEL_PKGS_POSTFIXES: "Final" = (
Expand Down
2 changes: 1 addition & 1 deletion pikaur_meta_helpers/find_aur_pkgs_with_aur_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import tqdm # type: ignore[import-untyped]

from pikaur.aur_types import AURPackageInfo
from pikaur.pikatypes import AURPackageInfo
from pikaur.version import VersionMatcher
from pikaur_meta_helpers.util import load_aur_dump

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import tqdm # type: ignore[import-untyped]

from pikaur.aur_types import AURPackageInfo
from pikaur.pikatypes import AURPackageInfo
from pikaur.version import VersionMatcher
from pikaur_meta_helpers.util import load_aur_dump

Expand Down
2 changes: 1 addition & 1 deletion pikaur_meta_helpers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Final

from pikaur.aur import get_all_aur_packages
from pikaur.aur_types import AURPackageInfo
from pikaur.pikatypes import AURPackageInfo

PICKLE_FILE: Final = Path("aur_db.dump")

Expand Down

0 comments on commit 6513865

Please sign in to comment.