-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
76 lines (68 loc) · 2.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""
# PyIntelOwl
Robust Python SDK and CLI for interacting with IntelOwl's API.
## Docs & Example Usage: https://github.com/intelowlproject/pyintelowl
"""
import os
import pathlib
from setuptools import find_packages, setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
with open(os.path.join("pyintelowl", "version.py"), "r") as f:
exec(f.read())
GITHUB_URL = "https://github.com/intelowlproject/pyintelowl"
# Get requirements from files
requirements = (HERE / "requirements.txt").read_text().split("\n")
requirements_test = (HERE / "test-requirements.txt").read_text().split("\n")
# This call to setup() does all the work
setup(
name="pyintelowl",
version=__version__,
description="Robust Python SDK and CLI for IntelOwl's API",
long_description=README,
long_description_content_type="text/markdown",
url=GITHUB_URL,
author="Matteo Lodi",
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 5 - Production/Stable",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Environment :: Web Environment",
# Pick your license as you wish (should match "license" above)
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages(),
python_requires=">=3.9",
include_package_data=True,
install_requires=requirements,
project_urls={
"Documentation": GITHUB_URL,
"Funding": "https://opencollective.com/intelowl-project",
"Source": GITHUB_URL,
"Tracker": f"{GITHUB_URL}/issues",
},
keywords="intelowl sdk python command line osint threat intel malware",
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
"dev": requirements_test + requirements,
"test": requirements_test + requirements,
},
# pip install --editable .
entry_points="""
[console_scripts]
pyintelowl=pyintelowl.main:cli
""",
)