Add setuptools config files

For being install in a virtualenv, like tripleo-quickstart does
we need setuptools for the configuration

Change-Id: I6e6265127cb7a54329e93504b25b5cb9ed87aecd
This commit is contained in:
Mathieu Bultel 2017-06-22 10:48:02 +02:00
parent 05bab554d8
commit 4be902a583
4 changed files with 73 additions and 0 deletions

14
ansible.cfg Normal file
View File

@ -0,0 +1,14 @@
[defaults]
gathering = smart
command_warnings = False
retry_files_enabled = False
callback_whitelist = profile_tasks
# Attempt to load custom modules whether it's installed system-wide or from a virtual environment
test_plugins = test_plugings:$VIRTUAL_ENV/usr/local/share/tripleo-upgrade/playbooks/test_plugins:playbooks/test_plugins
library = library:$VIRTUAL_ENV/usr/local/share/tripleo-upgrade/playbooks/library:playbooks/library
roles_path = roles:$VIRTUAL_ENV/usr/local/share/ansible/roles/tripleo-upgrade:$VIRTUAL_ENV/usr/local/share/
[ssh_connection]
control_path = %(directory)s/%C

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
pbr>=1.6
ansible

38
setup.cfg Normal file
View File

@ -0,0 +1,38 @@
[metadata]
name = tripleo-upgrade
summary = tripleo-upgrade - An ansible role for upgrade and update a TripleO deployment
description-file =
README.md
author = TripleO Team
author-email = mbultel@redhat.com, mcornea@redhat.com
home-page = https://github.com/redhat-openstack/tripleo-upgrade
classifier =
License :: OSI Approved :: Apache Software License
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: System Administrators
Intended Audience :: Information Technology
Topic :: Utilities
[global]
setup-hooks =
pbr.hooks.setup_hook
[files]
data_files =
usr/local/share/ansible/roles/tripleo-upgrade/defaults = defaults/*
usr/local/share/ansible/roles/tripleo-upgrade/handlers = handlers/*
usr/local/share/ansible/roles/tripleo-upgrade/meta = meta/*
usr/local/share/ansible/roles/tripleo-upgrade/tasks = tasks/*
usr/local/share/ansible/roles/tripleo-upgrade/templates = templates/*
usr/local/share/ansible/roles/tripleo-upgrade/tests = tests/*
usr/local/share/ansible/roles/tripleo-upgrade/vars = vars/*
playbooks = playbooks/*
[wheel]
universal = 1
[pbr]
skip_authors = True
skip_changelog = True

19
setup.py Normal file
View File

@ -0,0 +1,19 @@
# Copyright Red Hat, Inc. All Rights Reserved.
#
# 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 setuptools
setuptools.setup(
setup_requires=['pbr'],
pbr=True)