Enable pip install
Previously no entry points were defined for the OVB scripts because they were intended to be used directly out of the bin directory. However, because of changes in the way Python 3 handles relative imports we can't continue to do that going forward, so we need to be able to pip install OVB and have callable binaries. This adds entry points for the necessary user-called files, but does not yet update the documentation as the previous method should still work. Once the pip version has been more thoroughly tested the docs will be updated to the new method. Change-Id: I158f58a58314c985baaeb7309cee6f284cb53985
This commit is contained in:
parent
53c6fe95a8
commit
277a36dd26
@ -377,7 +377,7 @@ def _deploy_roles(stack_name, args, env_paths):
|
|||||||
[role_env], poll=True)
|
[role_env], poll=True)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
args = _parse_args()
|
args = _parse_args()
|
||||||
stack_name, stack_template = _process_args(args)
|
stack_name, stack_template = _process_args(args)
|
||||||
env_paths = args.env
|
env_paths = args.env
|
||||||
@ -389,3 +389,7 @@ if __name__ == '__main__':
|
|||||||
poll = True
|
poll = True
|
||||||
_deploy(stack_name, stack_template, env_paths, poll=poll)
|
_deploy(stack_name, stack_template, env_paths, poll=poll)
|
||||||
_deploy_roles(stack_name, args, env_paths)
|
_deploy_roles(stack_name, args, env_paths)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
@ -22,9 +22,10 @@ classifier =
|
|||||||
packages =
|
packages =
|
||||||
openstack_virtual_baremetal
|
openstack_virtual_baremetal
|
||||||
|
|
||||||
#[entry_points]
|
[entry_points]
|
||||||
#console_scripts =
|
console_scripts =
|
||||||
# dlrn-repo = dlrn_repo.main:main
|
ovb-deploy = openstack_virtual_baremetal.deploy:main
|
||||||
|
ovb-build-nodes-json = openstack_virtual_baremetal.build_nodes_json:main
|
||||||
|
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
|
Loading…
Reference in New Issue
Block a user