-
Notifications
You must be signed in to change notification settings - Fork 48
/
setup.py
executable file
·71 lines (63 loc) · 1.87 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
import pathlib
from setuptools import setup, find_packages
extras = {
'dqn': [
'torch>=1.5',
'tensorboard>=2.2'
],
'docs': [
'sphinx>=3.0',
'sphinx-rtd-theme>=0.4'
],
'test': [
'pytest>=5.4'
]
}
extras['all'] = [item for group in extras.values() for item in group]
def get_version():
"""Gets the posggym version."""
path = pathlib.Path(__file__).absolute().parent / "nasim" / "__init__.py"
content = path.read_text()
for line in content.splitlines():
if line.startswith("__version__"):
return line.strip().split()[-1].strip().strip('"')
raise RuntimeError("bad version data in __init__.py")
setup(
name='nasim',
version=get_version(),
url="https://networkattacksimulator.readthedocs.io",
description="A simple and fast simulator for remote network pen-testing",
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
author="Jonathon Schwartz",
author_email="[email protected]",
license="MIT",
packages=[
package for package in find_packages()
if package.startswith('nasim')
],
install_requires=[
'gymnasium>=0.26',
'numpy>=1.18',
'networkx>=2.4',
'matplotlib>=3.1',
'pyyaml>=5.3',
'prettytable>=0.7'
],
extras_require=extras,
python_requires='>=3.8',
package_data={
'nasim': ['scenarios/benchmark/*.yaml']
},
project_urls={
'Documentation': "https://networkattacksimulator.readthedocs.io",
'Source': "https://github.com/Jjschwartz/NetworkAttackSimulator/",
},
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
],
zip_safe=False
)