jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237949?usp=email )
Change subject: [11] Publish Pywikibot 11 ...................................................................... [11] Publish Pywikibot 11 Bug: T396368 Change-Id: If70ffb1a011134f185d02417a7e66522d06f698b --- M HISTORY.rst M ROADMAP.rst M docs/api_ref/family.rst M pywikibot/__metadata__.py 4 files changed, 26 insertions(+), 2 deletions(-) Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified diff --git a/HISTORY.rst b/HISTORY.rst index 8f32fe2..489984a 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1538,7 +1538,8 @@ * LoginManager.getCookie() was renamed to login_to_site() * Deprecation warning for MediaWiki < 1.23 (:phab:`T268979`) * Add backports to support some Python 3.9 changes -* Desupported shared_image_repository() and nocapitalize() methods were removed (:phab:`T89451`) +* Desupported ``iwkeys()``, ``nicepath()``, ``nice_get_address``, ``shared_data_repository()`` + methods and ``nocapitalize`` attribute were removed (:phab:`T89451`) * pywikibot.cookie_jar was removed in favour of pywikibot.comms.http.cookie_jar * Align http.fetch() params with requests and rename 'disable_ssl_certificate_validation' to 'verify' (:phab:`T265206`) * Deprecated compat BasePage.getRestrictions() method was removed diff --git a/ROADMAP.rst b/ROADMAP.rst index b6eea65..7886c42 100644 --- a/ROADMAP.rst +++ b/ROADMAP.rst @@ -3,6 +3,9 @@ **Improvements** +* Use URL to bot's wiki page in :ref:`user_agent_format<Account Settings>` due to `Foundation UA + Policy <https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy>`_. + (:phab:`T414173`, :phab:`T414201`) * Show Pywikibot version in deprecation warnings for :mod:`config` variables. * :ref:`config.pickle_protocol<Further Settings>` was updated from version `2` to `5`. Older pickle files are still readable. @@ -119,6 +122,15 @@ **Other breaking changes** +* Set :ref:`minthrottle<Settings to Avoid Server Overload>` to 0.1 due to `Wikimedia Bot Policy + <https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy>`_. + (:phab:`T414170`) +* Clean up :ref:`user_agent_format<Account Settings>` string. + Replace the first occurrence of "family", "code", or "lang" with "site". + The "lang" variable never worked properly. All of these can be replaced + with "site", which is recognized by Wikimedia traffic management. + Also replace "script_product" by "script" and "version" by "revision". + Replace {script_product} with {username}/{script} in user_agent_format. (:phab:`T414201`) * Use global ``-code`` instead of ``-lang`` to determine a site. The old ``-lang`` option is kept for backward compatibility. * Protocol swapping in :class:`data.api.Request` was removed. Family files should provide diff --git a/docs/api_ref/family.rst b/docs/api_ref/family.rst index 314d96a..d6f6e08 100644 --- a/docs/api_ref/family.rst +++ b/docs/api_ref/family.rst @@ -38,3 +38,14 @@ cls.code_aliases = aliases .. versionadded:: 8.3 + + .. method:: nicepath(code) + + Return nice path prefix, e.g. `'/wiki/'`. + + .. deprecated:: 2.0 + Use :meth:`APISite.articlepath<pywikibot.site._apisite.APISite.articlepath>` instead. + .. versionremoved:: 5.4 + + :param str code: The site code + :rtype: str diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py index 6fb0f15..6365e29 100644 --- a/pywikibot/__metadata__.py +++ b/pywikibot/__metadata__.py @@ -12,6 +12,6 @@ from time import strftime -__version__ = '11.0.0.dev12' +__version__ = '11.0.0' __url__ = 'https://www.mediawiki.org/wiki/Manual:Pywikibot' __copyright__ = f'2003-{strftime("%Y")}, Pywikibot team' -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237949?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: If70ffb1a011134f185d02417a7e66522d06f698b Gerrit-Change-Number: 1237949 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]
