-
Notifications
You must be signed in to change notification settings - Fork 71
/
setup.py
49 lines (45 loc) · 1.58 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
42
43
44
45
46
47
48
49
"""setup.py file."""
from setuptools import setup, find_packages
from pathlib import Path
import netsim
import sys
long_description = (Path(__file__).parent / "README.md").read_text()
with open("requirements.txt", "r") as fs:
reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))]
if sys.version_info < (3, 8):
raise RuntimeError("This package requires Python 3.8+")
setup(
name="networklab",
version=netsim.__version__,
packages=find_packages(),
author="Ivan Pepelnjak",
author_email="[email protected]",
description="CLI-based Virtual Networking Lab Abstraction Layer",
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
],
url="https://github.com/ipspace/netlab",
include_package_data=True,
setup_requires=["wheel"],
python_requires='>=3.8', # Due to e.g. 'capture_output' in subprocess.run, and use of typing.Final
install_requires=reqs,
scripts=[ "netlab" ],
# entry_points={
# "console_scripts": ["netlab=netsim.cli:lab_commands"]
# },
package_data = {
"netsim": ["templates/*", "ansible/*", "extra/*", "reports/*", "install/*"]
}
)