From cb2415b93b8087db9ef020a5e96e51c396d36bc1 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 24 Aug 2023 22:54:21 +0200 Subject: [PATCH] mock module qrcode for documentation build This prevents issues with sphinx 7.2 --- doc/conf.py | 3 +++ tox.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 4381304..f7dc802 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -47,6 +47,9 @@ extensions = [ "sphinxcontrib.spelling", ] +# mock the following modules for autodoc +autodoc_mock_imports = ["qrcode"] + # supress warnings for external images suppress_warnings = [ "image.nonlocal_uri", diff --git a/tox.ini b/tox.ini index 0161bce..ad1b518 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ setenv = PY_IGNORE_IMPORTMISMATCH=1 [testenv:docs] basepython = python changedir = doc -deps = sphinx>=3.0.0,<7.2 +deps = sphinx>=7.2.3 setuptools_scm python-barcode sphinxcontrib-spelling>=7.2.0