Skip to content

Commit

Permalink
ignore poetry in tox
Browse files Browse the repository at this point in the history
based on discussion here:
python-poetry/poetry#1941
  • Loading branch information
cole committed Oct 18, 2020
1 parent 7456efa commit ef1e93e
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,23 @@ setenv =
PYTHONWARNINGS = {env:PYTHONWARNINGS:once::DeprecationWarning}
passenv = *
deps =
poetry>=1,<2
commands_pre =
asyncio: poetry install -v
uvloop: poetry install -E uvloop -v
pytest>=6,<7
pytest-asyncio>=0.14,<1
pytest-cov>=2.10,<3
coverage>=5.2,<6
hypothesis>=5.35,<6
aiosmtpd>=1.2,<2
uvloop: uvloop>=0.13,<0.15
commands =
asyncio: poetry run py.test --basetemp="{envtmpdir}" --cov --cov-report= --cov-config=tox.ini --junitxml=test-results/{envname}/results.xml --event-loop=asyncio --bind-addr={env:AIOSMTPLIB_TEST_BIND_ADDR:localhost} --hypothesis-profile {env:HYPOTHESIS_PROFILE:dev} {posargs:--tb=short}
uvloop: poetry run py.test --basetemp="{envtmpdir}" --cov --cov-report= --cov-config=tox.ini --junitxml=test-results/{envname}/results.xml --event-loop=uvloop --bind-addr={env:AIOSMTPLIB_TEST_BIND_ADDR:localhost} --hypothesis-profile {env:HYPOTHESIS_PROFILE:dev} {posargs:--tb=short}
asyncio: python -m pytest --basetemp="{envtmpdir}" --cov --cov-report= --cov-config=tox.ini --junitxml=test-results/{envname}/results.xml --event-loop=asyncio --bind-addr={env:AIOSMTPLIB_TEST_BIND_ADDR:localhost} --hypothesis-profile {env:HYPOTHESIS_PROFILE:dev} {posargs:--tb=short}
uvloop: python -m pytest --basetemp="{envtmpdir}" --cov --cov-report= --cov-config=tox.ini --junitxml=test-results/{envname}/results.xml --event-loop=uvloop --bind-addr={env:AIOSMTPLIB_TEST_BIND_ADDR:localhost} --hypothesis-profile {env:HYPOTHESIS_PROFILE:dev} {posargs:--tb=short}
depends =
py{3.6,3.7,3.8,3.9,3.10}-{asyncio,uvloop}: clean
pypy3-asyncio: clean
coverage: py3.6-asyncio, py3.7-asyncio, py3.8-asyncio, py3.9-asyncio, py3.10-asyncio, py3.6-uvloop, py3.7-uvloop, py3.8-uvloop, py3.9-uvloop, py3.10-uvloop, pypy3-asyncio

[testenv:clean]
deps = coverage>=5,<6
deps =coverage>=5,<6
skip_install = true
setenv =
COVERAGE_FILE = .coverage
Expand All @@ -44,22 +47,22 @@ commands =

[testenv:docs]
basepython = python3.8
skip_install = true
deps =
{[testenv]deps}
sphinx>=3,<4
sphinx_autodoc_typehints>=1.7,<2
changedir = docs
commands_pre = poetry install -E docs -v
commands =
poetry run sphinx-build {posargs:-nWT} -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/html
poetry run sphinx-build {posargs:-nWT} -b dummy -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build {posargs:-nWT} -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build {posargs:-nWT} -b dummy -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:lint]
deps =
pre-commit
{[testenv]deps}
basepython = python3.8
skip_install = true
commands =
pre-commit run --all-files --show-diff-on-failure
poetry check

[testenv:coverage]
deps = coverage>=5,<6
Expand Down

0 comments on commit ef1e93e

Please sign in to comment.