-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
30 lines (26 loc) · 810 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from setuptools import find_packages, setup
import json
from pathlib import Path
here = Path(__file__).parent.resolve()
pluginvars={}
with open(f"{here}/netbox_ipcalculator/pluginvars.json", "r") as pluginvarsfile:
pluginvars = json.load(pluginvarsfile)
for pluginvar in pluginvars:
locals()[f"{pluginvar}"]=pluginvars[pluginvar]
long_description = ''
with open(f"{here}/README.md", "r") as fh:
long_description = fh.read()
setup(
name = __name__,
version = __version__,
description = __description__,
long_description = long_description,
long_description_content_type = "text/markdown",
url = __url__,
author = __author__,
license='Apache 2.0',
install_requires=[],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
)