The current implementation of the PluginConfig class in the __init__.py file shows a mismatch between the defined attributes (verbose_name and description).
Expected Behavior
Specifically, the following corrections should be made in the __init__.py file:
verbose_name = metadata.get("Name")
description = metadata.get("Summary")
Additional Context:
Also update the description and dynamically updating the long description in the setup.py file.
Example for Setup.py
import os
# ...
# Set long description from README.md
readme = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme) as fh:
long_description = fh.read()
# ...
setup(
description=`'Plugin Description'`,
long_description=long_description,
long_description_content_type="text/markdown",
)
Note: Replace Plugin Description with the actual description of your plugin.
Observed Behavior
The observed behaviour indicates that these attributes are being set as follows:
verbose_name = metadata.get("Summary")description = metadata.get("Long-Description")
NetBox plugin version
v3.5.9
NetBox version
v0.0.5
Steps to Reproduce
The current implementation of the
PluginConfig
class in the__init__.py
file shows a mismatch between the defined attributes (verbose_name
anddescription
).Expected Behavior
Specifically, the following corrections should be made in the
__init__.py
file:verbose_name = metadata.get("Name")
description = metadata.get("Summary")
Additional Context:
setup.py
file.Example for Setup.py
Plugin Description
with the actual description of your plugin.Observed Behavior
The observed behaviour indicates that these attributes are being set as follows:
verbose_name = metadata.get("Summary")
description = metadata.get("Long-Description")
Resolve By
2021-01-04