tox support

initial tox support

addresses: https://github.com/vmware/pyvmomi/issues/131
closes: https://github.com/vmware/pyvmomi/issues/136
This commit is contained in:
Shawn Hartsock 2014-08-25 17:42:11 -04:00 committed by Shawn Hartsock
parent 834692417a
commit d1f371b0a5
5 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,6 @@
include README.*
include *.txt
include setup.py
include tox.ini
recursive-include tests *
recursive-include sample *

View File

@ -30,6 +30,14 @@ posted to `pypi <https://pypi.python.org/pypi/pyvmomi/>`_
``python setup.py develop`` for development install or
``python setup.py install``.
Testing
=======
Unit tests can be invoked by using the ``tox`` command. You may have to
configure multiple python interpreters so that you can test in all the
environments listed in ``tox.ini`` or you will have to run ``tox`` with the
``-e`` flag to run only in your version of python. For example, if you only
have Python 2.7 then ``tox -e py27`` will limit your test run to Python 2.7.
Contributing
============
* Research `open issues <https://github.com/vmware/pyvmomi/issues?q=is%3Aopen+is%3Aissue>`_

View File

@ -37,7 +37,7 @@ setup(
install_requires=required,
license='License :: OSI Approved :: Apache Software License',
data_files = [("", ["LICENSE.txt", "NOTICE.txt", "MANIFEST.in",
"setup.py"])],
"setup.py", "tox.ini"])],
# NOTE: pypi prefers the use of RST to render docs
long_description=read('README.rst'),
classifiers=[

View File

@ -1,4 +1,2 @@
contextdecorator
PyYAML>=3.10
testtools>=0.9.34
vcrpy

6
tox.ini Normal file
View File

@ -0,0 +1,6 @@
[tox]
envlist = py26,py27,py33,py34
[testenv]
deps = -rtest-requirements.txt
commands =
python setup.py test