Skip to content

Commit

Permalink
usedevelop = False, do not use pip for develop install due to PEP0517
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>

(cherry picked from commit 756294c)
Signed-off-by: Aleksei Stepanov <penguinolog@gmail.com>
  • Loading branch information
penguinolog committed Apr 29, 2019
1 parent 5f645df commit 92dead2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -27,7 +27,7 @@ _helpers:
- &install_cython pip install --upgrade Cython
- &build_package python setup.py bdist_wheel
- &install_built pip install exec_helpers --no-index -f dist
- &test_no_cov py.test -vv test
- &test_no_cov py.test -vvv test
- &test_cythonized
stage: Test cythonized
install:
Expand All @@ -52,8 +52,8 @@ _helpers:
after_success: skip

script:
- pip install -e .
- py.test -vv --cov-config .coveragerc --cov-report= --cov=exec_helpers test
- python setup.py develop -v
- py.test -vvv --cov-config .coveragerc --cov-report= --cov=exec_helpers test
- coverage report -m --fail-under 87
after_success:
- coveralls
Expand Down
21 changes: 9 additions & 12 deletions tox.ini
Expand Up @@ -11,7 +11,7 @@ skip_missing_interpreters = True

[testenv]
recreate = True
usedevelop = True
usedevelop = False
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
setev = PYTHONDONTWRITEBYTECODE=1
deps =
Expand All @@ -23,30 +23,34 @@ deps =
pytest-cov
pytest-html
pytest-sugar
py{35,36,37}-nocov: Cython
py3{5,6,7,8}-nocov: Cython
-r{toxinidir}/CI_REQUIREMENTS.txt

commands =
pip freeze
python setup.py develop -v
py.test --junitxml=unit_result.xml --cov-report html --self-contained-html --html=report.html --cov-config .coveragerc --cov=exec_helpers {posargs:test}
coverage report --fail-under 97

[testenv:py35-nocov]
usedevelop = False
commands =
python setup.py bdist_wheel
pip install exec_helpers --no-index -f dist
py.test -vvv {posargs:test}

[testenv:py36-nocov]
usedevelop = False
commands =
python setup.py bdist_wheel
pip install exec_helpers --no-index -f dist
py.test -vvv {posargs:test}

[testenv:py37-nocov]
usedevelop = False
commands =
python setup.py bdist_wheel
pip install exec_helpers --no-index -f dist
py.test -vvv {posargs:test}

[testenv:py38-nocov]
commands =
python setup.py bdist_wheel
pip install exec_helpers --no-index -f dist
Expand All @@ -60,29 +64,24 @@ deps =
flake8
flake8-bugbear

usedevelop = False
commands = flake8

[testenv:pep257]
deps =
pydocstyle
usedevelop = False
commands = pydocstyle -v exec_helpers

[testenv:doc8]
deps =
doc8
Pygments
usedevelop = False
commands = doc8 README.rst doc/source

[testenv:install]
deps =
usedevelop = False
commands = pip install ./ -vvv -U

[testenv:pylint]
usedevelop = False
deps =
pylint>=2.3
isort[pyproject,requirements]
Expand All @@ -101,7 +100,6 @@ commands = bandit -r exec_helpers
[testenv:black]
deps =
black
usedevelop = False
commands =
black exec_helpers

Expand All @@ -122,6 +120,5 @@ commands = mypy --strict --xslt-html-report mypy_report -p exec_helpers
[testenv:isort]
deps =
isort[pyproject,requirements]
usedevelop = False
commands =
isort -rc exec_helpers

0 comments on commit 92dead2

Please sign in to comment.