Add some missing things

This commit is contained in:
Endre Karlson 2012-10-30 10:58:49 +00:00
parent cfb18b58e4
commit 4e174d8f57
5 changed files with 39 additions and 1 deletions

8
setup.cfg Normal file
View File

@ -0,0 +1,8 @@
[nosetests]
cover-package=billistix
cover-html=true
cover-erase=true
cover-inclusive=true
verbosity=2
detailed-errors=1
where=billistix/tests

View File

@ -28,7 +28,7 @@ dependency_links = common_setup.parse_dependency_links([
'tools/setup-requires'
])
version = '0.2'
version = '0.1'
setup(
name='billistix',
@ -47,6 +47,7 @@ setup(
dependency_links=dependency_links,
scripts=[
'bin/billistix-api',
'bin/billistix-central',
'bin/billistix-sync',
'bin/billistix-meter-sync'
],

View File

@ -7,6 +7,7 @@ PasteDeploy
# Needed for Keystone Middleware
https://launchpad.net/keystone/folsom/2012.2/+download/keystone-2012.2.tar.gz#egg=keystone
python-keystoneclient
# Optional Stuff that is used by default
kombu

4
tools/test-requires Normal file
View File

@ -0,0 +1,4 @@
nose
mox
coverage
pep8==1.3.3

24
tox.ini Normal file
View File

@ -0,0 +1,24 @@
[tox]
envlist = py26,py27,pep8
[testenv]
deps = -r{toxinidir}/tools/test-requires
-r{toxinidir}/tools/pip-requires
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
commands = {toxinidir}/run_tests.sh --no-path-adjustment []
sitepackages = True
[testenv:cover]
commands = {toxinidir}/run_tests.sh --no-path-adjustment --with-coverage --cover-erase --cover-package=billistix --cover-inclusive []
[testenv:pep8]
deps = pep8==1.1
commands = pep8 --repeat --show-source billistix setup.py bin/billistix-central bin/billistix-api tests
[testenv:venv]
commands = {posargs}