Switch manage and CLI imports to bearhub namespace

This commit is contained in:
Sebastian Palencsar
2026-05-31 16:11:23 +02:00
parent 8449c7d1e5
commit d5bea35c70
20 changed files with 56 additions and 24 deletions

2
bearhub/api/__init__.py Normal file
View File

@@ -0,0 +1,2 @@
from bauh.api import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.api.abstract import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.api.abstract.context import * # noqa: F401,F403

2
bearhub/api/http.py Normal file
View File

@@ -0,0 +1,2 @@
from bauh.api.http import * # noqa: F401,F403

2
bearhub/api/paths.py Normal file
View File

@@ -0,0 +1,2 @@
from bauh.api.paths import * # noqa: F401,F403

2
bearhub/api/user.py Normal file
View File

@@ -0,0 +1,2 @@
from bauh.api.user import * # noqa: F401,F403

View File

@@ -3,17 +3,17 @@ import os
import urllib3
from bearhub import ROOT_DIR, __version__
from bauh.api import user
from bauh.api.abstract.context import ApplicationContext
from bauh.api.http import HttpClient
from bearhub.api import user
from bearhub.api.abstract.context import ApplicationContext
from bearhub.api.http import HttpClient
from bearhub.cli import __app_name__, cli_args
from bearhub.cli.controller import CLIManager
from bauh.commons.internet import InternetChecker
from bearhub.commons.internet import InternetChecker
from bearhub.context import generate_i18n, DEFAULT_I18N_KEY
from bauh.view.core import gems
from bearhub.view.core import gems
from bearhub.view.core.config import CoreConfigManager
from bauh.view.core.controller import GenericSoftwareManager
from bauh.view.core.downloader import AdaptableFileDownloader
from bearhub.view.core.controller import GenericSoftwareManager
from bearhub.view.core.downloader import AdaptableFileDownloader
from bearhub.view.util import logs, util, resource
from bearhub.view.util.cache import DefaultMemoryCacheFactory
from bearhub.view.util.disk import DefaultDiskCacheLoaderFactory

View File

@@ -1,7 +1,7 @@
import json
from bearhub.cli import __app_name__
from bauh.view.core.controller import GenericSoftwareManager
from bearhub.view.core.controller import GenericSoftwareManager
class CLIManager:

View File

@@ -0,0 +1,2 @@
from bauh.commons import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.commons.config import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.commons.internet import * # noqa: F401,F403

View File

@@ -5,21 +5,21 @@ from typing import Tuple
from PyQt5.QtWidgets import QApplication, QWidget
from bearhub import ROOT_DIR, __app_name__, __version__
from bauh.api import user
from bauh.api.abstract.context import ApplicationContext
from bauh.api.http import HttpClient
from bauh.commons.internet import InternetChecker
from bearhub.api import user
from bearhub.api.abstract.context import ApplicationContext
from bearhub.api.http import HttpClient
from bearhub.commons.internet import InternetChecker
from bearhub.context import generate_i18n, DEFAULT_I18N_KEY, new_qt_application
from bauh.view.core import gems
from bauh.view.core.controller import GenericSoftwareManager
from bauh.view.core.downloader import AdaptableFileDownloader
from bauh.view.core.suggestions import read_suggestions_mapping
from bauh.view.qt.prepare import PreparePanel
from bauh.view.qt.settings import SettingsWindow
from bauh.view.qt.window import ManageWindow
from bauh.view.util import resource, util
from bauh.view.util.cache import DefaultMemoryCacheFactory
from bauh.view.util.disk import DefaultDiskCacheLoaderFactory
from bearhub.view.core import gems
from bearhub.view.core.controller import GenericSoftwareManager
from bearhub.view.core.downloader import AdaptableFileDownloader
from bearhub.view.core.suggestions import read_suggestions_mapping
from bearhub.view.qt.prepare import PreparePanel
from bearhub.view.qt.settings import SettingsWindow
from bearhub.view.qt.window import ManageWindow
from bearhub.view.util import resource, util
from bearhub.view.util.cache import DefaultMemoryCacheFactory
from bearhub.view.util.disk import DefaultDiskCacheLoaderFactory
def new_manage_panel(app_args: Namespace, app_config: dict, logger: logging.Logger) -> Tuple[QApplication, QWidget]:

View File

@@ -1,5 +1,5 @@
from bauh.api.paths import CONFIG_DIR
from bauh.commons.config import YAMLConfigManager
from bearhub.api.paths import CONFIG_DIR
from bearhub.commons.config import YAMLConfigManager
FILE_PATH = f'{CONFIG_DIR}/config.yml'

View File

@@ -0,0 +1,2 @@
from bauh.view.core.controller import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.view.core.downloader import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.view.core.gems import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.view.core.suggestions import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.view.qt.prepare import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.view.qt.settings import * # noqa: F401,F403

View File

@@ -0,0 +1,2 @@
from bauh.view.qt.window import * # noqa: F401,F403