From ef1e93e01f76e2a14e9314f5d214efd11f51b065 Mon Sep 17 00:00:00 2001 From: Cole Maclean Date: Sun, 18 Oct 2020 11:56:09 -0700 Subject: [PATCH] ignore poetry in tox based on discussion here: https://github.com/python-poetry/poetry/issues/1941 --- tox.ini | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/tox.ini b/tox.ini index 50fd4065..059b4392 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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