jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/944842 )
Change subject: [doc] Show a warning for Pillow dependency of gui module
......................................................................
[doc] Show a warning for Pillow dependency of gui module
Bug: T341198
Change-Id: I6bf4cfa65f33e91d1754d663e57208d34bab012a
---
M pywikibot/editor.py
M pywikibot/userinterfaces/gui.py
2 files changed, 28 insertions(+), 8 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/editor.py b/pywikibot/editor.py
index 9a20282..f3b47ee 100644
--- a/pywikibot/editor.py
+++ b/pywikibot/editor.py
@@ -1,6 +1,10 @@
-"""Text editor class for your favourite editor."""
+"""Text editor class for your favourite editor.
+
+.. note:: This module uses :mod:`userinterfaces.gui` and has depedencies
+ from other partially external modules.
+"""
#
-# (C) Pywikibot team, 2004-2022
+# (C) Pywikibot team, 2004-2023
#
# Distributed under the terms of the MIT license.
#
diff --git a/pywikibot/userinterfaces/gui.py b/pywikibot/userinterfaces/gui.py
index 22b2e7a..1eff547 100644
--- a/pywikibot/userinterfaces/gui.py
+++ b/pywikibot/userinterfaces/gui.py
@@ -2,7 +2,15 @@
Useful for editing the contents of an article.
-.. note:: idlelib and tkinter modules are required
+.. note:: idlelib, tkinter and pillow modules are required.
+
+.. warning::
+ With Pillow 10 no wheels for 32-bit Python on Windows are supported.
+ This was made for Python 3.12 compatibility. Either you have to
+ update your Python using a 64-bit version or you have to
+ :command:`pip install "pillow < 10.0.0"`.
+
+.. seealso:: :mod:`editor`
"""
#
# (C) Pywikibot team, 2003-2023
@@ -46,14 +54,12 @@
"""A text widget with some editing enhancements.
- A lot of code here is copied or adapted from the idlelib/EditorWindow.py
- file in the standard Python distribution.
-
+ A lot of code here is copied or adapted from the
+ idlelib/EditorWindow.py file in the standard Python distribution.
"""
def __init__(self, master=None, **kwargs) -> None:
- """
- Initializer.
+ """Initializer.
Get default settings from user's IDLE configuration.
"""
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/944842
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: I6bf4cfa65f33e91d1754d663e57208d34bab012a
Gerrit-Change-Number: 944842
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged