-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
39 lines (32 loc) · 960 Bytes
/
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
import re
from setuptools import find_packages, setup
VERSION_RE = re.compile(r'''([0-9dev.]+)''')
def get_version():
with open('VERSION', 'rU') as fh:
init = fh.read().strip()
return VERSION_RE.search(init).group(1)
def get_requirements():
with open('requirements.txt', 'rU') as f:
data = f.read().splitlines()
reqs = []
for req in data:
if req.startswith('-e'):
req = req.split('#egg=')[1]
reqs.append(req)
return reqs
setup(
name='rogers',
version=get_version(),
description='Malware Similarity and Nearest Neighbor Tool',
author='Matthew Maisel',
author_email='mmaisel@cylance.com',
url='',
package_dir={'': 'src'},
packages=find_packages('src'),
include_package_data=True,
install_requires=get_requirements(),
entry_points={
'console_scripts': ['rogers=rogers.__main__:main'],
},
license="Apache License Version 2.0",
)