-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
79 lines (73 loc) · 2.9 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
73
74
75
76
77
78
79
from setuptools import setup, find_packages
meta = {}
with open("grape/meta.py") as fp:
exec(fp.read(), meta)
# Package meta-data.
IMPORTNAME = meta['__title__']
PIPNAME = meta['__packagename__']
NAME = meta['__title__']
DESCRIPTION = 'GRAph Parallel Environment.'
URL = 'https://github.com/mathLab/GRAPE'
MAIL = meta['__mail__']
AUTHOR = meta['__author__']
VERSION = meta['__version__']
KEYWORDS = (
'risk-analysis graph-theory parallel-programming shortest-path '
'system-analysis fault-diagnostics'
)
REQUIRED = [
'networkx', 'numpy', 'scipy', 'matplotlib', 'pandas', 'deap',
]
EXTRAS = {
'docs': ['sphinx', 'sphinx_rtd_theme'],
'test': ['pytest', 'pytest-cov'],
}
LDESCRIPTION = (
"GRAPE is a Python package that takes advantage of Graph Theory "
"into a High Performance Computing (HPC) environment to develop a "
"screening tool aimed at studying the effect of different kinds of "
"perturbations in interconnected systems, such as indsutrial plants."
"\n"
"The tool allows to represent the dependencies between components and "
"predict the state of health and the residual functionality of degradable "
"systems after a damage, suggesting the proper reconfiguration strategies "
"to mitigate it. The results obtained from the graph analysis can be "
"therefore used to improve topology, robustness, and resilience profile "
"of industrial facilities against domino effect propagation."
"In particular, the components contribution to the cascade effects "
"resulting from adverse events can be evaluated through centrality and "
"efficiency measures, highlighting the plants major criticalities, "
"vulnerabilities and potential weak points."
"\n"
"Considering that the most computationally expensive parts of the program "
"involve the calculation of shortest paths, parallelization of shortest "
"path computation in large unweighted graphs was integrated in the "
"program. This was done taking advantage of the Python module "
"multiprocessing. Two different sequential algorithms for the solution of "
"the shortest path problem have been parallelized including a Single "
"Source Shortest Path (SSSP) algorythm for sparse graphs and an All Pairs "
"Shortest Path one (APSP) for dense graphs.\n"
)
setup(
name=PIPNAME,
version=VERSION,
description=DESCRIPTION,
long_description=LDESCRIPTION,
author=AUTHOR,
author_email=MAIL,
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics'
],
keywords=KEYWORDS,
url=URL,
license='MIT',
packages=find_packages(),
install_requires=REQUIRED,
extras_require=EXTRAS,
include_package_data=True,
zip_safe=False
)