summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-05-18 09:13:05 -0700
committerMonty Taylor <mordred@inaugust.com>2013-05-20 14:32:22 -0400
commitaa2808337b5fd1e585a38b16eff7a495f1ff99f4 (patch)
treef56ad7ea19e89b99ffd92fec41f6fdfbb1711cfb /setup.py
parent24b4039bae557a8f29be783c3fdd3f9f148c4b0e (diff)
downloadpython-cinderclient-aa2808337b5fd1e585a38b16eff7a495f1ff99f4.tar.gz
Migrate to pbr.
Fixes bug 1179007. Change-Id: I66b78ec4b5ba70a1bf1e375a5d1b7575a1879730
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py53
1 files changed, 7 insertions, 46 deletions
diff --git a/setup.py b/setup.py
index ffefec4..1e9882d 100644
--- a/setup.py
+++ b/setup.py
@@ -1,60 +1,21 @@
-# Copyright 2011 OpenStack, LLC
+#!/usr/bin/env python
+# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
+# 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.
+# 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
-
-from cinderclient.openstack.common import setup
-
-requires = setup.parse_requirements()
-depend_links = setup.parse_dependency_links()
-tests_require = setup.parse_requirements(['tools/test-requires'])
-project = 'python-cinderclient'
-
-
-def read_file(file_name):
- return open(os.path.join(os.path.dirname(__file__), file_name)).read()
-
-
setuptools.setup(
- name=project,
- version=setup.get_version(project),
- author="OpenStack Contributors",
- author_email="openstack-dev@lists.openstack.org",
- description="Client library for OpenStack Cinder 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.*']),
- cmdclass=setup.get_cmdclass(),
- install_requires=requires,
- tests_require=tests_require,
- setup_requires=['setuptools-git>=0.4'],
- include_package_data=True,
- dependency_links=depend_links,
- classifiers=[
- "Development Status :: 5 - Production/Stable",
- "Environment :: Console",
- "Environment :: OpenStack",
- "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"]
- }
-)
+ setup_requires=['d2to1>=0.2.10,<0.3', 'pbr>=0.5,<0.6'],
+ d2to1=True)