From f8b816af0751b10cc20b0ab456ca334150fcdf5f Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 23 Apr 2014 20:35:49 +0000 Subject: [PATCH] Add cmd entry point for verify_tempest_config This commit moves the verify_tempest_config script from the tools dir to tempest.cmd and adds a pbr entry point for the script. This means that the script will in effect be a packaged binary for tempest. Partially implements bp config-verification Change-Id: I75b9743a8117d55c6c445db05eb39404b5708624 --- setup.cfg | 4 ++++ tempest/cmd/__init__.py | 0 {tools => tempest/cmd}/verify_tempest_config.py | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 tempest/cmd/__init__.py rename {tools => tempest/cmd}/verify_tempest_config.py (99%) diff --git a/setup.cfg b/setup.cfg index a701572575..f4aa3e1cc8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,10 @@ classifier = Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 +[entry_points] +console_scripts = + verify-tempest-config = tempest.cmd.verify_tempest_config:main + [build_sphinx] all_files = 1 build-dir = doc/build diff --git a/tempest/cmd/__init__.py b/tempest/cmd/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tools/verify_tempest_config.py b/tempest/cmd/verify_tempest_config.py similarity index 99% rename from tools/verify_tempest_config.py rename to tempest/cmd/verify_tempest_config.py index 14dd0c280a..4d74f5379b 100755 --- a/tools/verify_tempest_config.py +++ b/tempest/cmd/verify_tempest_config.py @@ -312,7 +312,7 @@ def parse_args(): return args -def main(argv): +def main(): print('Running config verification...') opts = parse_args() update = opts.update @@ -343,4 +343,4 @@ def main(argv): if __name__ == "__main__": - main(sys.argv) + main()