Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix tox.ini #2686

Merged
merged 1 commit into from

4 participants

@tkf

Prior to this patch, test for Python 3.2 failed.

Also, arguments can be passed to iptest via tox command now.
e.g.: tox -- IPython.core

Probably it makes sense to change .travis.yml to something like:

language: python
before_install:
    - pip install tox
script:
    - tox

Or you can use tox -e ... to run the tests parallel for each Python version.

@tkf tkf Fix tox.ini
Prior to this patch, test for Python 3.2 failed.

Also, arguments can be passed to iptest via tox command now.
e.g.: `tox -- IPython.core`
e459eac
@takluyver
Owner

That looks sensible to me. At some point we'll also want to add a py33 environment to that list, but it doesn't seem tox supports that yet.

@Carreau
Owner

So is there anything to add ? Or is it ok to merge ?

@takluyver
Owner

I think it can be merged, if you're happy too.

@tkf

I am happy with it.

@takluyver
Owner

OK, I'm pressing the big green button :-)

@takluyver takluyver merged commit 9eb3363 into from
@bfroehle

Great. For what it's worth py33 support is available in the development branch of tox: https://bitbucket.org/hpk42/tox/commits/309c81d74decfc270ed2013449d8da71d12cb68c

@minrk minrk referenced this pull request from a commit
@minrk minrk Backport PR #2686: Fix tox.ini
Prior to this patch, test for Python 3.2 failed.

Also, arguments can be passed to iptest via tox command now.
e.g.: `tox -- IPython.core`

Probably it makes sense to change .travis.yml to something like:

```
language: python
before_install:
    - pip install tox
script:
    - tox
```

Or you can use `tox -e ...` to run the tests parallel for each Python version.
3e59129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 15, 2012
  1. @tkf

    Fix tox.ini

    tkf authored
    Prior to this patch, test for Python 3.2 failed.
    
    Also, arguments can be passed to iptest via tox command now.
    e.g.: `tox -- IPython.core`
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 4 deletions.
  1. +11 −4 tox.ini
View
15 tox.ini
@@ -7,13 +7,20 @@
envlist = py26, py27, py32
[testenv]
+deps =
+ nose
+
+# To avoid loading IPython module in the current directory, change
+# current directory to ".tox/py*/tmp" before running test.
+changedir = {envtmpdir}
+
commands =
- pip install -q --use-mirrors nose
+ # As pip does not treat egg, use easy_install to install PyZMQ.
+ # See also: https://github.com/zeromq/pyzmq
easy_install -q pyzmq
- iptest -w /tmp
+ iptest []
[testenv:py32]
commands =
- pip install -q --use-mirrors nose
easy_install -q pyzmq
- iptest3 -w /tmp
+ iptest3 []
Something went wrong with that request. Please try again.