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
This commit is contained in:
Alessandro Pilotti 2014-08-20 23:53:12 +03:00
parent 309437bb52
commit cb059f2f3e

View File

@ -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