Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (53 loc) · 2.22 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (53 loc) · 2.22 KB
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
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python3
"""Setuptools Configuration"""
from setuptools import setup, find_packages
from os.path import join
from comnetsemu.net import VERSION
scripts = [join("bin", filename) for filename in ["ce"]]
modname = distname = "comnetsemu"
long_description = ""
with open("./README.md", encoding="utf-8") as readme_md:
long_description = readme_md.read()
setup(
name=distname,
version=VERSION,
description="A virtual emulator/testbed designed for the book: Computing in Communication Networks: From Theory to Practice",
author="The Deutsche Telekom Chair of Communication Networks, TU Dresden",
author_email="zuo.xiang@tu-dresden.de",
packages=find_packages(exclude=["app", "examples", "util", "venv"]),
long_description=long_description,
url="https://github.com/stevelorenz/comnetsemu",
classifiers=[
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: System :: Emulators",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
],
keywords="networking emulator SDN NFV Docker",
python_requires=">=3.12",
# MARK: MINIMAL requirements
# Only lower bounds: on Ubuntu 26.04 these packages come from apt
# (python3-docker, python3-networkx, ...) and pip must accept them as they are.
# Ryu is not listed any more: it does not run on the Python of Ubuntu 26.04
# and is only needed by some applications in ./app, not by the emulator.
install_requires=[
"docker>=4.1.0",
"networkx>=2.4",
"psutil>=5.5.0",
"pyroute2>=0.5.9",
"requests>=2.22.0",
# Mininet is installed FROM SOURCE CODE because:
# - The version in Ubuntu's repo is too old
# - It's not fully available on PyPi (The searchable package on PyPi
# does not work out-of-box yet. Check: https://github.com/mininet/mininet/pull/970)
# - Mininet needs to be patched when some features of ComNetsEmu can
# not be implemented without modifying the source code of Mininet
"mininet>=2.3.0.dev6",
],
scripts=scripts,
)