-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.12 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
# python setup.py clean
# python setup.py bdist_wheel
from setuptools import setup, find_packages
import sys
import json
with open('requirements.txt') as f:
_requirements = f.read().splitlines()
with open('minemeld.json') as f:
_metadata = json.load(f)
_entry_points = {}
if 'entry_points' in _metadata:
for epgroup, epoints in _metadata['entry_points'].iteritems():
_entry_points[epgroup] = ['{} = {}'.format(k, v)
for k, v in epoints.iteritems()]
setup(
name=_metadata['name'],
version=_metadata['version'],
author=_metadata['author'],
author_email=_metadata['author_email'],
description=_metadata['description'],
url=_metadata['url'],
classifiers=[
'Framework :: MineMeld',
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Topic :: Security',
'Topic :: Internet'
],
packages=find_packages(),
install_requires=_requirements,
package_data={
'': ['prototypes/*.yml']
},
entry_points=_entry_points
)