Adding cover to tox.ini default envs
[osm/RO.git] / RO / setup.py
1 #!/usr/bin/env python3
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 # from distutils.core import setup
17 # from distutils.command.install_data import install_data
18 from setuptools import setup
19 from os import system
20 # import glob
21
22 _name = 'osm_ro'
23 _description = 'OSM Resource Orchestrator'
24 _author = 'ETSI OSM'
25 _author_email = 'alfonso.tiernosepulveda@telefonica.com'
26 _maintainer = 'garciadeblas'
27 _maintainer_email = 'gerardo.garciadeblas@telefonica.com'
28 _license = 'Apache 2.0'
29 _url = 'https://osm.etsi.org/gitweb/?p=osm/RO.git;a=summary'
30 _requirements = [
31 # TODO py3 revise
32 "osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git#egg=osm-im",
33 "PyYAML",
34 "bottle",
35 "logutils",
36 "jsonschema",
37 "paramiko",
38 "mysqlclient",
39
40 # common to VIMS
41 "requests",
42 "netaddr", # openstack, aws, vmware
43 ]
44
45 setup(
46 name=_name,
47 version_command=('git -C .. describe --match v* --tags --long --dirty', 'pep440-git-full'),
48 description = _description,
49 long_description = open('README.rst').read(),
50 author = _author,
51 author_email = _author_email,
52 maintainer = _maintainer,
53 maintainer_email = _maintainer_email,
54 url = _url,
55 license = _license,
56 packages = [_name],
57 #packages = ['osm_ro', 'osm_roclient'],
58 package_dir = {_name: _name},
59 # package_data = {_name: ['vnfs/*.yaml', 'vnfs/examples/*.yaml',
60 # 'scenarios/*.yaml', 'scenarios/examples/*.yaml',
61 # 'instance-scenarios/examples/*.yaml', 'database_utils/*',
62 # 'scripts/*']},
63 # data_files = [('/etc/osm/', ['osm_ro/openmanod.cfg']),
64 # ('/etc/systemd/system/', ['osm_ro/osm-ro.service']),
65 # ],
66 scripts=['osm_ro/scripts/RO-start.sh'
67 #'openmanod', 'openmano', 'osm_ro/scripts/service-openmano', 'osm_ro/scripts/openmano-report',
68 ],
69 install_requires=_requirements,
70 include_package_data=True,
71 setup_requires=['setuptools-version-command'],
72 #test_suite='nose.collector',
73 )
74