forked from TheHive-Project/TheHive4py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (40 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
from setuptools import find_packages, setup
def parse_version():
with open("thehive4py/__init__.py") as init_fp:
for line in init_fp:
if line.strip().startswith("__version__"):
return line.split("=")[1].strip().strip('"')
raise ValueError("Unable to parse version number")
REQUIREMENTS = ["requests>=2.27"]
EXTRAS_REQUIRE = {"lint": ["flake8", "black", "mypy"], "test": ["pytest"]}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["lint"] + EXTRAS_REQUIRE["test"]
def read(fname):
"""Read the content of the file `fname`."""
with open(fname) as fp:
content = fp.read()
return content
setup(
name="thehive4py",
version=parse_version(),
description="Python client for TheHive5",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="Szabolcs Antal",
author_email="[email protected]",
packages=find_packages(),
install_requires=REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
license="AGPL-V3",
keywords="thehive api rest client",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: GNU Affero General Public License v3",
],
python_requires=">=3.8",
)