Add setup/tox/requirements files

This patch adds files so that tripleo-ci can run
pep8 tests, and also be capable of running the
CI status report in a tox environment.

Pep8 tests are currently failing... those will be fixed
in a follow up patch.

Change-Id: Ifdfb0a8f3db0d53097b871408203448266145d50
This commit is contained in:
Dan Prince 2015-09-28 10:18:38 -04:00
parent 84240a143b
commit a4f7707364
5 changed files with 80 additions and 0 deletions

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
pbr
# required to run scripts/tripleo-jobs.py
sqlalchemy
jenkinsapi

31
setup.cfg Normal file
View File

@ -0,0 +1,31 @@
[metadata]
name = tripleo-ci
summary = TripleO documentation
description-file =
README.md
author = OpenStack
author-email = openstack-dev@lists.openstack.org
home-page = http://git.openstack.org/cgit/openstack-infra/tripleo-ci
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
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0
[wheel]
universal = 1
[pbr]
warnerrors = False

22
setup.py Normal file
View File

@ -0,0 +1,22 @@
#!/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.
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools
setuptools.setup(
setup_requires=['pbr'],
pbr=True)

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
flake8

22
tox.ini Normal file
View File

@ -0,0 +1,22 @@
[tox]
envlist = pyflakes, pep8, py27
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes setup.py scripts
[testenv:pep8]
whitelist_externals = bash
commands = flake8
[testenv:cireport]
commands = python scripts/tripleo-jobs.py {posargs}