rostree 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rostree/__init__.py CHANGED
@@ -1,5 +1,7 @@
1
1
  """rostree: visualize ROS 2 package dependencies as a tree (library, TUI, CLI)."""
2
2
 
3
+ from importlib.metadata import version, PackageNotFoundError
4
+
3
5
  from rostree.api import (
4
6
  build_tree,
5
7
  get_package_info,
@@ -16,5 +18,10 @@ __all__ = [
16
18
  "list_known_packages_by_source",
17
19
  "scan_workspaces",
18
20
  "WorkspaceInfo",
21
+ "__version__",
19
22
  ]
20
- __version__ = "0.1.0"
23
+
24
+ try:
25
+ __version__ = version("rostree")
26
+ except PackageNotFoundError:
27
+ __version__ = "0.0.0+unknown" # Not installed as package
rostree/cli.py CHANGED
@@ -592,7 +592,9 @@ def main(argv: list[str] | None = None) -> int:
592
592
  prog="rostree",
593
593
  description="Explore ROS 2 package dependencies from the command line.",
594
594
  )
595
- parser.add_argument("--version", action="version", version="%(prog)s 0.1.0")
595
+ from rostree import __version__
596
+
597
+ parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
596
598
 
597
599
  subparsers = parser.add_subparsers(dest="command", help="Available commands")
598
600
 
rostree/tui/app.py CHANGED
@@ -18,12 +18,12 @@ from rostree.api import build_tree, list_known_packages_by_source
18
18
  # Welcome banner: ROSTREE (all lines must be same length for proper centering)
19
19
  WELCOME_BANNER = """\
20
20
  [bold cyan]
21
- ██████╗ ██████╗ ███████╗ ████████╗ ██████╗ ███████╗ ███████╗
22
- ██╔══██╗ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔══██╗ ██╔════╝ ██╔════╝
23
- ██████╔╝ ██║ ██║ ███████╗ ██║ ██████╔╝ █████╗ █████╗
24
- ██╔══██╗ ██║ ██║ ╚════██║ ██║ ██╔══██╗ ██╔══╝ ██╔══╝
25
- ██║ ██║ ╚██████╔╝ ███████║ ██║ ██║ ██║ ███████╗ ███████╗
26
- ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚══════╝
21
+ ██████╗ ██████╗ ███████╗████████╗██████╗ ███████╗███████╗
22
+ ██╔══██╗██╔═══██╗██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔════╝
23
+ ██████╔╝██║ ██║███████╗ ██║ ██████╔╝█████╗ █████╗
24
+ ██╔══██╗██║ ██║╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══╝
25
+ ██║ ██║╚██████╔╝███████║ ██║ ██║ ██║███████╗███████╗
26
+ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝
27
27
  [/bold cyan]"""
28
28
 
29
29
  WELCOME_DESC = """[dim]Navigate and visualize ROS 2 package dependency trees.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rostree
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Explore ROS 2 package dependencies from the command line (CLI, TUI, library)
5
5
  Author: rostree contributors
6
6
  License: MIT
@@ -1,14 +1,14 @@
1
- rostree/__init__.py,sha256=6kFb52bjBJQMUbYeGOGuRDKpZjwKPEj1d91pw80xtD8,437
1
+ rostree/__init__.py,sha256=VLoW0ZPZl-J_B_8a1oKQWHq4ZWwco3vxl7-5AoPSx-o,630
2
2
  rostree/api.py,sha256=A2L7uuj3efJXwqazsL9j6y6hgkwxPBnwGv2dYNtFTwg,3646
3
- rostree/cli.py,sha256=SXdMznJJuy0wHINgZt3QE2DIinW9EfyahpVVG-berq0,25410
3
+ rostree/cli.py,sha256=GbgF0I0-gA2SmNrkdzcLwLOEPjVzA6r9PF4HlqivyMs,25456
4
4
  rostree/core/__init__.py,sha256=glLk6MYQvGz0jTre7cVaQhQ6PiAAWa1lXFFMFnWbHbo,582
5
5
  rostree/core/finder.py,sha256=lmfzjjHX-bDHprs3x-GKPztpCS4hVsZUq2fZOg64DTg,16801
6
6
  rostree/core/parser.py,sha256=_Yhyjrg7Ir-N80KqJnxPYRcejWepDZDFbw_BTKLBySs,3094
7
7
  rostree/core/tree.py,sha256=jBvd7_Pzk4ciO9dWV1r4NyU9q6BaXKiYRimbmK72oD4,4060
8
8
  rostree/tui/__init__.py,sha256=hHtp0ZeBL6drxVxnBi1pm2uRds5O-UbNASQ6xRzOJrs,64
9
- rostree/tui/app.py,sha256=xnWip-Ax1b20ZjH3w9Xs-gmnksLboHUMPV_lfLNwktE,24359
10
- rostree-0.2.0.dist-info/METADATA,sha256=qcIywivlvRxNz7OexDLnEKJ4hS0YsWqkhM1Ii6OXjaE,4552
11
- rostree-0.2.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
- rostree-0.2.0.dist-info/entry_points.txt,sha256=3FqDola110oRFImx5-IF3CEnfCXA3CDSM2fTzbES2Zo,45
13
- rostree-0.2.0.dist-info/licenses/LICENSE,sha256=mcuqLv_cT8O1n1fIsOkUNDMnKlrPgP5LVCMyyVl-tGk,1530
14
- rostree-0.2.0.dist-info/RECORD,,
9
+ rostree/tui/app.py,sha256=MOKWDaSdQW1eJzkNY9juDoFN2Pu-HHOqtZaqq6-UAvE,24327
10
+ rostree-0.2.1.dist-info/METADATA,sha256=KcfJWnZsVyCgKRE2Rj9eBhiGbtU1OqvQEvwqIfQqg_k,4552
11
+ rostree-0.2.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
+ rostree-0.2.1.dist-info/entry_points.txt,sha256=3FqDola110oRFImx5-IF3CEnfCXA3CDSM2fTzbES2Zo,45
13
+ rostree-0.2.1.dist-info/licenses/LICENSE,sha256=mcuqLv_cT8O1n1fIsOkUNDMnKlrPgP5LVCMyyVl-tGk,1530
14
+ rostree-0.2.1.dist-info/RECORD,,