diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..27e447e9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +oslo.config +paramiko>=1.8.0 +pbr>=0.5.21,<1.0 +psutil +sh +six \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..1541cf67 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,26 @@ +[metadata] +name = rally +version = 0.0.1 +summary = OpenStack Benchmark System +description-file = + README.rst +author = OpenStack +author-email = openstack-dev@lists.openstack.org +home-page = http://www.openstack.org/ +classifier = + Environment :: OpenStack + Intended Audience :: Developers + Intended Audience :: Information Technology + License :: OSI Approved :: Apache Software License + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + +[files] +packages = + rally + +[global] +setup-hooks = + pbr.hooks.setup_hook diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..6559398d --- /dev/null +++ b/setup.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +import setuptools + +setuptools.setup( + setup_requires=['pbr>=0.5.21,<1.0'], + pbr=True) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000..2b77eba8 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,14 @@ +# Install bounded pep8/pyflakes first, then let flake8 install +pep8==1.4.5 +pyflakes==0.7.2 +flake8==2.0 +hacking>=0.5.3,<0.7 + +coverage +discover +fixtures>=0.3.12 +jsonschema +mock +python-subunit +testrepository>=0.0.13 +testtools>=0.9.22 diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..e91aa6b5 --- /dev/null +++ b/tox.ini @@ -0,0 +1,30 @@ +[tox] +envlist = py26,py27,pep8 + +[testenv] +setenv = VIRTUAL_ENV={envdir} + LANG=en_US.UTF-8 + LANGUAGE=en_US:en + LC_ALL=C +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = python setup.py testr --testr-args='{posargs}' +distribute = false + +[testenv:pep8] +commands = flake8 +distribute = false + +[testenv:venv] +commands = {posargs} + +[testenv:cover] +commands = python setup.py testr --coverage --testr-args='{posargs}' + +[tox:jenkins] +downloadcache = ~/cache/pip + +[flake8] +show-source = true +builtins = _ +exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools