-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
47 lines (40 loc) · 1.31 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
#!/usr/bin/env python3
# This file is part of phishdetect-python:
# https://github.com/phishdetect/phishdetect-python
# See the file 'LICENSE' for copying permission.
import os
from setuptools import find_packages, setup
__package_name__ = "phishdetect"
__version__ = "1.10.0"
__description__ = "This is a Python3 library and CLI tool " \
"to easily interact with a PhishDetect Node API server"
requires = (
"click",
"requests",
)
def get_package_data(package):
walk = [(dirpath.replace(package + os.sep, "", 1), filenames)
for dirpath, dirnames, filenames in os.walk(package)
if not os.path.exists(os.path.join(dirpath, "__init__.py"))]
filepaths = []
for base, filenames in walk:
filepaths.extend([os.path.join(base, filename)
for filename in filenames])
return {package: filepaths}
setup(
name=__package_name__,
version=__version__,
author="Claudio Guarnieri",
author_email="nex@nex.sx",
description=__description__,
long_description=__description__,
install_requires=requires,
packages=find_packages(),
package_data=get_package_data("phishdetect"),
scripts=["bin/phishdetect-cli",],
include_package_data=True,
keywords="security phishing phishdetect",
license="MIT",
classifiers=[
],
)