Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1198079?usp=email )
Change subject: [10.6] Publish Pywikibot 10.6
......................................................................
[10.6] Publish Pywikibot 10.6
Change-Id: Ifca2b4a6aeb8a647a4bbfcbf633637c0c75d55a0
---
M ROADMAP.rst
M pywikibot/__init__.py
M pywikibot/__metadata__.py
M pywikibot/page/_wikibase.py
M tests/utils.py
5 files changed, 9 insertions(+), 16 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 46a13ea..d2e61bc 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,6 +1,9 @@
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.
@@ -113,6 +116,7 @@
Pending removal in Pywikibot 13
-------------------------------
+* 10.6.0: :meth:`Family.isPublic()<family.Family.isPublic>` will be removed
(:phab:`T407049`)
* 10.6.0:
:meth:`Family.interwiki_replacements<family.Family.interwiki_replacements>` is
deprecated;
use :attr:`Family.code_aliases<family.Family.code_aliases>` instead.
* Keyword argument for *char* parameter of :meth:`Transliterator.transliterate
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 4ddaf22..9b35fde 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 PYTHON_VERSION, normalize_username
+from pywikibot.tools import normalize_username
if TYPE_CHECKING:
@@ -87,15 +87,6 @@
_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 2004918..b9668b1 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -12,6 +12,6 @@
from time import strftime
-__version__ = '10.6.0.dev0'
+__version__ = '10.6.0'
__url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot'
__copyright__ = f'2003-{strftime("%Y")}, Pywikibot team'
diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index f7d99c9..5da0ea6 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -2239,9 +2239,11 @@
'type': self.value_types.get(self.type, self.type)
}
- def has_better_rank(self, other) -> bool:
+ def has_better_rank(self, other: Claim | None) -> bool:
"""Check if this claim has a better rank than the other claim.
+ .. versionadded:: 10.6
+
:param other: The other claim to compare with.
:return: True if this claim has a better rank, False otherwise.
"""
diff --git a/tests/utils.py b/tests/utils.py
index 870ca14..cf5860f 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -25,7 +25,6 @@
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
@@ -475,9 +474,6 @@
: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/+/1198079?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: Ifca2b4a6aeb8a647a4bbfcbf633637c0c75d55a0
Gerrit-Change-Number: 1198079
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]