/
setup.py
44 lines (42 loc) · 1.26 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
#
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup, find_packages, Command
import os
class RunTestsCommand(Command):
description = "Test command to run testr in virtualenv"
user_options = [
('coverage', 'c',
"Generate code coverage report"),
]
boolean_options = ['coverage']
def initialize_options(self):
self.cwd = None
self.coverage = False
def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
args = '-V'
if self.coverage:
args += ' -c'
os.system('./run_tests.sh %s' % args)
setup(
name='device_manager',
version='0.1dev',
packages=['device_manager',
'device_manager.sandesh',
'device_manager.sandesh.dm_introspect',
],
package_data={'': ['*.html', '*.css', '*.xml']},
zip_safe=False,
long_description="VNC Configuration Physical Router Configuration Manager",
entry_points = {
# Please update sandesh/common/vns.sandesh on process name change
'console_scripts' : [
'contrail-device-manager = device_manager.device_manager:server_main',
],
},
cmdclass={
'run_tests': RunTestsCommand,
},
)