Skip to content

Commit

Permalink
chg: dev: Unpinning development dependencies and unifying testing env…
Browse files Browse the repository at this point in the history
…ironments.
  • Loading branch information
carlos-jenkins authored and dajose committed Nov 18, 2019
1 parent e0f6a14 commit eec4487
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
11 changes: 5 additions & 6 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
flake8==3.5.0
pep8-naming==0.4.1
flake8
pep8-naming
pytest>=3.6
pytest-cov==2.4.0
deepdiff==1.1.0
ipdb==0.10.1
-e git+https://github.com/HPENetworking/pyszn.git@master#egg=pyszn
pytest-cov
deepdiff
ipdb
24 changes: 12 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
[tox]
envlist = py3, coverage, doc
envlist = test, doc


[testenv]
passenv = http_proxy https_proxy
basepython = python3
passenv = https_proxy http_proxy no_proxy


[testenv:test]
deps =
-rrequirements.dev.txt
changedir = {envtmpdir}
commands =
{envpython} -c "import topology; print(topology.__file__)"
flake8 {toxinidir}
py.test \
{posargs:--topology-platform debug} \
{toxinidir}/test \
{envsitepackagesdir}/topology

[testenv:coverage]
basepython = python3
commands =
py.test \
--junitxml=tests.xml \
--cov=topology \
Expand All @@ -28,19 +25,22 @@ commands =
--topology-plot-dir topologies \
--topology-plot-format svg \
{posargs:--topology-platform debug} \
{toxinidir}/test {envsitepackagesdir}/topology
{toxinidir}/test \
{envsitepackagesdir}/topology


[testenv:doc]
basepython = python3
deps =
-rrequirements.doc.txt
whitelist_externals =
dot
commands =
sphinx-build -W -b html -d doctrees {toxinidir}/doc/ html


[flake8]
exclude = .git,.tox,.cache,__pycache__,*.egg-info


[pytest]
addopts = --doctest-modules

0 comments on commit eec4487

Please sign in to comment.