15 lines
358 B
Python
15 lines
358 B
Python
"""Supported upload function."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from importlib import import_module
|
|
|
|
|
|
def run_upload(plugin_name: str, local: Path, remote: str) -> None:
|
|
"""Load a plugin and start upload."""
|
|
plugin = import_module(f".{plugin_name}", "builder.upload")
|
|
|
|
# Run upload
|
|
plugin.upload(local, remote)
|