forked from Samsung/cotopaxi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
80 lines (73 loc) · 2.72 KB
/
setup.py
File metadata and controls
80 lines (73 loc) · 2.72 KB
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
# -*- coding: utf-8 -*-
"""
Setup file for Cotopaxi.
"""
#
# Copyright (C) 2020 Samsung Electronics. All Rights Reserved.
# Authors: Jakub Botwicz (Samsung R&D Poland)
#
# This file is part of Cotopaxi.
#
# Cotopaxi is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# Cotopaxi is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Cotopaxi. If not, see <http://www.gnu.org/licenses/>.
#
try:
from setuptools import setup, find_packages
except:
raise ImportError("setuptools is required to install Cotopaxi!")
import os
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
def package_files(directory):
"""Gathers paths to all files in a given directory."""
paths = []
for (path, _, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
PACKAGE_FILES = (
package_files("cotopaxi/vulnerabilities/")
+ package_files("cotopaxi/fingerprinting")
+ package_files("cotopaxi/fuzzing_corpus")
+ package_files("cotopaxi/lists")
) + ["tests/test_config.ini", "tests/test_servers.yaml"]
setup(
name="cotopaxi",
version="1.3.0",
author="Jakub Botwicz",
author_email="j.botwicz@...",
description="Set of tools for security testing of Internet of Things"
" devices using specific network protocols.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/Samsung/cotopaxi",
packages=find_packages(),
package_data={"cotopaxi": PACKAGE_FILES},
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Topic :: Security",
"Topic :: System :: Networking",
],
python_requires=">=2.7",
)