diff --git a/netbox_secretstore/__init__.py b/netbox_secretstore/__init__.py index 2491fd8..0b95c71 100644 --- a/netbox_secretstore/__init__.py +++ b/netbox_secretstore/__init__.py @@ -1,21 +1,24 @@ from extras.plugins import PluginConfig +try: + from importlib.metadata import metadata +except ModuleNotFoundError: + from importlib_metadata import metadata + +metadata = metadata('netbox_secretstore') + + class NetBoxSecretStore(PluginConfig): - name = 'netbox_secretstore' - verbose_name = 'Netbox Secret Store' - description = 'A Secret Storage for NetBox' - version = '1.0.8' - author = 'NetBox Maintainers' - author_email = '' + name = metadata.get('Name').replace('-', '_') + verbose_name = metadata.get('Summary') + description = metadata.get('Description') + version = metadata.get('Version') + author = metadata.get('Author') + author_email = metadata.get('Author-email') base_url = 'netbox_secretstore' min_version = '3.0.0' required_settings = [] - caching_config = { - '*': { - 'ops': 'all' - } - } default_settings = { 'public_key_size': 2048 } diff --git a/setup.py b/setup.py index 8f40538..753f1ca 100644 --- a/setup.py +++ b/setup.py @@ -2,13 +2,16 @@ setup( name='netbox-secretstore', - version='1.0.8', - description='A Secret store for NetBox', - url='https://github.com/dansheps/netbox-secretstore', + version='1.0.9', + description='Netbox Secret Store', + long_description='A Secret store for NetBox', + url='https://github.com/dansheps/netbox-secretstore/', + download_url='https://www.pypi.org/project/netbox-secretstore/', author='Daniel Sheppard', author_email='dans@dansheps.com', license='Apache 2.0', install_requires=[ + 'importlib', 'pycryptodome', 'netbox-plugin-extensions' ],