From cb059f2f3ea821ead1ab2a93077dd40d86aa57d2 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Wed, 20 Aug 2014 23:53:12 +0300 Subject: [PATCH] Adds console script entry point A Swift client executable needs to be provided on Windows since Python scripts cannot be executed directly. This approach is also consistent with other OpenStack Python clients (e.g. Nova, Neutron, Cinder, etc.). Change-Id: I7f03b7c305dceed4fa6f4fe1c1281659820606e4 Closes-Bug: #1359360 --- setup.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.cfg b/setup.cfg index f962237e..32e05f17 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,6 +12,7 @@ classifier = Intended Audience :: System Administrators License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux + Operating System :: Microsoft :: Windows Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 @@ -31,6 +32,10 @@ scripts = data_files = share/man/man1 = doc/manpages/swift.1 +[entry_points] +console_scripts = + swift = swiftclient.shell:main + [build_sphinx] source-dir = doc/source build-dir = doc/build