summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2014-09-26 17:24:05 +0000
committerBen Nemec <bnemec@redhat.com>2014-09-30 15:03:48 +0000
commit5d1461204d1cce680378d5b7c6c2b17f19b7f4b0 (patch)
treef3ca38076f04a3f0eb5c659c1de2212e45fb540c /setup.cfg
parentc98d5edc44ad44da7196afa4b6bba0a2afea1f8e (diff)
downloadoslo-concurrency-5d1461204d1cce680378d5b7c6c2b17f19b7f4b0.tar.gz
Make lockutils main() a console entry point
This is more lib-ish than calling python -m on the module. As part of this change, I also improved the unit tests for this code. Before we weren't unsetting OSLO_LOCK_PATH before calling the main function, so we had no way of knowing if it was being set correctly. I also added a test case to verify return value propagation and removed a private method that was never called. Change-Id: I6c35b5409bf567767c5c71b9041dd7f7a012255d
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 1e1d347..a914c4f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -29,6 +29,8 @@ namespace_packages =
[entry_points]
oslo.config.opts =
oslo.concurrency = oslo.concurrency.opts:list_opts
+console_scripts =
+ lockutils-wrapper = oslo.concurrency.lockutils:main
[build_sphinx]
source-dir = doc/source