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

Should handle pip requirements with relative paths #102

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

Comments

Projects
None yet
1 participant
@pytoxbot

pytoxbot commented Sep 17, 2016

tox executes 'pip install' with changing cwd to envlogdir (.tox/py27/log)

If tox.ini takes deps from requirements.txt file and it contains relative paths installation will failed.

requirements.txt

-e lib/python-package

tox.ini

[testenv]
deps = -r{toxinidir}/requirements.txt

/tmp/prj/$ tox -e py27 -v

 ....  
/tmp/prj/.tox/py27/log$ /tmp/prj/.tox/py27/bin/pip install --download-cache=/tmp/.pip/cache -r/tmp/prj/requirements.txt >/tmp/prj/.tox/py27/log/py27-1.log  
ERROR: invocation failed, logfile: /tmp/prj/.tox/py27/log/py27-1.log  
ERROR: actionid=py27  
..  
lib/python-package should either by a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

When I run same command from console installation success:

/tmp/prj/$ /tmp/prj/.tox/py27/bin/pip install --download-cache=/tmp/.pip/cache django==1.4 -r/tmp/prj/requirements.txt

I suggest tox should not change cwd when runs pip install

@pytoxbot

This comment has been minimized.

Show comment
Hide comment
@pytoxbot

pytoxbot Sep 17, 2016

Original comment by @hpk42

fix issue102: change to {toxinidir} when installing packages and dependencies.
this allows to use relative path like in "-rrequirements.txt".

→ <<cset 10157852d890>>

pytoxbot commented Sep 17, 2016

Original comment by @hpk42

fix issue102: change to {toxinidir} when installing packages and dependencies.
this allows to use relative path like in "-rrequirements.txt".

→ <<cset 10157852d890>>

@pytoxbot pytoxbot closed this Sep 17, 2016

@jurko-gospodnetic jurko-gospodnetic referenced this issue Dec 10, 2017

Closed

[WIP] Fixed pip upgrades on Windows #707

1 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment