Fixes bugs for integration with MON module
[osm/MON.git] / policy_module / setup.py
1 import setuptools
2
3
4 def parse_requirements(requirements):
5 with open(requirements) as f:
6 return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#')]
7
8
9 _author = "Benjamín Díaz"
10 _name = 'osm_policy_module'
11 _author_email = 'bdiaz@whitestack.com'
12 _version = '1.0'
13 _description = 'OSM Policy Module'
14 _maintainer = 'Benjamín Díaz'
15 _maintainer_email = 'bdiaz@whitestack.com'
16 _license = 'Apache 2.0'
17 _url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree'
18
19 setuptools.setup(
20 name=_name,
21 version=_version,
22 description=_description,
23 long_description=open('README.rst').read(),
24 author=_author,
25 author_email=_author_email,
26 maintainer=_maintainer,
27 maintainer_email=_maintainer_email,
28 url=_url,
29 license=_license,
30 packages=setuptools.find_packages(),
31 include_package_data=True,
32 install_requires=parse_requirements('requirements.txt'),
33 entry_points={
34 "console_scripts": [
35 "osm-policy-agent = osm_policy_module.cmd.policy_module_agent:main",
36 ]
37 }
38 )