-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
61 lines (52 loc) · 2.05 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
#!/usr/bin/env python
from distutils.core import setup
import os
from pathlib import Path
from setuptools import find_packages
lib_folder = Path(__file__).parent
requirement_path = lib_folder / 'requirements.txt'
install_requires = []
extra_requires = []
if requirement_path.exists() and requirement_path.is_file():
install_requires = requirement_path.read_text("utf-8").splitlines()
print("Found requirements.txt, installing dependencies...")
else:
print(f"No requirements.txt found. Skipping installation of dependencies. {requirement_path.absolute()}")
readme_path = lib_folder / "README.md"
readme = "--- NOT FOUND ---"
if readme_path.exists() and readme_path.is_file():
readme = readme_path.read_text("utf-8")
index = 0
while index < len(install_requires):
install_requires[index] = install_requires[index].strip()
if install_requires[index].startswith("#") or len(install_requires[index]) <= 0:
if install_requires[index].startswith("#!"):
extra_requires.append(install_requires[index][2:].strip())
install_requires.pop(index)
else:
index += 1
commit_tag = os.environ.get("CI_COMMIT_TAG", "v0.0.0")
if commit_tag.startswith("v"):
commit_tag = commit_tag[1:]
setup(name='expkit-framework',
version=commit_tag,
author='0xCCF4',
packages=find_packages(exclude=["tests", "test"]),
install_requires=install_requires,
extras_require={
"dev": extra_requires
},
project_urls={
"Homepage": "https://gitlab.com/0xCCF4/expkit",
"Documentation": "https://0xccf4.gitlab.io/expkit/",
},
description="A framework and build automation tool to process exploits/payloads to evade antivirus and endpoint detection response products using reusable building-blocks like encryption or obfuscation.",
long_description=readme,
long_description_content_type="text/markdown",
python_requires=">=3.8",
entry_points={
'console_scripts': [
'expkit = expkit.framework.main:main',
],
},
)