Get initial build to work.

Set up tox.

Fixed pep8 warnings

Change-Id: Ia1cce729d1c0360321a66e8da41190a627f43cfe
This commit is contained in:
Craig Bryant 2014-07-15 18:38:19 -06:00
parent 47ab28e1c5
commit 59be51266d
5 changed files with 36 additions and 1 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=stackforge/monasca-ceilometer

View File

@ -7,6 +7,7 @@ from ceilometer.openstack.common import log
LOG = log.getLogger(__name__)
class monclient(publisher.PublisherBase):
"""Publisher to publish samples to monclient.
@ -84,4 +85,3 @@ class monclient(publisher.PublisherBase):
elif isinstance(value, dict):
self._traverse_dict(dimensions, name_prefix + '.' + name,
value)

5
setup.py Executable file
View File

@ -0,0 +1,5 @@
from setuptools import setup
# Prereqs of the build. Won't get installed when deploying the egg.
setup(
setup_requires=[])

3
test-requirements.txt Normal file
View File

@ -0,0 +1,3 @@
# Hacking already pins down pep8, pyflakes and flake8
pep8
flake8

23
tox.ini Normal file
View File

@ -0,0 +1,23 @@
[tox]
envlist = pep8
minversion = 1.6
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8
[tox:jenkins]
downloadcache = ~/cache/pip
[flake8]
show-source = True
# H302: Do not import objects, only modules
ignore = H302,H803
builtins = _
exclude=.venv,.git,.tox,dist,client_api_example.py,*openstack/common*,*lib/python*,*egg,build