-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
72 lines (65 loc) · 2.18 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
"""Setup script"""
import sys
import os
from shutil import rmtree
from setuptools import find_packages, setup
# Packages required to run Icarus
requires = [
"networkx (>=2.0)",
"numpy (>=1.4)",
"scipy (>=0.16)",
"fnss (>=0.9.0)",
"matplotlib (>=1.5.3)",
"python-dateutil (>=2.5.3)",
"click (>=6.6)",
]
# It imports release module this way because if it tried to import icarus package
# and some required dependencies were not installed, that would fail
# This is the only way to access the release module without needing all
# dependencies.
sys.path.insert(0, "icarus")
import release
sys.path.pop(0)
# Clean tasks
if os.path.exists("MANIFEST"):
os.remove("MANIFEST")
if os.path.exists("icarus.egg-info"):
rmtree("icarus.egg-info")
# Main scripts
if __name__ == "__main__":
setup(
name="icarus",
version=release.version,
author=release.author,
author_email=release.author_email,
packages=find_packages(),
url=release.url,
download_url=release.download_url,
license=release.license_long,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
],
entry_points={"console_scripts": {"{0} = {0}.main:main".format("icarus")}},
description=release.description_short,
long_description=release.description_long,
python_requires=">=3.5.0",
install_requires=requires,
keywords=[
"caching",
"simulation",
"Information-Centric Networking",
"Content Delivery Networks",
],
)