mirror of
https://github.com/python-escpos/python-escpos
synced 2025-12-02 09:43:30 +00:00
mock module qrcode for documentation build
This prevents issues with sphinx 7.2
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user