Skip to content

Commit 13cca1d

Browse files
committed
Adds tox configuration.
Adds tox.ini to support running the tests on multiple versions. Adds requirements.txt to support dependency installtion via pip.
1 parent 1d4ee9d commit 13cca1d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ dist
99
/man
1010
nosetests.xml
1111
.coverage
12+
.tox
13+
.idea
14+
.cache

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-e .

tox.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
envlist = py26, py27
8+
9+
[testenv]
10+
deps=pytest
11+
# This creates the virtual envs with --site-packages so already packages
12+
# that are already installed will be reused. This is especially useful on
13+
# Windows. Since we use lxml instead of compiling it locally (which in turn
14+
# requires a Compiler and the build dependencies), you can download
15+
# it from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml and install it via
16+
# $PYTHONDIR\Scripts\pip.exe install *.whl
17+
#sitepackages=True
18+
commands =
19+
pip install -r requirements.txt
20+
py.test

0 commit comments

Comments
 (0)