File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
cesnet_service_path_plugin Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11"""Top-level package for Cesnet ServicePath Plugin."""
22
3+ from importlib import metadata
34from netbox .plugins import PluginConfig
45
5- from .version import __description__ , __name__ , __version__
6+ # Get package metadata from pyproject.toml
7+ _metadata = metadata .metadata ("cesnet_service_path_plugin" )
8+ __version__ = _metadata ["Version" ]
9+ __description__ = _metadata ["Summary" ]
10+ __name__ = _metadata ["Name" ]
11+ __author__ = _metadata ["Author" ]
12+ __email__ = _metadata ["Author-email" ]
613
714
815class CesnetServicePathPluginConfig (PluginConfig ):
@@ -11,6 +18,7 @@ class CesnetServicePathPluginConfig(PluginConfig):
1118 description = __description__
1219 version = __version__
1320 base_url = "cesnet-service-path-plugin"
21+ author = __email__
1422
1523
1624config = CesnetServicePathPluginConfig
You can’t perform that action at this time.
0 commit comments