Add support for venv-based test run with tox.

* Adds tox config
 - based on the config from python-quantumclient and updated for
 test, pep8 and coverage execution as per nova's run_tests.sh.
 * Adds nosetests defaults in setup.cfg
 * Adds runtime dependencies in tools/pip-requires
 - dependencies were gathered by referencing the packages used in
 creation of a Swift All In One. Versions were determined by
 checking the swift-core/trunk ppa or, failing that, the version
 available in lucid.
 * Adds test dependencies in tools/test-requires
 * Updates swift/common/middleware/formpost.py for pep8 compliance
 * Adds instructions for executing the tests with Tox to the
 developer_guidelines
 * Adds instructions for installing openstack.nose_plugin to
 developer_saio
 * Fixes bug 909177
Change-Id: I5407924d2181e9ab335aaf76bf30c8d40deccbb4
This commit is contained in:
Maru Newby
2012年01月31日 15:27:29 -08:00
parent ad6684a00f
commit e6ea310751

8
tools/pip-requires Normal file
View File

@@ -0,0 +1,8 @@
WebOb==1.0.8
configobj==4.7.1
eventlet==0.9.15
greenlet==0.3.1
netifaces==0.6
pastedeploy==1.3.3
simplejson==2.0.9
xattr==0.4

5
tools/test-requires Normal file
View File

@@ -0,0 +1,5 @@
coverage
nose
nosexcover
openstack.nose_plugin
pep8==0.6.1
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.