summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-21 16:32:35 -0400
committerMonty Taylor <mordred@inaugust.com>2012-05-21 16:32:35 -0400
commit471704df644eced17026c280b0aab9e549718e14 (patch)
treec2d8d0ec74fa45e0b61ca4b2153fb5b0e7bf490d /setup.py
downloadpython-cinderclient-0.0.tar.gz
Initial split from python-novaclient.0.0
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py56
1 files changed, 56 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..0c17013
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,56 @@
+# Copyright 2011 OpenStack, LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import setuptools
+import sys
+
+
+requirements = ["httplib2", "prettytable"]
+if sys.version_info < (2, 6):
+ requirements.append("simplejson")
+if sys.version_info < (2, 7):
+ requirements.append("argparse")
+
+
+def read_file(file_name):
+ return open(os.path.join(os.path.dirname(__file__), file_name)).read()
+
+
+setuptools.setup(
+ name="python-cinderclient",
+ version="2012.2",
+ author="Rackspace, based on work by Jacob Kaplan-Moss",
+ author_email="github@racklabs.com",
+ description="Client library for OpenStack Nova API.",
+ long_description=read_file("README.rst"),
+ license="Apache License, Version 2.0",
+ url="https://github.com/openstack/python-cinderclient",
+ packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
+ install_requires=requirements,
+ tests_require=["nose", "mock"],
+ test_suite="nose.collector",
+ classifiers=[
+ "Development Status :: 5 - Production/Stable",
+ "Environment :: Console",
+ "Intended Audience :: Developers",
+ "Intended Audience :: Information Technology",
+ "License :: OSI Approved :: Apache Software License",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python"
+ ],
+ entry_points={
+ "console_scripts": ["cinder = cinderclient.shell:main"]
+ }
+)