-
Notifications
You must be signed in to change notification settings - Fork 390
/
setup.py
46 lines (41 loc) · 1.14 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
45
46
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
import os, sys, re
from setuptools import setup, find_packages, Command
class RunTestsCommand(Command):
description = "Test command to run testr in virtualenv"
user_options = []
def initialize_options(self):
self.cwd = None
def finalize_options(self):
self.cwd = os.getcwd()
def run(self):
os.system('./run_tests.sh -V')
with open('test.log') as f:
if not re.search('\nOK', ''.join(f.readlines())):
os._exit(1)
setup(
name='vnc_openstack',
version='0.1dev',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
long_description="VNC openstack interface package",
entry_points={
'vnc_cfg_api.resync': [
'xxx = vnc_openstack:OpenstackDriver',
],
'vnc_cfg_api.resourceApi': [
'xxx = vnc_openstack:ResourceApiDriver',
],
'vnc_cfg_api.neutronApi': [
'xxx = vnc_openstack:NeutronApiDriver',
],
},
install_requires=[
],
cmdclass={
'run_tests': RunTestsCommand,
},
)