forked from CrowdStrike/falconpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
122 lines (116 loc) · 4.34 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
r"""
__ __
/'( _ )`\
/ . \/^\/ . \ CrowdStrike
/ _)_`-'_(_ \ FalconPy
/.-~ ).( ~-.\
/' /\_/\ `\
_.888888888lkoz.,_
d888888888888888888888b,
j88P""V8888888888888888888
888 8888888888888888888
888baed8888888888888888888
88888888888888888888888888
8888888888888
,ad8888888888888888888888888888888888 888888be,
d8888888888888888888888888888888888888 888888888b,
d88888888888888888888888888888888888888 8888888888b,
j888888888888888888888888888888888888888 88888888888p,
j888888888888888888888888888888888888888' 8888888888888
8888888888888888888888888888888888888^" ,8888888888888
88888888888888^' .d88888888888888
8888888888888" .a8888888888888888888888888888888888888
8888888888888 ,888888888888888888888888888888888888888^
^888888888888 888888888888888888888888888888888888888^
V88888888888 88888888888888888888888888888888888888Y
V8888888888 8888888888888888888888888888888888888Y
`"^8888888 8888888888888888888888888888888888^"'
8888888888888
88888888888888888888888888
8888888888888888888P""V888
8888888888888888888 888
8888888888888888888baed88V
`^888888888888888888888^
`'"^^V888888888V^^'
setup.py - PyPI packaging utility for CrowdStrike FalconPy
"""
from glob import glob
from os.path import basename
from os.path import splitext
from setuptools import find_packages
from setuptools import setup
from src.falconpy import _VERSION, _MAINTAINER, _TITLE, _DESCRIPTION, _AUTHOR
from src.falconpy import _AUTHOR_EMAIL, _PROJECT_URL, _DOCS_URL, _KEYWORDS
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Remove GitHub's emoji
emojis = [
":speech_balloon: ", ":bulb: ", ":pray: ", ":raised_hands: ", " :fire:", ":fire: ",
"<small>", "</small>", " :mag_right:", " :dizzy:", " :memo:", " :coffee:", " :book:"
]
for emoji in emojis:
long_description = long_description.replace(emoji, "")
setup(
name=_TITLE,
version=_VERSION,
author=_AUTHOR,
author_email=_AUTHOR_EMAIL,
maintainer=_MAINTAINER,
maintainer_email=_AUTHOR_EMAIL,
docs_url=_DOCS_URL,
description=_DESCRIPTION,
keywords=_KEYWORDS,
long_description=long_description,
long_description_content_type="text/markdown",
url=_PROJECT_URL,
project_urls={
"Documentation": "https://www.falconpy.io",
"Source": "https://github.com/CrowdStrike/falconpy/tree/main/src/falconpy",
"Tracker": "https://github.com/CrowdStrike/falconpy/issues"
},
packages=find_packages("src"),
package_dir={"": "src"},
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
include_package_data=True,
install_requires=[
"requests",
"urllib3"
],
extras_require={
"dev": [
"flake8",
"coverage",
"pydocstyle",
"pylint",
"pytest-cov",
"pytest",
"bandit",
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Framework :: Flake8",
"License :: OSI Approved :: The Unlicense (Unlicense)",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
python_requires='>=3.7',
)