rafguns / linkpred

Easy link prediction tool
Other
141 stars 46 forks source link

Enable testing with tox #2

Closed rafguns closed 4 years ago

rafguns commented 9 years ago

Something like waf may do the trick. I'm thinking of e.g.:

# Create a tarball
git archive --format=tar.gz --prefix=linkpred/ HEAD > linkpred.tar.gz

# Create an installer
pyinstaller linkpred.spec

# Do all tests and count coverage
nosetests --with-doctest --with-coverage --cover-package=linkpred
rafguns commented 9 years ago

Alternative: do this in setup.py. This guide shows a way to do testing through python setup.py test.

rafguns commented 4 years ago

Testing as described in https://github.com/rafguns/linkpred/issues/2#issuecomment-91150132 is now deprecated in favour of tox.

rafguns commented 4 years ago

Fixed in 65e76c6b3e40ac1b7fb95b99c5ea7b50c7598632.

To use this, first pip install tox and then simply run tox. If you want to restrict to a specific version (e.g. Python 3.6), run tox -e py36.