-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tox to test against multiple python versions
- Loading branch information
1 parent
d79e332
commit 322a798
Showing
5 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ crate.egg-info | |
dist | ||
build | ||
*.pyc | ||
.idea/ | ||
.idea/ | ||
.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
======================== | ||
Crate-Python Development | ||
======================== | ||
|
||
|
||
Development Setup | ||
================= | ||
|
||
To get a development environment crate-python uses `buildout | ||
<https://pypi.python.org/pypi/zc.buildout/2.2.1>`_ | ||
|
||
Run `bootstrap.py`:: | ||
|
||
python bootstrap.py | ||
|
||
And afterwards run buildout:: | ||
|
||
./bin/buildout -N | ||
|
||
Running Tests | ||
============= | ||
|
||
The tests are run using the `zope.testrunner | ||
<https://pypi.python.org/pypi/zope.testrunner/4.4.1>`_:: | ||
|
||
./bin/test | ||
|
||
This will run all tests using the python interpreter that was used to | ||
bootstrap buildout. | ||
|
||
In addition to that it is also possible to run the test case against multiple | ||
python interpreter using `tox <http://testrun.org/tox/latest/>`_:: | ||
|
||
./bin/tox | ||
|
||
This required the interpreters `python2.7`, `python3.3` and `pypy` to be | ||
available in `$PATH`. To run against a single interpreter tox can also be | ||
invoked like this:: | ||
|
||
./bin/tox -e py33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[tox] | ||
envlist = pypy, py27, py33 | ||
|
||
|
||
[testenv] | ||
usedevelop = True | ||
deps = | ||
zope.testrunner | ||
lovely.testlayers | ||
commands = | ||
zope-testrunner -c --test-path=src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters