Skip to content
Open
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
]
dependencies = [
"art>=6",
"click>=8",
"colorama>=0.4",
"hexbytes>1",
"prompt_toolkit>=3",
Expand Down
12 changes: 12 additions & 0 deletions tests/test_typer_validators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
from importlib.metadata import requires

import typer
from eth_account import Account
Expand Down Expand Up @@ -51,6 +52,17 @@ def test_parse_checksum_address(self):
def test_parse_hex_str(self):
self.assertEqual(HexBytesParser().convert("0x12", None, None), HexBytes("0x12"))

def test_click_is_a_required_dependency(self):
# The parsers above subclass `click.ParamType`, and typer>=0.26 no
# longer depends on click, so it must be declared for installs
# without the `trezor` extra (which also pulls it in)
required = [
r.split(";")[0].strip().lower()
for r in requires("safe-cli") or []
if "extra ==" not in r
]
self.assertTrue(any(r.startswith("click") for r in required), required)


if __name__ == "__main__":
unittest.main()
2 changes: 2 additions & 0 deletions uv.lock

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

Loading