mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Refactor galaxy.tool_shed.tool_shed_registry -> galaxy.util.tool_shed.
common_util makes heavy use of this implicitly so typing and designwise this will be better.
This commit is contained in:
+1
-1
@@ -91,7 +91,6 @@ from galaxy.security.vault import (
|
||||
Vault,
|
||||
VaultFactory,
|
||||
)
|
||||
from galaxy.tool_shed import tool_shed_registry
|
||||
from galaxy.tool_shed.galaxy_install.installed_repository_manager import InstalledRepositoryManager
|
||||
from galaxy.tool_shed.galaxy_install.update_repository_manager import UpdateRepositoryManager
|
||||
from galaxy.tool_util.deps import containers
|
||||
@@ -120,6 +119,7 @@ from galaxy.util import (
|
||||
)
|
||||
from galaxy.util.dbkeys import GenomeBuilds
|
||||
from galaxy.util.task import IntervalTask
|
||||
from galaxy.util.tool_shed import tool_shed_registry
|
||||
from galaxy.visualization.data_providers.registry import DataProviderRegistry
|
||||
from galaxy.visualization.genomes import Genomes
|
||||
from galaxy.visualization.plugins.registry import VisualizationsRegistry
|
||||
|
||||
@@ -30,6 +30,7 @@ from galaxy.security.vault import Vault
|
||||
from galaxy.tool_util.deps.views import DependencyResolversView
|
||||
from galaxy.tool_util.verify import test_data
|
||||
from galaxy.util.dbkeys import GenomeBuilds
|
||||
from galaxy.util.tool_shed.tool_shed_registry import Registry as ToolShedRegistry
|
||||
from galaxy.web_stack import ApplicationStack
|
||||
from galaxy.webhooks import WebhooksRegistry
|
||||
from galaxy.workflow.trs_proxy import TrsProxy
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@ from typing import (
|
||||
|
||||
from galaxy.util import parse_xml_string
|
||||
from galaxy.util.path import StrPath
|
||||
from galaxy.util.tool_shed.common_util import remove_protocol_from_tool_shed_url
|
||||
from galaxy.util.tool_shed import common_util
|
||||
from galaxy.util.tool_shed.xml_util import parse_xml
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
@@ -68,9 +68,9 @@ class Registry:
|
||||
Following more what galaxy.demo_sequencer.controllers.common does might be more appropriate at
|
||||
some stage...
|
||||
"""
|
||||
url_sans_protocol = remove_protocol_from_tool_shed_url(url)
|
||||
url_sans_protocol = common_util.remove_protocol_from_tool_shed_url(url)
|
||||
for shed_name, shed_url in self.tool_sheds.items():
|
||||
shed_url_sans_protocol = remove_protocol_from_tool_shed_url(shed_url)
|
||||
shed_url_sans_protocol = common_util.remove_protocol_from_tool_shed_url(shed_url)
|
||||
if url_sans_protocol.startswith(shed_url_sans_protocol):
|
||||
return self.tool_sheds_auth[shed_name]
|
||||
log.debug(f"Invalid url '{str(url)}' received by tool shed registry's url_auth method.")
|
||||
@@ -15,7 +15,7 @@ from galaxy.managers.workflows import (
|
||||
WorkflowsManager,
|
||||
)
|
||||
from galaxy.schema.schema import WorkflowIndexQueryPayload
|
||||
from galaxy.tool_shed.tool_shed_registry import Registry
|
||||
from galaxy.util.tool_shed.tool_shed_registry import Registry
|
||||
from galaxy.webapps.galaxy.services.base import ServiceBase
|
||||
from galaxy.webapps.galaxy.services.sharable import ShareableService
|
||||
|
||||
|
||||
Reference in New Issue
Block a user