mock module qrcode for documentation build

This prevents issues with sphinx 7.2
This commit is contained in:
Patrick Kanzler 2023-08-24 22:54:21 +02:00
parent 7f39b2b8b5
commit cb2415b93b
2 changed files with 4 additions and 1 deletions

View File

@ -47,6 +47,9 @@ extensions = [
"sphinxcontrib.spelling", "sphinxcontrib.spelling",
] ]
# mock the following modules for autodoc
autodoc_mock_imports = ["qrcode"]
# supress warnings for external images # supress warnings for external images
suppress_warnings = [ suppress_warnings = [
"image.nonlocal_uri", "image.nonlocal_uri",

View File

@ -30,7 +30,7 @@ setenv = PY_IGNORE_IMPORTMISMATCH=1
[testenv:docs] [testenv:docs]
basepython = python basepython = python
changedir = doc changedir = doc
deps = sphinx>=3.0.0,<7.2 deps = sphinx>=7.2.3
setuptools_scm setuptools_scm
python-barcode python-barcode
sphinxcontrib-spelling>=7.2.0 sphinxcontrib-spelling>=7.2.0