Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
83 lines (78 loc) · 2.91 KB
/
Copy pathsetup.py
File metadata and controls
83 lines (78 loc) · 2.91 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of leap_net, leap_net a keras implementation of the LEAP Net model.
import os
import setuptools
from setuptools import setup
from gnn_powergrid import get_version
def get_data_files(directory):
my_list = []
for dirpath,_,filenames in os.walk(directory):
for f in filenames:
my_list.append((dirpath, [os.path.join(dirpath,f)]))
return my_list
pkgs = {
"required": [
"lips-benchmark==0.2.7",
],
"extras": {
"recommended": [
"grid2op==1.9.8",
"pybind11==2.8.1",
"lightsim2grid==0.8.1",
"leap-net==0.0.5",
"protobuf==3.20.2",
"pandapower==2.11.0",
"pandas==1.5.3",
"jupyter",
"tensorflow==2.8.1",
"torch==2.0.1",
"imageio==2.34.0",
"plotly==5.20.0",
"torch-geometric"
],
}
}
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(name='gnn-powergrid',
version=get_version("__init__.py"),
description='GNN-PowerGrid: Graph Neural Network for simulation of power flow',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Natural Language :: English"
],
keywords='Graph Neural Sovler, Power flow, Physical sovler, Augmented simulator',
author='Milad Leyli-abadi',
author_email='milad.leyli-abadi@irt-systemx.fr',
# url="https://github.com/IRT-SystemX/LIPS",
license='MPL',
packages=setuptools.find_packages(),
include_package_data=True,
package_data={
# If any package contains *.txt or *.rst files, include them:
"": ["*.ini"],
},
data_files=get_data_files("configurations"),#[("configurations/powergrid/benchmarks/", ["configurations/powergrid/benchmarks/l2rpn_case14_sandbox.ini"])],
install_requires=pkgs["required"],
extras_require=pkgs["extras"],
zip_safe=False,
entry_points={
'console_scripts': []
}
)