Skip to content

Commit

Permalink
add tox.ini and MANIFEST.in and gitignore to pathos; don't use numpy …
Browse files Browse the repository at this point in the history
…in tests

git-svn-id: svn+ssh://svn.mystic.cacr.caltech.edu/pathos/pathos@911 8bfda07e-5b16-0410-ab1d-fd04ec2748df
  • Loading branch information
mmckerns committed Dec 29, 2016
1 parent 6ab7397 commit 2425006
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.tox/
.cache/
*.egg-info/
*.pyc
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE
Empty file added tests/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions tests/test_decorate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def function_wrapper(x):
return function_wrapper

def add(*args):
from numpy import sum
return sum(args)
#from numpy import sum
return sum(*args)

''' # FAILS to find 'add' (returns [None,None])
@wrap_nested(add)
Expand Down
23 changes: 23 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[tox]
skip_missing_interpreters=
True
envlist =
py26
py27
py33
py34
py35
py36
pypy
pypy3

[testenv]
deps =
# numpy
whitelist_externals =
bash
commands =
python setup.py build
python setup.py install
bash -c "failed=0; for test in tests/*.py; do echo $test; \
python $test || failed=1; done; exit $failed"

0 comments on commit 2425006

Please sign in to comment.