diff options
| author | Monty Taylor <mordred@inaugust.com> | 2013-05-18 09:43:36 -0700 |
|---|---|---|
| committer | Angus Salkeld <asalkeld@redhat.com> | 2013-05-23 09:45:27 +1000 |
| commit | bdac572db84e272f3b006023e83b13b77d849d25 (patch) | |
| tree | caf53b22f70052669f27ecf5048e9569ae49632f /setup.py | |
| parent | a1a21bd7fd09f31789ac773f37004ba42895894b (diff) | |
| download | python-ceilometerclient-bdac572db84e272f3b006023e83b13b77d849d25.tar.gz | |
Migrate to pbr.
Fixes bug 1179007.
Change-Id: Ie921a710d9460196ed8023ad63f05dec998b60f0
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 47 |
1 files changed, 8 insertions, 39 deletions
@@ -1,52 +1,21 @@ +#!/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 ceilometerclient.openstack.common import setup - -project = 'python-ceilometerclient' - - -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() - setuptools.setup( - name=project, - version=setup.get_version(project), - author='OpenStack', - author_email='openstack-dev@lists.openstack.org', - description="Client library for ceilometer", - long_description=read('README.md'), - license="Apache License, Version 2.0", - url='https://github.com/openstack/python-ceilometerclient', - packages=setuptools.find_packages(exclude=['tests', 'tests.*']), - include_package_data=True, - install_requires=setup.parse_requirements(), - cmdclass=setup.get_cmdclass(), - classifiers=[ - 'Development Status :: 4 - Beta', - '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': ['ceilometer = ceilometerclient.shell:main'] - }, - dependency_links=setup.parse_dependency_links(), - tests_require=setup.parse_requirements(['tools/test-requires']), - setup_requires=['setuptools-git>=0.4'], -) + setup_requires=['d2to1>=0.2.10,<0.3', 'pbr>=0.5,<0.6'], + d2to1=True) |
