-
Notifications
You must be signed in to change notification settings - Fork 54
/
setup.py
58 lines (49 loc) · 1.51 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
# pylint: disable=undefined-variable
from setuptools import setup, find_packages
from os import path
# get version and author information
with open("chepy/__version__.py", "r") as f:
exec(f.read())
def read_requirements():
with open("requirements.txt") as f:
return f.read().splitlines()
requirements = read_requirements()
# if sys.platform == "linux":
# requirements.append("python-magic")
# else:
# requirements.append("python-magic-bin==0.4.14")
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), "r", encoding='utf8') as f:
long_description = f.read()
core_extra_deps = ["requests"]
plugin_deps = [
"scapy",
"Markdown",
"chepy",
"pefile",
"pyelftools",
"ua-parser==0.8.0",
"pydriller",
"pyexiftool",
]
setup(
long_description=long_description,
long_description_content_type="text/markdown",
name="chepy",
license="GPL",
version=__version__,
author=__author__,
url="https://github.com/securisec/chepy",
project_urls={
"Documentation": "https://chepy.readthedocs.io/en/latest/",
"Source Code": "https://github.com/securisec/chepy",
},
extras_require={"extras": core_extra_deps + plugin_deps},
packages=find_packages(exclude=(["tests", "docs"])),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3.12",
],
python_requires="<3.13",
entry_points={"console_scripts": ["chepy = chepy.__main__:main"]},
)