Skip to content

Add support for tox (http://tox.testrun.org/) - #50

Closed
msabramo wants to merge 2 commits into
biopython:masterfrom
msabramo:tox

Conversation

@msabramo

Copy link
Copy Markdown

No description provided.

@peterjc

peterjc commented Jun 21, 2012

Copy link
Copy Markdown
Member

@superbobry

Copy link
Copy Markdown
Contributor

Great! Would be useful to test agains PyPy as well, I guess.

@superbobry

Copy link
Copy Markdown
Contributor

@peterjs, you're right -- Travis and BuildBot already do the same thing, the only real benefit from tox is that you can run all the same tests (on various interpreter versions) locally before pushing to the public repository.

As for PyPy -- I've noticed that it's missing in `tox.ini for no reason, esp. since BioPython does target PyPy.

@peterjc

peterjc commented Jun 21, 2012

Copy link
Copy Markdown
Member

Also missing Jython ;)

I personally don't bother with virtual environments - I just have multiple Python's installed - so wouldn't use Tox.

@bow

bow commented Jun 21, 2012

Copy link
Copy Markdown
Member

Testing against multiple Python versions and/or platforms is a breeze with Tox. This would be very handy for any developers wanting to test whether his/her changes breaks support in any of the supported versions/platforms. Perhaps using Tox could also reduce the potential buildbot failures.

I've been trying to set one up myself, but never managed to make it work (until I find the tox.ini here ~ thanks!).

@msabramo

Copy link
Copy Markdown
Author

Is there any harm in merging this?

@peterjc

peterjc commented Jun 29, 2012

Copy link
Copy Markdown
Member

We don't keep configuration files for other tools like IDEs, and this is similar. We could put this on the wiki instead?

A minor but real downside is one more 'strange' file in the root folder, which will require people to use and test to avoid bit rot. I can see this will require on going tweaking - for example Python 3.3, and if Tox supports them, Jython and PyPy. The situation with TravisCI is similar, but that configuration file is tested regularly by its nature.

@bow

bow commented Jun 29, 2012

Copy link
Copy Markdown
Member

@msabramo On closer inspection, I got an error when trying to run tox using your config against my Python 3.2.3 install. It says error: error in 'egg_base' option: 'pip-egg-info' does not exist or is not a directory. It's the same error that Kai got here.

Any pointers on how to fix this?

@peterjc

peterjc commented Aug 29, 2013

Copy link
Copy Markdown
Member

@bow and @kblin - do you still get an error? There were some changes to setup.py regarding setuptools which might have helped or changed things: f8e5190

@bow

bow commented Apr 9, 2014

Copy link
Copy Markdown
Member

I just played around with this again (tox has been updated as well, so I had to tweak the tox.ini file).

After tweaking, I got it to work (no sign of the previous error) and it's indeed useful. However, this may not immediately work out of the box for some other people. At least it assumes that the Python version being used for testing is present (e.g. Python3.3 by default is called using python3.3). If python3.3 does not exist or is called something else, chances are the tox run won't work (this bit me earlier ~ I had upgraded my python3.3 earlier and had to install another copy of 3.3 to make tox work with 3.3).

So I'm leaning towards not putting this in the repo. As Peter mentioned earlier, the wiki may be more suitable. Though at least we can put the basic minimum tox.ini and then potential users can tweak it as they see fit for their own use.

@bow

bow commented Apr 23, 2014

Copy link
Copy Markdown
Member

Are there any objections against closing this PR?

@bow

bow commented Apr 26, 2014

Copy link
Copy Markdown
Member

I think this issue can be closed in 2 days if no objections are raised..

bow added a commit to bow/biopython that referenced this pull request Jul 9, 2014
bow added a commit that referenced this pull request Jul 9, 2014
@bow bow closed this Jul 9, 2014
@bow

bow commented Jul 9, 2014

Copy link
Copy Markdown
Member

Closed, but integrated in the documentation via af3fc51 (also credited there).

Thanks for submitting the PR :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants