mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[Tox] Use platform independant toxworkdir instead of PWD
The use of `{env:PWD}` is not available on Windows so switch to `{toxworkdir}` which is the directory where virtual environments are created and sub directories for packaging reside.
This commit is contained in:
parent
7d120690ab
commit
8439698336
1 changed files with 8 additions and 7 deletions
15
tox.ini
15
tox.ini
|
@ -18,7 +18,7 @@ minversion=1.8
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install --ignore-installed {opts} {packages}
|
install_command = pip install --ignore-installed {opts} {packages}
|
||||||
passenv = DISPLAY PYTHONPATH
|
passenv = DISPLAY PYTHONPATH
|
||||||
setenv = PYTHONPATH = {env:PWD}:
|
setenv = PYTHONPATH = {toxinidir}:
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
deps =
|
deps =
|
||||||
twisted[tls]
|
twisted[tls]
|
||||||
|
@ -31,7 +31,7 @@ deps =
|
||||||
mock
|
mock
|
||||||
slimit
|
slimit
|
||||||
pillow
|
pillow
|
||||||
whitelist_externals = pytest
|
whitelist_externals = pytest bash
|
||||||
commands = {envpython} setup.py test
|
commands = {envpython} setup.py test
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
|
@ -54,21 +54,22 @@ commands = pytest -v --basetemp=_pytest_temp -s -m "gtkui" deluge/tests
|
||||||
commands = pytest -v --basetemp=_pytest_temp -s -m "todo" deluge/tests
|
commands = pytest -v --basetemp=_pytest_temp -s -m "todo" deluge/tests
|
||||||
|
|
||||||
[testenv:trial]
|
[testenv:trial]
|
||||||
setenv = {[testenv]setenv}:{env:PWD}/deluge/tests
|
setenv = {[testenv]setenv}:{toxinidir}/deluge/tests
|
||||||
commands =
|
commands =
|
||||||
python -c "import libtorrent as lt; print lt.__version__"
|
python -c "import libtorrent as lt; print lt.__version__"
|
||||||
python -m twisted.trial --reporter=deluge-reporter deluge.tests
|
python -m twisted.trial --reporter=deluge-reporter deluge.tests
|
||||||
|
|
||||||
[testenv:plugins]
|
[testenv:plugins]
|
||||||
setenv = PYTHONPATH = {env:PWD}:{env:PWD}/deluge/plugins
|
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/deluge/plugins
|
||||||
|
whitelist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
python setup.py build_plugins --develop --install-dir={env:PWD}/deluge/plugins/
|
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
|
||||||
pytest -v --basetemp=_pytest_temp -s -m "not gtkui" deluge/plugins
|
pytest -v --basetemp=_pytest_temp -s -m "not gtkui" deluge/plugins
|
||||||
|
|
||||||
[testenv:pluginsgtkui]
|
[testenv:pluginsgtkui]
|
||||||
setenv = PYTHONPATH = {env:PWD}:{env:PWD}/deluge/plugins
|
setenv = PYTHONPATH = {toxinidir}:{toxinidir}/deluge/plugins
|
||||||
commands =
|
commands =
|
||||||
python setup.py build_plugins --develop --install-dir={env:PWD}/deluge/plugins/
|
python setup.py build_plugins --develop --install-dir={toxinidir}/deluge/plugins/
|
||||||
pytest -v --basetemp=_pytest_temp -s deluge/plugins
|
pytest -v --basetemp=_pytest_temp -s deluge/plugins
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue