Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox should try to reinstall dependencies if they failed the last time #6

Closed
pytoxbot opened this issue Sep 17, 2016 · 1 comment
Closed

Comments

@pytoxbot
Copy link

This was mentioned on the mailing list (see http://lists.idyll.org/pipermail/testing-in-python/2011-June/004173.html).

Here is an example tox session

#!bash

$tox -v -c tox.ini.test 
[TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/log
[TOX] using tox.ini: /Users/aaronmeurer/Documents/python/sympy/sympy/tox.ini.test
[TOX] using tox-0.9 from /Library/Python/2.6/site-packages/tox-0.9-py2.6.egg/tox/__init__.pyc
______________________________________________________________________________________________ [tox sdist] _______________________________________________________________________________________________
[TOX] ***creating sdist package
[TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/dist
[TOX] /Users/aaronmeurer/Documents/python/sympy/sympy$ /usr/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
[TOX] ***copying new sdistfile to '/Users/aaronmeurer/.tox/distshare/sympy-0.6.7-git.zip'
___________________________________________________________________________________________ [tox testenv:py27] ___________________________________________________________________________________________
[TOX] ***recreating virtualenv py27 (configchange/incomplete install detected)
[TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27
[TOX] /Users/aaronmeurer/Documents/python/sympy/sympy/.tox$ virtualenv --distribute --no-site-packages -p /sw/bin/python2.7 py27 >py27/log/0.log
[TOX] ***installing dependencies: notarealdep
[TOX] /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27/log$ ../bin/pip install --download-cache=/Users/aaronmeurer/Documents/python/sympy/sympy/.tox/_download notarealdep >1.log
[TOX] ERROR: invocation failed, logfile: /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27/log/1.log
[TOX] ERROR: /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27/log$ ../bin/pip install --download-cache=/Users/aaronmeurer/Documents/python/sympy/sympy/.tox/_download notarealdep >1.log
Downloading/unpacking notarealdep
  Could not find any downloads that satisfy the requirement notarealdep
No distributions at all found for notarealdep
Storing complete log in /Users/aaronmeurer/.pip/pip.log

[TOX] ERROR: could not install deps [notarealdep]
_____________________________________________________________________________________________ [tox summary] ______________________________________________________________________________________________
[TOX] ERROR: py27: could not install deps [notarealdep]
Aaron-Meurer:sympy aaronmeurer(master$%=)$tox -v -c tox.ini.test 
[TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/log
[TOX] using tox.ini: /Users/aaronmeurer/Documents/python/sympy/sympy/tox.ini.test
[TOX] using tox-0.9 from /Library/Python/2.6/site-packages/tox-0.9-py2.6.egg/tox/__init__.pyc
______________________________________________________________________________________________ [tox sdist] _______________________________________________________________________________________________
[TOX] ***creating sdist package
[TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/dist
[TOX] /Users/aaronmeurer/Documents/python/sympy/sympy$ /usr/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
[TOX] ***copying new sdistfile to '/Users/aaronmeurer/.tox/distshare/sympy-0.7.0.rc2.zip'
___________________________________________________________________________________________ [tox testenv:py27] ___________________________________________________________________________________________
[TOX] ***reusing existing matching virtualenv py27
[TOX] $ ../bin/pip install --download-cache=/Users/aaronmeurer/Documents/python/sympy/sympy/.tox/_download ../../dist/sympy-0.7.0.rc2.zip >2.log
_____________________________________________________________________________________________ [tox summary] ______________________________________________________________________________________________
[TOX] py27: commands succeeded
[TOX] congratulations :)
$cat tox.ini.test
[tox]
envlist = py27

[testenv:py27]
deps = notarealdep

Notice how even though installing the dependency fails, it runs without any problems the second time around. This happens when there is any kind of error installing a dependency, not just downloading.

@pytoxbot
Copy link
Author

Original comment by @hpk42

this issue should be fixed - you can test with the release candidate:

pip install -i http://pypi.testrun.org -U tox

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant