Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/CyberBattleSim
Path: blob/main/setup.py
597 views
1
#!/usr/bin/env python3
2
3
# Copyright (c) Microsoft Corporation.
4
# Licensed under the MIT License.
5
6
"""setup CyberBattle simulator module"""
7
8
import os
9
import setuptools
10
from typing import List
11
12
pwd = os.path.dirname(__file__)
13
14
15
def get_install_requires(requirements_txt) -> List[str]:
16
"""get the list of requried packages"""
17
install_requires = []
18
with open(os.path.join(pwd, requirements_txt)) as file:
19
for line in file:
20
line = line.strip()
21
if line and not line.startswith("#"):
22
install_requires.append(line)
23
return install_requires
24
25
26
# main setup kw args
27
setup_kwargs = {
28
"name": "cyberbattlesim",
29
"version": "0.1.0",
30
"description": "An experimentation and research platform to investigate the interaction of automated agents in an abstract simulated network environments.",
31
"author": "CyberBattleSim Team",
32
"author_email": "[email protected]",
33
"install_requires": get_install_requires("requirements.txt"),
34
"classifiers": [
35
"Environment :: Other Environment",
36
"Intended Audience :: Science/Research",
37
"Natural Language :: English",
38
"Operating System :: OS Independent",
39
"Programming Language :: Python",
40
"Topic :: Scientific/Engineering :: Artificial Intelligence",
41
],
42
"zip_safe": True,
43
"packages": setuptools.find_packages(exclude=["test_*.py", "*_test.py"]),
44
"extras_require": {"dev": get_install_requires("requirements.dev.txt")},
45
}
46
47
if __name__ == "__main__":
48
setuptools.setup(**setup_kwargs)
49
50