forked from ThePorgs/Exegol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
82 lines (73 loc) · 2.89 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
80
81
82
import pathlib
from setuptools import setup, find_packages
from exegol import __version__
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / 'README.md').read_text(encoding='utf-8')
# Additional non-code data used by Exegol to build local docker image from source
## exegol-docker-build Dockerfiles
source_directory = "exegol-docker-build"
data_files_dict = {source_directory: [f"{source_directory}/Dockerfile"] + [str(profile) for profile in pathlib.Path(source_directory).rglob('*.dockerfile')]}
data_files = []
# Add sources files recursively
for path in pathlib.Path(f'{source_directory}/sources').rglob('*'):
# Exclude directory path and exclude dockerhub hooks files
if path.is_dir() or path.parent.name == "hooks":
continue
key = str(path.parent)
if data_files_dict.get(key) is None:
data_files_dict[key] = []
data_files_dict[key].append(str(path))
## exegol scripts pushed from the wrapper
data_files_dict["exegol-imgsync"] = ["exegol/utils/imgsync/entrypoint.sh",
"exegol/utils/imgsync/spawn.sh"]
# Dict to tuple
for k, v in data_files_dict.items():
data_files.append((k, v))
setup(
name='Exegol',
version=__version__,
license='GNU (GPLv3)',
author="Shutdown & Dramelac",
author_email='[email protected]',
description='Python wrapper to use Exegol, a container based fully featured and community-driven hacking environment.',
long_description=long_description,
long_description_content_type='text/markdown',
python_requires='>=3.7, <4',
url='https://github.com/ThePorgs/Exegol',
keywords='pentest redteam ctf exegol',
classifiers=[
'Development Status :: 5 - Production/Stable',
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
install_requires=[
'docker~=7.1.0',
'requests~=2.32.3',
'rich~=13.7.1',
'GitPython~=3.1.43',
'PyYAML>=6.0.2',
'argcomplete~=3.5.0',
'tzlocal~=5.2; platform_system != "Linux"'
],
packages=find_packages(exclude=["tests"]),
include_package_data=True,
data_files=data_files,
entry_points={
'console_scripts': [
'exegol = exegol.manager.ExegolController:main',
],
},
project_urls={
'Bug Reports': 'https://github.com/ThePorgs/Exegol/issues',
'Source': 'https://github.com/ThePorgs/Exegol',
'Documentation': 'https://exegol.readthedocs.io/',
'Funding': 'https://patreon.com/nwodtuhs',
}
)