[Pytest-commit] Issue #270: skipdist and usedevelop don't play well together (hpk42/tox)

Alexandre Conrad issues-reply at bitbucket.org
Mon Aug 24 23:55:18 CEST 2015


New issue 270: skipdist and usedevelop don't play well together
https://bitbucket.org/hpk42/tox/issues/270/skipdist-and-usedevelop-dont-play-well

Alexandre Conrad:

I'm trying to do usedevelop and skipsdist at the same time but it feels that they are multially exclusive with tox.

I have 2 tasks, `py34` and `pep8`. When I run py34 I want to use `usedevelop=true` but when I run `pep8` I don't want my project to be installed at all and use `skipsdist=true`.

Please correct me if I'm wrong: skipsdist is only a global setting recognized under the section `[tox]` which would then skip the sdist step for all `[testenv]` sections which in turns would ignore any `usedevelop=true` flag since it's tox will not even try to install the testenv in the first place.

Can we have `skipsdist` be recognized under a `[testenv]`?

```
#!ini

[tox]
envlist = py34, pep8

[testenv]
usedevelop = true
deps =
    -rtest-requirements.txt
commands =
    py.test {posargs:tests/}

[testenv:pep8]
skipsdist = true
basepython = python3.4
deps = flake8
commands =
    flake8 pricingsvc/ --max-line-length=100

[pytest]
addopts =
    --junitxml=junit.xml
    --cov=pricingsvc --cov-report=xml --cov-report=term-missing
    --verbose
```




More information about the pytest-commit mailing list