-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
59 lines (49 loc) · 1.59 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
"""
Installation script of malshare_db.
Usage (pip):
pip install .
Usage (direct):
setup.py build # "Build" + Checkup
setup.py install # Installation
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
print("Warning: setuptools not found! Falling back to raw distutils.")
print(" -> This may not properly register packages with python.")
print(" -> Script installation not available.")
print("")
import re
with open('malshare_db.py') as malshare_db:
code = malshare_db.read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", code))
setup(
name="malshare_db",
version=metadata.get('version'),
author=metadata.get('author'),
author_email=metadata.get('email'),
license=metadata.get('license'),
url='https://sbiewald.de/malsh-cav',
py_modules=['malshare_db'],
entry_points={
'console_scripts': ['malshare-db=malshare_db:main'],
},
scripts=['malshare-db.cgi', 'malshare-db.fcgi'],
install_requires=['portalocker', 'requests'],
extras_require={
'aio': ['aiohttp', 'aiohttp-wsgi'],
'cache': ['requests-cache'],
},
classifiers=[
'Framework :: AsyncIO',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Security',
]
)