From 79dd4b423c10b6199947ab1af60f55e97ab3b701 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 10 Jun 2015 15:08:54 -0400 Subject: [PATCH] make heat-manage a console_script entry point pbr has extra sauce for correctly making installed cli tools not do unneeded pkg_resources metadata checks (that can only end in tears) if those scripts are installed via the console_script entry point. heat-manage looks like it is ready to be used this way. Other scripts should be converted in the future to avoid erroneous errors due to library metadata mismatch, which these tools should not care about. Change-Id: Ibfd54e7b1bae700e4fb49a32e5bf7c00d1f104d9 --- bin/heat-manage | 4 ++++ setup.cfg | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/heat-manage b/bin/heat-manage index e47bdbb728..3a7f42f576 100755 --- a/bin/heat-manage +++ b/bin/heat-manage @@ -13,6 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +import warnings +warnings.warn("DEPRECATED: This script is deprecated. Please use the " + "system level heat-manage binary", DeprecationWarning) + import os import sys diff --git a/setup.cfg b/setup.cfg index 2275d2a194..153b3ef3b7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,9 +28,11 @@ scripts = bin/heat-engine bin/heat-keystone-setup bin/heat-keystone-setup-domain - bin/heat-manage [entry_points] +console_scripts = + heat-manage = heat.cmd.manage:main + oslo.config.opts = heat.common.config = heat.common.config:list_opts heat.common.crypt = heat.common.crypt:list_opts