jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/699328 )
Change subject: [cleanup] Suppress deprecation warnings while building docs
......................................................................
[cleanup] Suppress deprecation warnings while building docs
The sphinx.util.inspect.safe_getattr() function triggers FutureWarnings for
every deprecated class as they're processed. This reduces the output of 'make
clean; make html' from 120 to 48 lines.
Change-Id: I6118efb78391c4c700d38ebb3d3a97b83c88ce8e
---
M docs/conf.py
1 file changed, 7 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/docs/conf.py b/docs/conf.py
index d3e68ae..6a10812 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -23,9 +23,16 @@
import os
import re
import sys
+import warnings
+
from os.path import abspath, dirname, join
+# Deprecated classes will generate warnings as Sphinx processes them. Ignoring
+# them.
+
+warnings.simplefilter(action='ignore', category=FutureWarning)
+
docs_dir = dirname(__file__)
repo_dir = abspath(join(docs_dir, '..'))
sys.path.insert(0, repo_dir)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/699328
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6118efb78391c4c700d38ebb3d3a97b83c88ce8e
Gerrit-Change-Number: 699328
Gerrit-PatchSet: 1
Gerrit-Owner: Damian <atagar1(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged