jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1198284?usp=email )

Change subject: [10.7] Prepare next release
......................................................................

[10.7] Prepare next release

Change-Id: I66db5a0690b5f2a303d14bf96a0667081f27799c
---
M .pre-commit-config.yaml
M HISTORY.rst
M ROADMAP.rst
M dev-requirements.txt
M docs/requirements.txt
M pywikibot/__init__.py
M pywikibot/__metadata__.py
M scripts/__init__.py
M scripts/pyproject.toml
M tests/utils.py
10 files changed, 55 insertions(+), 32 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 8201cd3..a150f20 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -65,7 +65,7 @@
         language: python
         require_serial: true
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: v0.14.0
+    rev: v0.14.1
     hooks:
       - id: ruff-check
         alias: ruff
diff --git a/HISTORY.rst b/HISTORY.rst
index ed084d5..23feeed 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,32 @@
 Release History
 ===============

+10.6.0
+------
+*23 October 2025*
+
+* Fix 
:meth:`ItemPage.get_value_at_timestamp()<pywikibot.ItemPage.get_value_at_timestamp>`;
+  keep the rank of the claims in the loop. (:phab:`T407701`)
+* :meth:`Family.isPublic()<family.Family.isPublic>` is deprecated 
(:phab:`T407049`)
+* Added :func:`tools.itertools.union_generators` for sorted merging of 
pre-sorted iterables.
+* **Support for Python 3.8 will be discontinued**;
+  this is likely the last Pywikibot version to support it.
+* Added a Citoid Query interface with the :mod:`data.citoid` module.
+* Updated localization (L10N) files.
+* :meth:`Family.interwiki_replacements<family.Family.interwiki_replacements>` 
is deprecated;
+  use :attr:`Family.code_aliases<family.Family.code_aliases>` instead.
+* The first parameter of :meth:`Transliterator.transliterate
+  <userinterfaces.transliteration.Transliterator.transliterate>` is positional 
only
+  whereas *prev* and *succ* parameters are keyword only. The 
:class:`Transliterator
+  <userinterfaces.transliteration.Transliterator>` was improved.
+* Show user-agent with :mod:`version<pywikibot.scripts.version>` script 
(:phab:`T406458`)
+* Positional arguments of :func:`daemonize()<daemonize.daemonize>` are 
deprecated and must
+  be given as keyword arguments.
+* i18n updates.
+* Return :meth:`bot.BaseBot.userPut` result from 
:meth:`AutomaticTWSummaryBot.put_current()
+  <bot.AutomaticTWSummaryBot.put_current>` method
+
+
 10.5.0
 ------
 *21 September 2025*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index d2e61bc..97fec9d 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,26 +1,7 @@
 Current Release Changes
 =======================

-* Fix 
:meth:`ItemPage.get_value_at_timestamp()<pywikibot.ItemPage.get_value_at_timestamp>`;
-  keep the rank of the claims in the loop. (:phab:`T407701`)
-* :meth:`Family.isPublic()<family.Family.isPublic>` is deprecated 
(:phab:`T407049`)
-* Added :func:`tools.itertools.union_generators` for sorted merging of 
pre-sorted iterables.
-* **Support for Python 3.8 will be discontinued**;
-  this is likely the last Pywikibot version to support it.
-* Added a Citoid Query interface with the :mod:`data.citoid` module.
-* Updated localization (L10N) files.
-* :meth:`Family.interwiki_replacements<family.Family.interwiki_replacements>` 
is deprecated;
-  use :attr:`Family.code_aliases<family.Family.code_aliases>` instead.
-* The first parameter of :meth:`Transliterator.transliterate
-  <userinterfaces.transliteration.Transliterator.transliterate>` is positional 
only
-  whereas *prev* and *succ* parameters are keyword only. The 
:class:`Transliterator
-  <userinterfaces.transliteration.Transliterator>` was improved.
-* Show user-agent with :mod:`version<pywikibot.scripts.version>` script 
(:phab:`T406458`)
-* Positional arguments of :func:`daemonize()<daemonize.daemonize>` are 
deprecated and must
-  be given as keyword arguments.
-* i18n updates.
-* Return :meth:`bot.BaseBot.userPut` result from 
:meth:`AutomaticTWSummaryBot.put_current()
-  <bot.AutomaticTWSummaryBot.put_current>` method
+* (no changes yet)


 Deprecations
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 4f1bef5..cc1bb08 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -1,20 +1,23 @@
 # This is a PIP 6+ requirements file for development dependencies
 #

-pytest >= 8.3.5
+pytest >= 8.4.2; python_version > "3.8"
+pytest == 8.3.5; python_version < "3.9"
 pytest-subtests >= 0.14.2; python_version > "3.8"
 pytest-subtests == 0.13.1; python_version < "3.9"
 pytest-attrib>=0.1.3
-pytest-xvfb>=3.0.0
+pytest-xvfb>=3.1.1; python_version > "3.8"
+pytest-xvfb==3.0.0; python_version < "3.9"

 pre-commit >= 4.3.0; python_version > "3.8"
 pre-commit == 3.5.0; python_version < "3.9"
+coverage>=7.11.0; python_version > "3.9"
+coverage==7.10.7; python_version == "3.9"
 coverage==7.6.1; python_version < "3.9"
-coverage>=7.10.6; python_version > "3.8"
 # required for coverage (T380697)
-tomli>=2.2.1; python_version < "3.11"
+tomli>=2.3.0; python_version < "3.11"


 # optional but needed for tests
-fake-useragent >= 2.0.3; python_version > "3.8"
-fake-useragent == 1.5.1; python_version < "3.9"
+fake-useragent >= 2.2.0; python_version > "3.8"
+fake-useragent == 2.1.0; python_version < "3.9"
diff --git a/docs/requirements.txt b/docs/requirements.txt
index ad2bb0f..40ec37e 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -6,4 +6,4 @@
 sphinxext-opengraph >= 0.13.0
 sphinx-copybutton >= 0.5.2
 sphinx-tabs >= 3.4.7
-furo >= 2025.7.19
+furo >= 2025.9.25
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 9b35fde..4ddaf22 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -59,7 +59,7 @@
 )
 from pywikibot.site import BaseSite as _BaseSite
 from pywikibot.time import Timestamp
-from pywikibot.tools import normalize_username
+from pywikibot.tools import PYTHON_VERSION, normalize_username


 if TYPE_CHECKING:
@@ -87,6 +87,15 @@

 _sites: dict[str, APISite] = {}

+if PYTHON_VERSION < (3, 9):
+    __version = sys.version.split(maxsplit=1)[0]
+    warnings.warn(f"""
+
+    Python {__version} will be dropped soon with Pywikibot 11.
+    It is recommended to use Python 3.9 or above.
+    See phab: T401802 for further information.
+""", FutureWarning)  # adjust warnings.warn line no in utils.execute()
+

 @cache
 def _code_fam_from_url(url: str, name: str | None = None) -> tuple[str, str]:
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index b9668b1..ae06172 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
 from time import strftime


-__version__ = '10.6.0'
+__version__ = '10.7.0.dev0'
 __url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
 __copyright__ = f'2003-{strftime("%Y")}, Pywikibot team'
diff --git a/scripts/__init__.py b/scripts/__init__.py
index 4037f0b..b747241 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -34,7 +34,7 @@
 from pathlib import Path


-__version__ = '10.6.0'
+__version__ = '10.7.0'

 #: defines the entry point for pywikibot-scripts package
 base_dir = Path(__file__).parent
diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml
index 4b4e403..67f846a 100644
--- a/scripts/pyproject.toml
+++ b/scripts/pyproject.toml
@@ -7,7 +7,7 @@

 [project]
 name = "pywikibot-scripts"
-version = "10.6.0"
+version = "10.7.0"

 authors = [
     {name = "xqt", email = "[email protected]"},
diff --git a/tests/utils.py b/tests/utils.py
index cf5860f..870ca14 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -25,6 +25,7 @@
 from pywikibot.exceptions import APIError
 from pywikibot.login import LoginStatus
 from pywikibot.site import Namespace
+from pywikibot.tools import PYTHON_VERSION
 from pywikibot.tools.collections import EMPTY_DEFAULT
 from tests import _pwb_py

@@ -474,6 +475,9 @@

     :param command: executable to run and arguments to use
     """
+    if PYTHON_VERSION < (3, 9):
+        command.insert(1, '-W ignore::FutureWarning:pywikibot:92')
+
     env = os.environ.copy()

     # Prevent output by test package; e.g. 'max_retries reduced from x to y'

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1198284?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: I66db5a0690b5f2a303d14bf96a0667081f27799c
Gerrit-Change-Number: 1198284
Gerrit-PatchSet: 3
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