summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorAlessandro Pilotti <apilotti@cloudbasesolutions.com>2014-08-20 23:53:12 +0300
committerAlessandro Pilotti <apilotti@cloudbasesolutions.com>2014-08-21 01:01:24 +0300
commitcb059f2f3ea821ead1ab2a93077dd40d86aa57d2 (patch)
tree991eab1af41fb37c143d7ebfdb1dfb06d80284a0 /setup.cfg
parent309437bb5255a2205337fb951fc3c6836cfdaabf (diff)
downloadpython-swiftclient-cb059f2f3ea821ead1ab2a93077dd40d86aa57d2.tar.gz
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
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index f962237..32e05f1 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