Skip to content

Commit

Permalink
Test the PURE_PYTHON environment variable support under tox.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed May 20, 2013
1 parent 3f78d12 commit 41c31f7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
``BTrees`` Changelog
====================

4.0.7 (unreleased)
------------------

- Test ``PURE_PYTHON`` environment variable support: if set, the C
extensions will not be built, imported, or tested.


4.0.6 (2013-05-14)
------------------
Expand Down Expand Up @@ -32,7 +38,7 @@
- Accomodate buildout to the fact that we no longer bundle a copy
of 'persistent.h'.

- Fix test failures on Windows: no longer rely on overflows from
- Fix test failures on Windows: no longer rely on overflows from
``sys.maxint``.


Expand Down
24 changes: 17 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
[tox]
envlist =
envlist =
# Jython support pending 2.7 support, due 2012-07-15 or so. See:
# http://fwierzbicki.blogspot.com/2012/03/adconion-to-fund-jython-27.html
# py26,py27,py32,jython,pypy,coverage,docs
py26,py27,pypy,py32,py33,w_zodb,coverage,docs
py26,py27,py27-pure,pypy,py32,py33,w_zodb,coverage,docs

[testenv]
deps =
zope.interface
persistent
transaction
commands =
commands =
python setup.py test -q

[testenv:py27-pure]
basepython =
python2.7
setenv =
PURE_PYTHON = 1
deps =
{[testenv]deps}
commands =
python setup.py test -q

#[testenv:jython]
#commands =
#commands =
# jython setup.py test -q

[testenv:w_zodb]
basepython =
python2.6
commands =
commands =
python setup.py test -q
deps =
zope.interface
Expand All @@ -34,7 +44,7 @@ deps =
[testenv:coverage]
basepython =
python2.6
commands =
commands =
nosetests --with-xunit --with-xcoverage --cover-package=BTrees
deps =
zope.interface
Expand All @@ -47,7 +57,7 @@ deps =
[testenv:docs]
basepython =
python2.6
commands =
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
deps =
Expand Down

0 comments on commit 41c31f7

Please sign in to comment.