netbox-acls/setup.py
Abhimanyu Saharan e43b5e41f1
Added testing framework (#121)
* added api test case for access list

* initial testing framework
2023-01-25 20:01:05 -05:00

41 lines
1.1 KiB
Python

import codecs
import os.path
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = fh.read()
def read(rel_path):
with codecs.open(os.path.join(here, rel_path), "r") as fp:
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=get_version("netbox_acls/version.py"),
description="A NetBox plugin for Access List management",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ryanmerolle/netbox-acls",
install_requires=[],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
classifiers=[
"Framework :: Django",
"Programming Language :: Python :: 3",
],
)