forked from microsoft/CyberBattleSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (41 loc) · 1.45 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
#!/usr/bin/env python3
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""setup CyberBattle simulator module"""
import os
import setuptools
from typing import List
pwd = os.path.dirname(__file__)
def get_install_requires(requirements_txt) -> List[str]:
"""get the list of requried packages"""
install_requires = []
with open(os.path.join(pwd, requirements_txt)) as file:
for line in file:
line = line.strip()
if line and not line.startswith('#'):
install_requires.append(line)
return install_requires
# main setup kw args
setup_kwargs = {
'name': 'loonshot-sim',
'version': '0.1',
'description': "The simulation and RL code for the S+C loonshot project",
'author': 'S+C Loonshot Team',
'author_email': '[email protected]',
'install_requires': get_install_requires("requirements.txt"),
'classifiers': [
'Environment :: Other Environment',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
'zip_safe': True,
'packages': setuptools.find_packages(exclude=['test_*.py', '*_test.py']),
'extras_require': {
'dev': get_install_requires('requirements.dev.txt')
}
}
if __name__ == '__main__':
setuptools.setup(**setup_kwargs)