JJMC89 has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1100501?usp=email )
Change subject: remove pywikibot.backports.importlib_metadata ......................................................................
remove pywikibot.backports.importlib_metadata
Bug: T378893 Change-Id: I00fcd83eec2e46cc9a62fdb0049c76f7a315f733 --- M ROADMAP.rst M pywikibot/backports.py 2 files changed, 2 insertions(+), 7 deletions(-)
Approvals: JJMC89: Verified; Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst index 5db0642..f7f45ad 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -26,7 +26,8 @@ * ``tools.formatter.color_format()`` was removed; the new color literals can be used instead * RedirectPageBot and NoRedirectPageBot bot classes were removed in favour of :attr:`use_redirects<bot.BaseBot.use_redirects>` attribute -* Python 3.7 support was dropped (:phab:`T378893`) +* Python 3.7 support was dropped (:phab:`T378893`), including *importlib_metadata* of + :mod:`backports`
Current Deprecations @@ -34,7 +35,6 @@
* 10.0.0: *includeredirects* parameter of :func:`pagegenerators.AllpagesPageGenerator` and :func:`pagegenerators.PrefixingPageGenerator` is deprecated and should be replaced by *filterredir* -* 10.0.0: *importlib_metadata* of :mod:`backports` is deprecated * 9.6.0: :meth:`BaseSite.languages()<pywikibot.site._basesite.BaseSite.languages>` will be removed in favour of :attr:`BaseSite.codes<pywikibot.site._basesite.BaseSite.codes>` * 9.5.0: :meth:`DataSite.getPropertyType()<pywikibot.site._datasite.DataSite.getPropertyType>` will be removed diff --git a/pywikibot/backports.py b/pywikibot/backports.py index a16161c..d93b8a0 100644 --- a/pywikibot/backports.py +++ b/pywikibot/backports.py @@ -3,8 +3,6 @@ .. deprecated:: 9.0 The *nullcontext* context manager; use ``contextlib.nullcontext`` instead. The *SimpleQueue* queue; use ``queue.SimpleQueue`` instead. -.. deprecated:: 10.0 - The *importlib_metadata* lib. Import ``importlib.metadata`` instead. """ # # (C) Pywikibot team, 2014-2024 @@ -218,6 +216,3 @@ wrapper.add_deprecated_attr('SimpleQueue', replacement_name='queue.SimpleQueue', since='9.0.0') -wrapper.add_deprecated_attr('importlib_metadata', - replacement_name='importlib.metadata', - since='10.0.0')
pywikibot-commits@lists.wikimedia.org