mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
correct version and package details (#101)
* correct version and package details
This commit is contained in:
parent
fd449a12d9
commit
a3e5955363
@ -4,13 +4,22 @@ Define the NetBox Plugin
|
||||
|
||||
from extras.plugins import PluginConfig
|
||||
|
||||
from .version import __version__
|
||||
|
||||
|
||||
class NetBoxACLsConfig(PluginConfig):
|
||||
"""
|
||||
Plugin specifc configuration
|
||||
"""
|
||||
|
||||
class NetBoxAccessListsConfig(PluginConfig):
|
||||
name = "netbox_acls"
|
||||
verbose_name = "Access Lists"
|
||||
version = __version__
|
||||
description = "Manage simple ACLs in NetBox"
|
||||
version = "1.0.0"
|
||||
base_url = "access-lists"
|
||||
min_version = "3.3.0"
|
||||
max_version = "3.3.99"
|
||||
# default_settings = {}
|
||||
|
||||
|
||||
config = NetBoxAccessListsConfig
|
||||
config = NetBoxACLsConfig
|
||||
|
||||
@ -1 +1 @@
|
||||
__version__ = "1.0.0"
|
||||
__version__ = "1.1.0"
|
||||
|
||||
17
setup.py
17
setup.py
@ -3,7 +3,7 @@ import os.path
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
with open("README.md") as fh:
|
||||
with open("README.md", "r", encoding="utf-8") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
|
||||
@ -13,10 +13,17 @@ def read(rel_path):
|
||||
return fp.read()
|
||||
|
||||
|
||||
def get_version(rel_path):
|
||||
for line in read(rel_path).splitlines():
|
||||
if not line.startswith("__version__"):
|
||||
raise RuntimeError("Unable to find version string.")
|
||||
delim = '"' if '"' in line else "'"
|
||||
return line.split(delim)[1]
|
||||
|
||||
|
||||
setup(
|
||||
name="netbox-acls",
|
||||
version="1.1.0",
|
||||
# version=get_version("netbox_acls/version.py"),
|
||||
version=get_version("netbox_acls/version.py"),
|
||||
description="A NetBox plugin for Access List management",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
@ -25,4 +32,8 @@ setup(
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
classifiers=[
|
||||
"Framework :: Django",
|
||||
"Programming Language :: Python :: 3",
|
||||
],
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user