From b5d5f1e265cb5bbd544b24c686546f4284c7d270 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Wed, 16 Jun 2021 20:35:49 +0300 Subject: [PATCH] repoze.sphinx.autointerface breaks with new Sphinx --- setup.py | 4 +++- tox.ini | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 6722dfd..6e585b0 100644 --- a/setup.py +++ b/setup.py @@ -129,7 +129,9 @@ def _read_file(filename): ], 'testing': (), 'docs': [ - 'Sphinx', + # Until repoze.sphinx.autointerface supports Sphinx 4.x we cannot use it: + # https://github.com/repoze/repoze.sphinx.autointerface/issues/16 + 'Sphinx < 4', 'repoze.sphinx.autointerface', ], }, diff --git a/tox.ini b/tox.ini index 7d8fec2..a84aab1 100644 --- a/tox.ini +++ b/tox.ini @@ -3,8 +3,8 @@ envlist = py27,py35,py36,py37,py37-pure,py38,py39,py27-pure,pypy,pypy3,coverage,docs [testenv] -deps = - .[test] +extras = + test commands = zope-testrunner --test-path=. [] @@ -30,7 +30,6 @@ commands = python -c 'import os, subprocess; subprocess.check_call("coverage run -a -m zope.testrunner --test-path=.", env=dict(os.environ, PURE_PYTHON="0"), shell=True)' coverage report --fail-under=100 deps = - {[testenv]deps} coverage [testenv:docs] @@ -39,5 +38,5 @@ basepython = commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest -deps = - .[docs] +extras = + docs