-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
41 lines (34 loc) · 1.2 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
import os
from setuptools import setup, find_packages
package_dir = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "packetnetworking"
)
def find_templates():
files = []
for path, directories, filenames in os.walk(package_dir):
if "templates" not in path.split(os.path.sep):
continue
for file in filenames:
if not file.endswith(".j2"):
continue
files.append(os.path.relpath(os.path.join(path, file), package_dir))
return files
test_reqs = ["pytest", "pytest-cov", "mock", "faker", "netaddr", "tox"]
setup(
name="packet-networking",
version="2.1",
description="Tool used to setup the network files for an operating system.",
author="Manny Mendez, Mike Mason",
author_email="[email protected], [email protected]",
url="https://github.com/packethost/packet-networking/",
packages=find_packages(),
install_requires=["click", "jinja2", "requests"],
package_data={"packetnetworking": find_templates()},
extras_require={"test": test_reqs},
tests_require=test_reqs,
entry_points="""
[console_scripts]
packet-networking=packetnetworking.cli:cli
""",
)