forked from tungstenfabric/tf-neutron-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
29 lines (24 loc) · 790 Bytes
/
SConscript
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
# -*- mode: python; -*-
env = DefaultEnvironment()
setup_sources = [
'setup.py',
'MANIFEST.in',
'requirements.txt',
'test-requirements.txt',
'tox.ini',
'.stestr.conf',
'neutron_plugin_contrail',
]
setup_sources_rules = [
env.Install(Dir('.'), "#/openstack/neutron_plugin/" + file)
for file in setup_sources
]
cd_cmd = 'cd ' + Dir('.').path + ' && '
sdist_depends = []
sdist_depends.extend(setup_sources_rules)
sdist_gen = env.Command('dist/neutron-plugin-%s.tar.gz' % env.GetPyVersion(),
'setup.py', cd_cmd + 'python3 setup.py sdist')
env.Depends(sdist_gen, sdist_depends)
test_target = env.SetupPyTestSuite(sdist_gen, use_tox=True)
env.Depends(test_target, sdist_gen)
env.Alias('openstack/neutron_plugin:test', test_target)