|
1 | 1 | Current Release Changes |
2 | 2 | ======================= |
3 | 3 |
|
| 4 | +* Refactor the :class:`throttle.Trottle` class (:phab:`T289318`) |
| 5 | +* L10N-Updates: add language aliases for ``gsw``, ``sgs``, ``vro``, ``rup`` and ``lzh`` |
| 6 | + to :class:`family.WikimediaFamily` family class |
| 7 | + (:phab:`T399411`, :phab:`T399438`, :phab:`T399444`, :phab:`T399693`, :phab:`T399697` ) |
| 8 | +* Refactor HTML removal logic in :func:`textlib.removeHTMLParts` using :class:`textlib.GetDataHTML` |
| 9 | + parser; *removetags* parameter was introduced to remove specified tag blocks (:phab:`T399378`) |
| 10 | +* Refactor :class:`echo.Notification` and fix :meth:`mark_as_read()<echo.Notification.mark_as_read>` |
| 11 | + method (:phab:`T398770`) |
| 12 | +* Update beta domains in family files from beta.wmflabs.org to beta.wmcloud.org (:phab:`T289318`) |
4 | 13 | * ``textlib.to_latin_digits()`` was renamed to :func:`textlib.to_ascii_digits` (:phab:`T398146#10958283`), |
5 | | - ``NON_LATIN_DIGITS`` of :mod:`userinterfaces.transliteration` was renamed to ``NON_ASCII_DIGITS``. |
6 | | -* Add -cookies option to :mod:`login<pywikibot.scripts.login>` script to login with cookies files only |
7 | | -* Create a Site using :func:`pywikibot.Site` constructor with a given url even if the url ends with |
8 | | - a slash (:phab:`T396592`) |
| 14 | + ``NON_LATIN_DIGITS`` of :mod:`userinterfaces.transliteration` was renamed to ``NON_ASCII_DIGITS`` |
| 15 | +* Add -cookies option to the :mod:`login<pywikibot.scripts.login>` script to log in with cookies |
| 16 | + files only |
| 17 | +* Create a Site using the :func:`pywikibot.Site` constructor with a given url even if the URL, even |
| 18 | + if it ends with a slash (:phab:`T396592`) |
9 | 19 | * Remove hard-coded error messages from :meth:`login.LoginManager.login` and use API response instead |
10 | | -* Add additional informations to :meth:`Site.login()<pywikibot.site._apisite.APISite.login>` error message (:phab:`T395670`) |
| 20 | +* Add additional information to :meth:`Site.login()<pywikibot.site._apisite.APISite.login>` |
| 21 | + error message (:phab:`T395670`) |
11 | 22 | * i18n updates |
12 | 23 |
|
13 | | -Current Deprecations |
14 | | -==================== |
| 24 | +Deprecations |
| 25 | +============ |
15 | 26 |
|
16 | | -* 10.3.0: ``textlib.to_latin_digits()`` will be removed in favour of :func:`textlib.to_ascii_digits`, |
17 | | - ``NON_LATIN_DIGITS`` of :mod:`userinterfaces.transliteration` will be removed in favour of ``NON_ASCII_DIGITS``. |
| 27 | +Pending removal in Pywikibot 13 |
| 28 | +------------------------------- |
| 29 | + |
| 30 | +* 10.3.0: :meth:`throttle.Trottle.getDelay` and :meth:`throttle.Trottle.setDelays` were renamed; the |
| 31 | + old methods will be removed (:phab:`T289318`) |
| 32 | +* 10.3.0: :attr:`throttle.Trottle.next_multiplicity` attribute is unused and will be removed |
| 33 | + (:phab:`T289318`) |
| 34 | +* 10.3.0: *requestsize* parameter of :class:`throttle.Trottle` call is deprecated and will be |
| 35 | + dropped (:phab:`T289318`) |
| 36 | +* 10.3.0: :func:`textlib.to_latin_digits` will be removed in favour of |
| 37 | + :func:`textlib.to_ascii_digits`, ``NON_LATIN_DIGITS`` of :mod:`userinterfaces.transliteration` |
| 38 | + will be removed in favour of ``NON_ASCII_DIGITS`` (:phab:`T398146#10958283`) |
18 | 39 | * 10.2.0: :mod:`tools.threading.RLock<tools.threading>` is deprecated and moved to :mod:`backports` |
19 | 40 | module. The :meth:`backports.RLock.count` method is also deprecated. For Python 3.14+ use ``RLock`` |
20 | 41 | from Python library ``threading`` instead. (:phab:`T395182`) |
21 | 42 | * 10.1.0: *revid* and *date* parameters of :meth:`Page.authorship() |
22 | 43 | <page._toolforge.WikiBlameMixin.authorship>` were dropped |
23 | | -* 10.0.0: *last_id* of :class:`comms.eventstreams.EventStreams` was renamed to *last_event_id* (:phab:`T309380`) |
| 44 | +* 10.0.0: *last_id* of :class:`comms.eventstreams.EventStreams` was renamed to *last_event_id* |
| 45 | + (:phab:`T309380`) |
24 | 46 | * 10.0.0: 'millenia' argument for *precision* parameter of :class:`pywikibot.WbTime` is deprecated; |
25 | | - 'millennium' must be used instead. |
| 47 | + 'millennium' must be used instead |
26 | 48 | * 10.0.0: *includeredirects* parameter of :func:`pagegenerators.AllpagesPageGenerator` and |
27 | 49 | :func:`pagegenerators.PrefixingPageGenerator` is deprecated and should be replaced by *filterredir* |
| 50 | + |
| 51 | + |
| 52 | +Pending removal in Pywikibot 12 |
| 53 | +------------------------------- |
| 54 | + |
28 | 55 | * 9.6.0: :meth:`BaseSite.languages()<pywikibot.site._basesite.BaseSite.languages>` will be removed in |
29 | 56 | favour of :attr:`BaseSite.codes<pywikibot.site._basesite.BaseSite.codes>` |
30 | 57 | * 9.5.0: :meth:`DataSite.getPropertyType()<pywikibot.site._datasite.DataSite.getPropertyType>` will be removed |
31 | 58 | in favour of :meth:`DataSite.get_property_type()<pywikibot.site._datasite.DataSite.get_property_type>` |
32 | 59 | * 9.3.0: :meth:`page.BasePage.userName` and :meth:`page.BasePage.isIpEdit` are deprecated in favour of |
33 | 60 | ``user`` or ``anon`` attributes of :attr:`page.BasePage.latest_revision` property |
34 | | -* 9.2.0: Imports of :mod:`logging` functions from :mod:`bot` module is deprecated and will be desupported |
| 61 | +* 9.2.0: Imports of :mod:`logging` functions from the :mod:`bot` module are deprecated and will be desupported |
35 | 62 | * 9.2.0: *total* argument in ``-logevents`` pagegenerators option is deprecated; |
36 | 63 | use ``-limit`` instead (:phab:`T128981`) |
37 | 64 | * 9.0.0: The *content* parameter of :meth:`proofreadpage.IndexPage.page_gen` is deprecated and will be |
38 | 65 | ignored (:phab:`T358635`) |
39 | | -* 9.0.0: ``userinterfaces.transliteration.transliterator`` was renamed to :class:`Transliterator |
40 | | - <userinterfaces.transliteration.Transliterator>` |
41 | | -* 9.0.0: ``next`` parameter of :meth:`userinterfaces.transliteration.transliterator.transliterate` was |
| 66 | +* 9.0.0: ``next`` parameter of :meth:`userinterfaces.transliteration.Transliterator.transliterate` was |
42 | 67 | renamed to ``succ`` |
43 | | -* 9.0.0: ``type`` parameter of :meth:`site.APISite.protectedpages() |
| 68 | +* 9.0.0: ``userinterfaces.transliteration.transliterator`` object was renamed to :class:`Transliterator |
| 69 | + <userinterfaces.transliteration.Transliterator>` |
| 70 | +* 9.0.0: The ``type`` parameter of :meth:`site.APISite.protectedpages() |
44 | 71 | <pywikibot.site._generators.GeneratorsMixin.protectedpages>` was renamed to ``protect_type`` |
45 | | -* 9.0.0: ``all`` parameter of :meth:`site.APISite.namespace()<pywikibot.site._apisite.APISite.namespace>` |
46 | | - was renamed to ``all_ns`` |
| 72 | +* 9.0.0: The ``all`` parameter of :meth:`site.APISite.namespace() |
| 73 | + <pywikibot.site._apisite.APISite.namespace>` was renamed to ``all_ns`` |
47 | 74 | * 9.0.0: ``filter`` parameter of :func:`date.dh` was renamed to ``filter_func`` |
48 | 75 | * 9.0.0: ``dict`` parameter of :class:`data.api.OptionSet` was renamed to ``data`` |
49 | | -* 9.0.0: ``pywikibot.version.get_toolforge_hostname()`` is deprecated without replacement |
| 76 | +* 9.0.0: :func:`pywikibot.version.get_toolforge_hostname` is deprecated with no replacement |
50 | 77 | * 9.0.0: ``allrevisions`` parameter of :class:`xmlreader.XmpDump` is deprecated, use ``revisions`` instead |
51 | 78 | (:phab:`T340804`) |
52 | 79 | * 9.0.0: ``iteritems`` method of :class:`data.api.Request` will be removed in favour of ``items`` |
53 | | -* 9.0.0: ``SequenceOutputter.output()`` is deprecated in favour of :attr:`tools.formatter.SequenceOutputter.out` |
54 | | - property |
| 80 | +* 9.0.0: ``SequenceOutputter.output()`` is deprecated in favour of the |
| 81 | + :attr:`tools.formatter.SequenceOutputter.out` property |
55 | 82 |
|
56 | 83 |
|
57 | 84 | Pending removal in Pywikibot 11 |
58 | 85 | ------------------------------- |
59 | 86 |
|
60 | | -* 8.4.0: *modules_only_mode* parameter of :class:`data.api.ParamInfo`, its *paraminfo_keys* class attribute |
61 | | - and its preloaded_modules property will be removed |
62 | | -* 8.4.0: *dropdelay* and *releasepid* attributes of :class:`throttle.Throttle` will be removed |
63 | | - in favour of *expiry* class attribute |
64 | | -* 8.2.0: :func:`tools.itertools.itergroup` will be removed in favour of :func:`backports.batched` |
65 | | -* 8.2.0: *normalize* parameter of :meth:`WbTime.toTimestr` and :meth:`WbTime.toWikibase` will be removed |
66 | | -* 8.1.0: Dependency of :exc:`exceptions.NoSiteLinkError` from :exc:`exceptions.NoPageError` will be removed |
67 | | -* 8.1.0: ``exceptions.Server414Error`` is deprecated in favour of :exc:`exceptions.Client414Error` |
68 | | -* 8.0.0: :meth:`Timestamp.clone()<pywikibot.time.Timestamp.clone>` method is deprecated |
69 | | - in favour of ``Timestamp.replace()`` method. |
70 | | -* 8.0.0: :meth:`family.Family.maximum_GET_length` method is deprecated in favour of |
71 | | - :ref:`config.maximum_GET_length<Account Settings>` (:phab:`T325957`) |
72 | | -* 8.0.0: ``addOnly`` parameter of :func:`textlib.replaceLanguageLinks` and |
73 | | - :func:`textlib.replaceCategoryLinks` are deprecated in favour of ``add_only`` |
74 | | -* 8.0.0: :class:`textlib.TimeStripper` regex attributes ``ptimeR``, ``ptimeznR``, ``pyearR``, ``pmonthR``, |
75 | | - ``pdayR`` are deprecated in favour of ``patterns`` attribute which is a |
76 | | - :class:`textlib.TimeStripperPatterns`. |
77 | | -* 8.0.0: :class:`textlib.TimeStripper` ``groups`` attribute is deprecated in favour of ``textlib.TIMEGROUPS`` |
78 | | -* 8.0.0: :meth:`LoginManager.get_login_token<login.ClientLoginManager.get_login_token>` was |
79 | | - replaced by ``login.ClientLoginManager.site.tokens['login']`` |
80 | | -* 8.0.0: ``data.api.LoginManager()`` is deprecated in favour of :class:`login.ClientLoginManager` |
81 | | -* 8.0.0: :meth:`APISite.messages()<pywikibot.site._apisite.APISite.messages>` method is deprecated in |
82 | | - favour of :attr:`userinfo['messages']<pywikibot.site._apisite.APISite.userinfo>` |
83 | | -* 8.0.0: :meth:`Page.editTime()<page.BasePage.editTime>` method is deprecated and should be replaced by |
84 | | - :attr:`Page.latest_revision.timestamp<page.BasePage.latest_revision>` |
| 87 | +* 8.4.0: The *modules_only_mode* parameter in the :class:`data.api.ParamInfo` class, its |
| 88 | + *paraminfo_keys* class attribute, and its ``preloaded_modules`` property will be removed |
| 89 | +* 8.4.0: The *dropdelay* and *releasepid* attributes of the :class:`throttle.Throttle` class will be |
| 90 | + removed in favour of the *expiry* class attribute |
| 91 | +* 8.2.0: The :func:`tools.itertools.itergroup` function will be removed in favour of the |
| 92 | + :func:`backports.batched` function |
| 93 | +* 8.2.0: The *normalize* parameter in the :meth:`WbTime.toTimestr` and :meth:`WbTime.toWikibase` |
| 94 | + methods will be removed |
| 95 | +* 8.1.0: The inheritance of the :exc:`exceptions.NoSiteLinkError` exception from |
| 96 | + :exc:`exceptions.NoPageError` will be removed |
| 97 | +* 8.1.0: The ``exceptions.Server414Error`` exception is deprecated in favour of the |
| 98 | + :exc:`exceptions.Client414Error` exception |
| 99 | +* 8.0.0: The :meth:`Timestamp.clone()<pywikibot.time.Timestamp.clone>` method is deprecated in |
| 100 | + favour of the ``Timestamp.replace()`` method |
| 101 | +* 8.0.0: The :meth:`family.Family.maximum_GET_length` method is deprecated in favour of the |
| 102 | + :ref:`config.maximum_GET_length<Account Settings>` configuration option (:phab:`T325957`) |
| 103 | +* 8.0.0: The ``addOnly`` parameter in the :func:`textlib.replaceLanguageLinks` and |
| 104 | + :func:`textlib.replaceCategoryLinks` functions is deprecated in favour of ``add_only`` |
| 105 | +* 8.0.0: The regex attributes ``ptimeR``, ``ptimeznR``, ``pyearR``, ``pmonthR``, and ``pdayR`` of |
| 106 | + the :class:`textlib.TimeStripper` class are deprecated in favour of the ``patterns`` attribute, |
| 107 | + which is a :class:`textlib.TimeStripperPatterns` object |
| 108 | +* 8.0.0: The ``groups`` attribute of the :class:`textlib.TimeStripper` class is deprecated in favour |
| 109 | + of the :data:`textlib.TIMEGROUPS` constant |
| 110 | +* 8.0.0: The :meth:`LoginManager.get_login_token<login.ClientLoginManager.get_login_token>` method |
| 111 | + has been replaced by ``login.ClientLoginManager.site.tokens['login']`` |
| 112 | +* 8.0.0: The ``data.api.LoginManager()`` constructor is deprecated in favour of the |
| 113 | + :class:`login.ClientLoginManager` class |
| 114 | +* 8.0.0: The :meth:`APISite.messages()<pywikibot.site._apisite.APISite.messages>` method is |
| 115 | + deprecated in favour of the :attr:`userinfo['messages']<pywikibot.site._apisite.APISite.userinfo>` |
| 116 | + attribute |
| 117 | +* 8.0.0: The :meth:`Page.editTime()<page.BasePage.editTime>` method is deprecated and should be |
| 118 | + replaced by the :attr:`Page.latest_revision.timestamp<page.BasePage.latest_revision>` attribute |
0 commit comments