-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
79 lines (70 loc) · 2.63 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
# -*- coding: utf-8 -*-
# Created by restran on 2017/7/27
from __future__ import unicode_literals
import sys
from setuptools import setup, find_packages
from magnetos import __version__
kwargs = {
'packages': find_packages(),
# 还需要创建一个 MANIFEST.in 的文件,然后将这些数据也放在那里
'package_data': {
'magnetos.fuzzing': [
'data/what_format.dic'
],
}
}
install_requires = [
'requests',
'future',
'validators',
'mountains',
'html5lib',
'beautifulsoup4',
]
if sys.version_info < (3, 0):
install_requires.append('futures')
kwargs['install_requires'] = install_requires
readme_file = 'README.md'
long_description = open(readme_file, 'r').read()
setup(
name='magnetos', # 文件名
version=__version__, # 版本(每次更新上传 pypi 需要修改)
description="Some hacker scripts.",
long_description=long_description, # 放README.md文件,方便在 pypi 页展示
long_description_content_type='text/markdown',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
], # Get strings from http://pypi.python.org/pypi?:action=list_classifiers
keywords='python utils', # 关键字
author='restran', # 用户名
author_email='grestran@gmail.com', # 邮箱
url='https://github.com/restran/magnetos', # github上的地址
license='MIT', # 遵循的协议
include_package_data=True,
zip_safe=True,
platforms='any',
entry_points={
'console_scripts': [
'what_format = magnetos.fuzzing.what_format:main',
'what_code_scheme = magnetos.fuzzing.what_code_scheme:main',
'what_encode = magnetos.fuzzing.what_encode:main',
'what_steg = magnetos.fuzzing.what_steg:main',
'file_hash = magnetos.utils.file_hash:main',
'file_strings = magnetos.utils.file_strings:main',
'find_ctf_flag = magnetos.utils.find_ctf_flag:main',
'web_get = magnetos.utils.web_get:main',
'reverse_proxy = magnetos.proxy.reverse_proxy:main',
'steg_hide_cracker = magnetos.cracker.steg_hide_cracker:main',
],
},
**kwargs
)