Migrate to pbr.

Fixes bug 1179007

Change-Id: Iaa8a2722938d0b25df1041695f3c1c8dbf563b47
This commit is contained in:
Monty Taylor 2013-05-11 13:49:12 -04:00
parent d5053e63ad
commit 206650597b
6 changed files with 70 additions and 49 deletions

17
CONTRIBUTING.rst Normal file
View File

@ -0,0 +1,17 @@
If you would like to contribute to the development of OpenStack,
you must follow the steps in the "If you're a developer, start here"
section of this page:
http://wiki.openstack.org/HowToContribute
Once those steps have been completed, changes to OpenStack
should be submitted for review via the Gerrit tool, following
the workflow documented at:
http://wiki.openstack.org/GerritWorkflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
https://bugs.launchpad.net/heat

View File

@ -1,5 +1,6 @@
include CONTRIBUTING.rst
include LICENSE
include README.rst
include MANIFEST.in
graft doc
graft tools
graft tools

View File

@ -1,2 +1,5 @@
d2to1>=0.2.10,<0.3
pbr>=0.5.10,<0.6
boto==2.5.2
psutil
psutil<1.0

33
setup.cfg Executable file
View File

@ -0,0 +1,33 @@
[metadata]
name = heat-cfntools
summary = Tools required to be installed on Heat provisioned cloud instances
description-file =
README.rst
author = OpenStack
author-email = openstack-dev@lists.openstack.org
home-page = http://www.openstack.org/
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 2.6
[files]
packages =
heat_cfntools
scripts =
bin/cfn-create-aws-symlinks
bin/cfn-get-metadata
bin/cfn-hup
bin/cfn-init
bin/cfn-push-stats
bin/cfn-signal
[global]
setup-hooks =
pbr.hooks.setup_hook

View File

@ -1,50 +1,21 @@
#!/usr/bin/python
#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# Copyright (c) 2013 Red Hat, Inc.
# 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
#
# 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. See the
# License for the specific language governing permissions and limitations
# under the License.
# 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
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setuptools.setup(
name='heat-cfntools',
version='1.2.3',
description='Tools required to be installed on Heat '
'provisioned cloud instances',
long_description=read('README.rst'),
license='Apache License (2.0)',
author='Heat API Developers',
author_email='discuss@heat-api.org',
url='http://heat-api.org.org/',
packages=setuptools.find_packages(exclude=['bin']),
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.6',
'Environment :: No Input/Output (Daemon)',
],
scripts=[
'bin/cfn-get-metadata',
'bin/cfn-hup',
'bin/cfn-init',
'bin/cfn-push-stats',
'bin/cfn-signal',
'bin/cfn-create-aws-symlinks'],
py_modules=[])
setup_requires=['d2to1>=0.2.10,<0.3', 'pbr>=0.5.10,<0.6'],
d2to1=True)

View File

@ -11,7 +11,6 @@ deps = -r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[tox:jenkins]
sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
@ -24,11 +23,8 @@ deps = -r{toxinidir}/requirements.txt
commands = bash tools/lintstack.sh
[testenv:cover]
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
commands =
python setup.py testr --coverage \
--testr-args='^(?!.*test.*coverage).*$'
python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}