Updated to OpenStack standards

Change-Id: Idf87a63c72bfb85de713ebb69564509f8c00393b
This commit is contained in:
Monty Taylor 2013-08-13 13:44:58 -03:00
parent d7ea66ee8d
commit 4438058c81
8 changed files with 88 additions and 57 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
dist
build
*.egg-info
AUTHORS
ChangeLog

View File

@ -1,5 +0,0 @@
Runs through all of the phases to ensure configuration is applied
and enabled on a machine. Will exit with an error if any phase has a
problem. Scripts should not depend on eachother having worked properly.
Set `OS_REFRESH_CONFIG_BASE_DIR` environment variable to override
the default

5
README.rst Normal file
View File

@ -0,0 +1,5 @@
Runs through all of the phases to ensure configuration is applied and
enabled on a machine. Will exit with an error if any phase has a
problem. Scripts should not depend on eachother having worked properly.
Set ``OS_REFRESH_CONFIG_BASE_DIR`` environment variable to override the
default

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
pbr>=0.5.21,<1.0

30
setup.cfg Normal file
View File

@ -0,0 +1,30 @@
[metadata]
name = os-refresh-config
author = OpenStack
author-email = openstack-dev@lists.openstack.org
summary = Refresh system configuration
description-file =
README.rst
home-page = http://github.com/stackforge/os-refresh-config
classifier =
Development Status :: 4 - Beta
Environment :: Console
Environment :: OpenStack
Intended Audience :: Developers
Intended Audience :: Information Technology
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
[files]
packages =
os_refresh_config
[entry_points]
console_scripts =
os-refresh-config = os_refresh_config.os_refresh_config:main
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0

View File

@ -1,24 +1,22 @@
#!/usr/bin/python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
#!/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
#
# 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.
config = {
'name': 'os-refresh-config',
'description': 'refreshes system configuration',
'author': 'SpamapS',
'author_email': 'clint@fewbar.com',
'url': 'http://github.com/tripleo/os-refresh-config',
'version': '0.5',
'packages': ['os_refresh_config'],
'scripts': [],
'long_description': open('README.md', 'rb').read(),
'packages': ['os_refresh_config'],
'entry_points': {
'console_scripts': [
'os-refresh-config = os_refresh_config.os_refresh_config:main']
}
}
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools
setup(**config)
setuptools.setup(
setup_requires=['pbr>=0.5.21,<1.0'],
pbr=True)

11
test-requirements.txt Normal file
View File

@ -0,0 +1,11 @@
hacking>=0.5.6,<0.7
Babel>=0.9.6
coverage>=3.6
discover
fixtures>=0.3.12
python-subunit
sphinx>=1.1.2
testrepository>=0.0.17
testscenarios>=0.4,<0.5
testtools>=0.9.32

49
tox.ini
View File

@ -1,43 +1,32 @@
[tox]
envlist = py26,py27,pep8
envlist = py27,pep8
[testenv]
setenv = LANG=en_US.UTF-8
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps=
testtools
testrepository
coverage
babel
commands=
bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
bash -c 'testr run --parallel {posargs} ; RET=$? echo "Slowest Tests" ; testr slowest && exit $RET'
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:py26]
deps=
testtools
testrepository
coverage
babel
discover
argparse
[pep8]
ignore = E125
[tox:jenkins]
sitepackages = True
downloadcache = ~/cache/pip
[testenv:pep8]
deps = pep8
commands = flake8
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
pep8 --repeat --show-source --exclude=.venv,.tox,doc .
python setup.py testr --coverage
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv = PYTHON=coverage run --source os_refresh_config
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
bash -c 'testr run --parallel ; RET=$? ; coverage combine ; coverage html -d ./cover $OMIT && exit $RET'
[tox:jenkins]
downloadcache = ~/cache/pip
[flake8]
ignore = E125,H803
exclude = .venv,.tox,dist,doc,*.egg,./os_collect_config/openstack/*
show-source = true