diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2019-08-10 03:57:58 +0200 |
---|---|---|
committer | Benoit Pierre <benoit.pierre@gmail.com> | 2019-10-07 23:23:08 +0200 |
commit | 0d831c90e345ba6e7d0f82954f0cec5bdaa8501b (patch) | |
tree | 4693790688a9a8de6eed33aa410100eb200bd23d /tox.ini | |
parent | 734d09c5a3f48338b6a3d7687c5f9d0ed02ab479 (diff) | |
download | external_python_setuptools-0d831c90e345ba6e7d0f82954f0cec5bdaa8501b.tar.gz external_python_setuptools-0d831c90e345ba6e7d0f82954f0cec5bdaa8501b.tar.bz2 external_python_setuptools-0d831c90e345ba6e7d0f82954f0cec5bdaa8501b.zip |
improve workaround for #1644
Make it possible to use a more recent version of pip for tests.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -7,14 +7,16 @@ [tox] envlist=python +[helpers] +# Wrapper for calls to pip that make sure the version being used is a +# up-to-date, and to prevent the current working directory from being +# added to `sys.path`. +pip = python {toxinidir}/tools/tox_pip.py + [testenv] deps=-rtests/requirements.txt -# Changed from default (`python -m pip ...`) -# to prevent the current working directory -# from being added to `sys.path`. -install_command=python -c 'import sys; sys.path.remove(""); from pkg_resources import load_entry_point; load_entry_point("pip", "console_scripts", "pip")()' install {opts} {packages} -# Same as above. -list_dependencies_command={envbindir}/pip freeze --all +install_command = {[helpers]pip} install {opts} {packages} +list_dependencies_command = {[helpers]pip} freeze --all setenv=COVERAGE_FILE={toxworkdir}/.coverage.{envname} # TODO: The passed environment variables came from copying other tox.ini files # These should probably be individually annotated to explain what needs them. |