Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions nb_cli/handlers/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,24 @@
from . import templates
from .process import create_process, create_process_shell

try:
from pyfiglet import figlet_format
except ModuleNotFoundError as e:
if e.name == "pkg_resources":
raise ModuleNotFoundError("Please install setuptools to use pyfiglet") from e
raise

R = TypeVar("R")
P = ParamSpec("P")

DEFAULT_PYTHON = ("python3", "python")
WINDOWS_DEFAULT_PYTHON = ("python",)

_LOGO = """
d8b db .d88b. d8b db d88888b d8888b. .d88b. d888888b
888o 88 .8P Y8. 888o 88 88' 88 `8D .8P Y8. `~~88~~'
88V8o 88 88 88 88V8o 88 88ooooo 88oooY' 88 88 88
88 V8o88 88 88 88 V8o88 88~~~~~ 88~~~b. 88 88 88
88 V888 `8b d8' 88 V888 88. 88 8D `8b d8' 88
VP V8P `Y88P' VP V8P Y88888P Y8888P' `Y88P' YP
"""


def draw_logo() -> str:
return figlet_format("NoneBot", font="basic").strip()
return _LOGO.strip()


def get_config_manager(cwd: Path | None = None) -> ConfigManager:
Expand Down
37 changes: 7 additions & 30 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies = [
"virtualenv ~=20.21",
"cashews >=6.0, <8.0",
"typing-extensions ~=4.4",
"pyfiglet >=1.0.1, <2.0.0",
"noneprompt >=0.1.10, <1.0.0",
"pydantic >=1.10.0, <3.0.0, !=2.5.0, !=2.5.1",
"nonestorage>=0.1.0",
Expand Down