From 13cca1dd196cfb8a8fdf904f4b6c9a44bcc08449 Mon Sep 17 00:00:00 2001 From: Martin Thurau Date: Wed, 29 Apr 2015 14:55:03 +0200 Subject: [PATCH] Adds tox configuration. Adds tox.ini to support running the tests on multiple versions. Adds requirements.txt to support dependency installtion via pip. --- .gitignore | 3 +++ requirements.txt | 1 + tox.ini | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 requirements.txt create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 84fca1f..16a2c86 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ dist /man nosetests.xml .coverage +.tox +.idea +.cache diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d6e1198 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +-e . diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..e6fced9 --- /dev/null +++ b/tox.ini @@ -0,0 +1,20 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py26, py27 + +[testenv] +deps=pytest +# This creates the virtual envs with --site-packages so already packages +# that are already installed will be reused. This is especially useful on +# Windows. Since we use lxml instead of compiling it locally (which in turn +# requires a Compiler and the build dependencies), you can download +# it from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and install it via +# $PYTHONDIR\Scripts\pip.exe install *.whl +#sitepackages=True +commands = + pip install -r requirements.txt + py.test