Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1305697?usp=email )

Change subject: release: Publish Pywikibot 11.4.1
......................................................................

release: Publish Pywikibot 11.4.1

Change-Id: I39a460b20c9eefcfa010ef4ec6de4acad8eb4c30
---
M ROADMAP.rst
M pywikibot/__metadata__.py
M pywikibot/echo.py
M pywikibot/page/_user.py
M pywikibot/pagegenerators/__init__.py
M pywikibot/pagegenerators/_factory.py
M pywikibot/site/_generators.py
7 files changed, 22 insertions(+), 17 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/ROADMAP.rst b/ROADMAP.rst
index 974d6d8..ed6aac9 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,7 +1,11 @@
-Release 11.5
-============
+Release 11.4.1
+==============

-* (no changes yet)
+* Ensure :attr:`pagegenerators.GeneratorFactory.gens` is not empty if a 
generator is specified with
+  :ref:`Generator Options`. (:phab:`T430093`)
+* Remove special namespaces -1 and -2 if ``not:`` directive is used with 
``-namespaces``
+  :ref:`Generator Options`. (:phab:`T429803`)
+

 Deprecations
 ============
@@ -103,9 +107,15 @@
 Pending removal in Pywikibot 14
 -------------------------------

+* 11.4.0: The signature of :meth:`APISite.allusers()
+  <pywikibot.site._generators.GeneratorsMixin.allusers>` was changed;
+  all parameters are keyword-only.
+* 11.4.0: The signature of :func:`tools.open_archive` was changed. *filename* 
parameter is
+  positional only, *use_extension* is keyword only.
 * 11.0.0: The User-Agent variable *script_product* is deprecated; use *script* 
instead.
   The User-Agent variable *version* is deprecated; use *revision* instead.
   The User-Agent variables *lang*, *code* and *family* are deprecated; use 
*site* instead.
-* 11.0.0: Positional argument for *block* parameter is deprecated; use a 
keyword argument instead.
+* 11.0.0: Positional argument for *block* parameter of 
:func:`pywikibot.async_manager` is
+  deprecated; use a keyword argument instead.
 * 11.0.0: Keyword parameters for *text_a* and *text_b* of 
:class:`diff.PatchManager` are deprecated.
   Positional parameters for *by_letter* and *replace_invisible* are deprecated.
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index 5faec3a..1876d43 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
 from time import strftime


-__version__ = '11.5.0.dev0'
+__version__ = '11.4.1'
 __url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
 __copyright__ = f'2003-{strftime("%Y")}, Pywikibot team'
diff --git a/pywikibot/echo.py b/pywikibot/echo.py
index 5d4b2fa..989d942 100644
--- a/pywikibot/echo.py
+++ b/pywikibot/echo.py
@@ -38,7 +38,7 @@
     def __post_init__(self) -> None:
         """Initialize attributes for an empty Notification object.

-        .. versionadded: 10.3
+        .. version-added: 10.3
         """
         self.event_id: int | None = None
         self.type = None
diff --git a/pywikibot/page/_user.py b/pywikibot/page/_user.py
index b5bdf8c..a2518a5 100644
--- a/pywikibot/page/_user.py
+++ b/pywikibot/page/_user.py
@@ -177,7 +177,7 @@

         .. version-changed:: 9.0
            detect range blocks
-        .. versionchanged:: 11.4
+        .. version-changed:: 11.4
            Added the *extra_props* parameter.

         :param force: If True, forces reloading the data from API
diff --git a/pywikibot/pagegenerators/__init__.py 
b/pywikibot/pagegenerators/__init__.py
index 91385f9..bc1fd7a 100644
--- a/pywikibot/pagegenerators/__init__.py
+++ b/pywikibot/pagegenerators/__init__.py
@@ -496,7 +496,7 @@
                     -ns:not:2,3
                     -ns:not:Help,File

-                    .. versionchanged:: 11.5
+                    .. version-changed:: 11.4.1
                        When using the leading ``not`` directive, the special
                        namespaces ``-1`` and ``-2`` are not included. To
                        add them, specify them explicitly, e.g. ``-ns:-1``.
diff --git a/pywikibot/pagegenerators/_factory.py 
b/pywikibot/pagegenerators/_factory.py
index 158c28a..14e7d73 100644
--- a/pywikibot/pagegenerators/_factory.py
+++ b/pywikibot/pagegenerators/_factory.py
@@ -664,14 +664,7 @@
         return TextIOPageGenerator(value, site=self.site)

     def _handle_namespaces(self, value: str) -> Literal[True]:
-        """Handle `-namespaces` argument.
-
-        .. version-changed:: 11.5
-           If preleading ``not:`` directive is given, special namespaces
-           ``-1`` and ``-2`` are not included.
-
-        :meta public:
-        """
+        """Handle `-namespaces` argument."""
         if isinstance(self._namespaces, frozenset):
             raise RuntimeError('-namespace/ns option must be provided before '
                                '-newpages/-random/-randomredirect/-linter')
@@ -1050,6 +1043,8 @@
            :attr:`gens`. The generator is added lazily in
            :meth:`getCombinedGenerator`
         .. version-changed:: 11.4.1
+           If preleading ``not:`` directive is given, special namespaces
+           ``-1`` and ``-2`` are not included.
            The ``-start`` or ``-until`` parameters appends a placeholder
            to :attr:`gens`, which indicates that a generator was
            specified.
diff --git a/pywikibot/site/_generators.py b/pywikibot/site/_generators.py
index f9fe056..4639bf6 100644
--- a/pywikibot/site/_generators.py
+++ b/pywikibot/site/_generators.py
@@ -1910,7 +1910,7 @@
         Additional properties may be specified with *extra_props* and are
         appended to the default properties.

-        .. versionchanged:: 11.4
+        .. version-changed:: 11.4
            Added the *extra_props* parameter.
         .. seealso:: :api:`Users`


--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1305697?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I39a460b20c9eefcfa010ef4ec6de4acad8eb4c30
Gerrit-Change-Number: 1305697
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to