Skip to content

Commit 6554e30

Browse files
authored
Merge pull request #79 from jedie/dev
replace click with tyro
2 parents 2e54880 + a6065e8 commit 6554e30

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ To make a new release, do this:
483483
[comment]: <> (✂✂✂ auto generated history start ✂✂✂)
484484

485485
* [v0.10.0](https://github.com/jedie/DragonPy/compare/v0.9.3...v0.10.0)
486+
* 2025-04-22 - replace click with tyro
486487
* 2025-04-22 - Migrate from pip-tools to uv
487488
* [v0.9.3](https://github.com/jedie/DragonPy/compare/v0.9.2...v0.9.3)
488489
* 2024-09-24 - Remove manageprojects from normal dependencies, it's not needed ;)

dragonpy/cli_app/gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def run(
2828
machine: TyroMachineArgType,
2929
trace: TyroTraceArgType,
3030
max_ops: TyroMaxOpsArgType,
31-
verbosity: int, # TODO: use TyroVerbosityArgType
31+
verbosity: int = 0, # TODO: use TyroVerbosityArgType
3232
):
3333
"""Run a machine emulation"""
3434
machine_run_func, MachineConfigClass = machine_dict[machine]

dragonpy/cli_arg_types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
help='Create trace lines',
1313
),
1414
]
15+
1516
TyroMaxOpsArgType = Annotated[
16-
int,
17+
int | None,
1718
tyro.conf.arg(default=None, help='If given: Stop CPU after given cycles else: run forever'),
1819
]
1920

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ dependencies = [
1515
"cli-base-utilities", # https://github.com/jedie/cli-base-utilities
1616
"pygments", # https://pygments.org/
1717
"bx_py_utils", # https://github.com/boxine/bx_py_utils
18-
"click", # https://github.com/pallets/click/
19-
"rich-click", # https://github.com/ewels/rich-click
18+
"tyro", # https://github.com/brentyi/tyro
2019
"rich", # https://github.com/Textualize/rich
2120
]
2221

@@ -56,6 +55,7 @@ Source = "https://github.com/jedie/DragonPy"
5655
dragonpy_app = "dragonpy.__main__:main"
5756
dragonpy_dev = "dragonpy.cli_dev:main"
5857

58+
5959
[build-system]
6060
requires = ["hatchling"]
6161
build-backend = "hatchling.build"
@@ -139,6 +139,7 @@ applied_migrations = [
139139
"765b8fb", # 2024-03-12T09:08:01+01:00
140140
"56c3caa", # 2024-09-22T16:52:30+02:00
141141
"a294179", # 2025-04-22T17:02:46+02:00
142+
"4662321", # 2025-04-22T20:40:34+02:00
142143
]
143144

144145
[manageprojects.cookiecutter_context.cookiecutter]

uv.lock

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)