diff --git a/nb_cli/handlers/meta.py b/nb_cli/handlers/meta.py index 4cc56128..25baf30a 100644 --- a/nb_cli/handlers/meta.py +++ b/nb_cli/handlers/meta.py @@ -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: diff --git a/pdm.lock b/pdm.lock index e4172bff..1be7c35e 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev", "docs", "i18n"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:45d8ea7f4e14ecd0c8dcb9d949d6f7eea66369deae0b0c13447c344e6829bb0f" +content_hash = "sha256:f67ca82952a0388c8488a2ba5962dc5e7b7e9613083d81398f7093e08095c463" [[metadata.targets]] requires_python = "~=3.10" @@ -26,19 +26,18 @@ files = [ [[package]] name = "anyio" -version = "4.11.0" +version = "4.12.0" requires_python = ">=3.9" summary = "High-level concurrency and networking framework on top of asyncio or Trio" groups = ["default"] dependencies = [ "exceptiongroup>=1.0.2; python_version < \"3.11\"", "idna>=2.8", - "sniffio>=1.1", "typing-extensions>=4.5; python_version < \"3.13\"", ] files = [ - {file = "anyio-4.11.0-py3-none-any.whl", hash = "sha256:0287e96f4d26d4149305414d4e3bc32f0dcd0862365a4bddea19d7a1ec38c4fc"}, - {file = "anyio-4.11.0.tar.gz", hash = "sha256:82a8d0b81e318cc5ce71a5f1f8b5c4e63619620b63141ef8c995fa0db95a57c4"}, + {file = "anyio-4.12.0-py3-none-any.whl", hash = "sha256:dad2376a628f98eeca4881fc56cd06affd18f659b17a747d3ff0307ced94b1bb"}, + {file = "anyio-4.12.0.tar.gz", hash = "sha256:73c693b567b0c55130c104d0b43a9baf3aa6a31fc6110116509f27bf75e21ec0"}, ] [[package]] @@ -859,17 +858,6 @@ files = [ {file = "pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e"}, ] -[[package]] -name = "pyfiglet" -version = "1.0.4" -requires_python = ">=3.9" -summary = "Pure-python FIGlet implementation" -groups = ["default"] -files = [ - {file = "pyfiglet-1.0.4-py3-none-any.whl", hash = "sha256:65b57b7a8e1dff8a67dc8e940a117238661d5e14c3e49121032bd404d9b2b39f"}, - {file = "pyfiglet-1.0.4.tar.gz", hash = "sha256:db9c9940ed1bf3048deff534ed52ff2dafbbc2cd7610b17bb5eca1df6d4278ef"}, -] - [[package]] name = "pygments" version = "2.19.2" @@ -1056,17 +1044,6 @@ files = [ {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"}, ] -[[package]] -name = "sniffio" -version = "1.3.1" -requires_python = ">=3.7" -summary = "Sniff out which async library your code is running under" -groups = ["default"] -files = [ - {file = "sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"}, - {file = "sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"}, -] - [[package]] name = "text-unidecode" version = "1.3" @@ -1079,7 +1056,7 @@ files = [ [[package]] name = "textual" -version = "6.6.0" +version = "6.7.0" requires_python = "<4.0,>=3.9" summary = "Modern Text User Interface framework" groups = ["default"] @@ -1092,8 +1069,8 @@ dependencies = [ "typing-extensions<5.0.0,>=4.4.0", ] files = [ - {file = "textual-6.6.0-py3-none-any.whl", hash = "sha256:5a9484bd15ee8a6fd8ac4ed4849fb25ee56bed2cecc7b8a83c4cd7d5f19515e5"}, - {file = "textual-6.6.0.tar.gz", hash = "sha256:53345166d6b0f9fd028ed0217d73b8f47c3a26679a18ba3b67616dcacb470eec"}, + {file = "textual-6.7.0-py3-none-any.whl", hash = "sha256:c5ed36840187c0bdfeb9bd46217d18fe26dca3befcdc695edc848cf24b3133a4"}, + {file = "textual-6.7.0.tar.gz", hash = "sha256:ef1fd587a3b5b29777d4b03037e0a8f10d174e63366e99a5d8518a74b5382e38"}, ] [[package]] diff --git a/pyproject.toml b/pyproject.toml index a5606ae3..1cabb266 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",