jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/882004 )
Change subject: [8.1] Prepare next release
......................................................................
[8.1] Prepare next release
Change-Id: I5a502d42e1d3dc261ceb4ba60d7d47ea95382d92
---
M .appveyor.yml
M ROADMAP.rst
M pywikibot/__metadata__.py
M HISTORY.rst
M scripts/__init__.py
5 files changed, 110 insertions(+), 93 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/.appveyor.yml b/.appveyor.yml
index e9544db..5437d37 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -1,7 +1,7 @@
-image: Visual Studio 2019
+image: Visual Studio 2022
clone_depth: 50
skip_tags: true
-version: 8.0.{build}
+version: 8.1.{build}
environment:
PYWIKIBOT_DIR: "%appdata%\\Pywikibot"
diff --git a/HISTORY.rst b/HISTORY.rst
index dfa92df..91d77f1 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -1,6 +1,100 @@
Release history
===============
+8.0.0
+-----
+*21 January 2023*
+
+Improvements
+^^^^^^^^^^^^
+
+* Allow copying timezone from timestamp in :class:`pywikibot.WbTime` (:phab:`T325864`)
+* Support federated Wikibase (:phab:`T173195`)
+* Improve warning if a Non-JSON response was received from server (:phab:`T326046`)
+* Allow normalization of :class:`pywikibot.WbTime` objects (:phab:`T123888`)
+* Add parser for ``<pages />`` tag to :mod:`proofreadpage`
+* ``addOnly`` parameter of :func:`textlib.replaceLanguageLinks` and :func:`textlib.replaceCategoryLinks`
+ were renamed to ``add_only``
+* ``known_codes`` attribute was added to :class:`family.WikimediaFamily` (:phab:`T325426`)
+* Unify representation for :class:`time.Timestamp` between CPython and Pypy (:phab:`T325905`)
+* Implement comparison for :class:`pywikibot.WbTime` object (:phab:`T148280`, :phab:`T325863`)
+* Create a cookie file for each account (:phab:`T324000`)
+* Move data.api._login.LoginManager to :class:`login.ClientLoginManager`
+* Let user the choice which section to be copied with :mod:`generate_user_files
+ <pywikibot.scripts.generate_user_files>` (:phab:`T145372`)
+* use :func:`roundrobin_generators<tools.itertools.roundrobin_generators>` to combine generators
+ when limit option is given
+* Ignore OSError if API cache cannot be written
+* Update tools._unidata._category_cf from Unicodedata version 15.0.0
+* :meth:`Timestamp.set_timestamp()<pywikibot.time.Timestamp.set_timestamp>` raises TypeError
+ instead of ValueError if conversion fails
+* Python 3.12 is supported
+* All parameters of :meth:`APISite.categorymembers()
+ <pywikibot.site._generators.GeneratorsMixin.categorymembers>` are provided with
+ :meth:`Category.members()<page.Category.members>`,
+ :meth:`Category.subcategories()<page.Category.subcategories>` (*member_type* excluded) and
+ :meth:`Category.articles()<page.Category.articles>` (*member_type* excluded)
+* Enable site-package installation from git repository (:phab:`T320851`)
+* Enable 2FA login (:phab:`T186274`)
+* :meth:`Page.editTime()<page.BasePage.editTime>` was replaced by
+ :attr:`Page.latest_revision.timestamp<page.BasePage.latest_revision>`
+* Raise a generic ServerError if requests response is a ServerError (:phab:`T320590`)
+* Add a new variable 'private_folder_permission' to config.py (:phab:`T315045`)
+* L10N and i18n updates
+* Adjust subprocess args in :mod:`tools.djvu`
+* Short site value can be given if site code is equal to family like ``-site:meta`` or ``-site:commons``
+
+Documentation improvements
+^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+* Add highlighting to targeted code snippet within documentation (:phab:`T323800`)
+* Add previous, next, index, and modules links to documentation sidebar (:phab:`T323803`)
+* Introduce standard colors (legacy palette) in Furo theme (:phab:`T323802`)
+* Improve basic content structure and navigation of documentation (:phab:`T323812`)
+* Use ``Furo`` sphinx theme instead of ``Natural`` and improve documentation look and feel (:phab:`T322212`)
+* MediaWiki API cross reference was added to the documentation
+
+Bugfixes
+^^^^^^^^
+
+* Fix representation string for :class:`page.Claim` stub instances (:phab:`T326453`)
+* Don't raise StopIteration in :meth:`login.LoginManager.check_user_exists`
+ if given user is behind the last user (:phab:`T326063`)
+* Normalize :class:`WbTimes<pywikibot.WbTime>` sent to Wikidata (:phab:`T325860`)
+* Fix :class:`pywikibot.WbTime` precision (:phab:`T324798`)
+* Unquote title for red-links in class:`proofreadpage.IndexPage`
+* Find month with first letter uppercase or lowercase with :class:`textlib.TimeStripper` (:phab:`T324310`)
+* Fix disolving script_paths for site-package (:phab:`T320530`)
+* Respect limit argument with Board.topics() (:phab:`T138215`, :phab:`T138307`)
+
+Breaking changes
+^^^^^^^^^^^^^^^^
+
+* ``mwparserfromhell`` package is mandatory (:phab:`T326498`)
+* Several package dependencies were updated
+* All parameters of :meth:`Category.members()<page.Category.members>`,
+ :meth:`Category.subcategories()<page.Category.subcategories>` and
+ :meth:`Category.articles()<page.Category.articles>` are keyword only
+* The ``parent_id`` and ``content_model`` attributes of :class:`page.Revision` were removed in favour
+ of ``parentid`` and ``contentmodel``
+* Support for MediaWiki < 1.27 was dropped
+* ListBoxWindows class of :mod:`userinterfaces.gui` was removed
+* Require Python 3.6.1+ with Pywikibot and drop support for Python 3.6.0 (:phab:`T318912`)
+* pymysql >= 0.9.3 is required (:phab:`T216741`)
+* Python 3.5 support was dropped (:phab:`T301908`)
+* *See also Code cleanups below*
+
+Code cleanups
+^^^^^^^^^^^^^
+
+* ``maintenance/sorting_order`` script was removed (:phab:`T325426`)
+* ``alphabetic_sv`` and ``interwiki_putfirst`` attributes of
+ :class:`Wiktionary<families.wiktionary_family.Family>` family were removed (:phab:`T325426`)
+* ``alphabetic``, ``alphabetic_revised`` and ``fyinterwiki`` attributes of :class:`family.Family`
+ were removed (:phab:`T325426`)
+* *See also Deprecations below*
+
+
7.7.3
-----
*08 January 2023*
diff --git a/ROADMAP.rst b/ROADMAP.rst
index a1ed684..ee98ef9 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -1,94 +1,8 @@
-Current release 8.0.0
+Current release 8.1.0
---------------------
-Improvements
-^^^^^^^^^^^^
+* *No changes yet*
-* Allow copying timezone from timestamp in :class:`pywikibot.WbTime` (:phab:`T325864`)
-* Support federated Wikibase (:phab:`T173195`)
-* Improve warning if a Non-JSON response was received from server (:phab:`T326046`)
-* Allow normalization of :class:`pywikibot.WbTime` objects (:phab:`T123888`)
-* Add parser for ``<pages />`` tag to :mod:`proofreadpage`
-* ``addOnly`` parameter of :func:`textlib.replaceLanguageLinks` and :func:`textlib.replaceCategoryLinks`
- were renamed to ``add_only``
-* ``known_codes`` attribute was added to :class:`family.WikimediaFamily` (:phab:`T325426`)
-* Unify representation for :class:`time.Timestamp` between CPython and Pypy (:phab:`T325905`)
-* Implement comparison for :class:`pywikibot.WbTime` object (:phab:`T148280`, :phab:`T325863`)
-* Create a cookie file for each account (:phab:`T324000`)
-* Move data.api._login.LoginManager to :class:`login.ClientLoginManager`
-* Let user the choice which section to be copied with :mod:`generate_user_files
- <pywikibot.scripts.generate_user_files>` (:phab:`T145372`)
-* use :func:`roundrobin_generators<tools.itertools.roundrobin_generators>` to combine generators
- when limit option is given
-* Ignore OSError if API cache cannot be written
-* Update tools._unidata._category_cf from Unicodedata version 15.0.0
-* :meth:`Timestamp.set_timestamp()<pywikibot.time.Timestamp.set_timestamp>` raises TypeError
- instead of ValueError if conversion fails
-* Python 3.12 is supported
-* All parameters of :meth:`APISite.categorymembers()
- <pywikibot.site._generators.GeneratorsMixin.categorymembers>` are provided with
- :meth:`Category.members()<page.Category.members>`,
- :meth:`Category.subcategories()<page.Category.subcategories>` (*member_type* excluded) and
- :meth:`Category.articles()<page.Category.articles>` (*member_type* excluded)
-* Enable site-package installation from git repository (:phab:`T320851`)
-* Enable 2FA login (:phab:`T186274`)
-* :meth:`Page.editTime()<page.BasePage.editTime>` was replaced by
- :attr:`Page.latest_revision.timestamp<page.BasePage.latest_revision>`
-* Raise a generic ServerError if requests response is a ServerError (:phab:`T320590`)
-* Add a new variable 'private_folder_permission' to config.py (:phab:`T315045`)
-* L10N and i18n updates
-* Adjust subprocess args in :mod:`tools.djvu`
-* Short site value can be given if site code is equal to family like ``-site:meta`` or ``-site:commons``
-
-Documentation improvements
-^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-* Add highlighting to targeted code snippet within documentation (:phab:`T323800`)
-* Add previous, next, index, and modules links to documentation sidebar (:phab:`T323803`)
-* Introduce standard colors (legacy palette) in Furo theme (:phab:`T323802`)
-* Improve basic content structure and navigation of documentation (:phab:`T323812`)
-* Use ``Furo`` sphinx theme instead of ``Natural`` and improve documentation look and feel (:phab:`T322212`)
-* MediaWiki API cross reference was added to the documentation
-
-Bugfixes
-^^^^^^^^
-
-* Fix representation string for :class:`page.Claim` stub instances (:phab:`T326453`)
-* Don't raise StopIteration in :meth:`login.LoginManager.check_user_exists`
- if given user is behind the last user (:phab:`T326063`)
-* Normalize :class:`WbTimes<pywikibot.WbTime>` sent to Wikidata (:phab:`T325860`)
-* Fix :class:`pywikibot.WbTime` precision (:phab:`T324798`)
-* Unquote title for red-links in class:`proofreadpage.IndexPage`
-* Find month with first letter uppercase or lowercase with :class:`textlib.TimeStripper` (:phab:`T324310`)
-* Fix disolving script_paths for site-package (:phab:`T320530`)
-* Respect limit argument with Board.topics() (:phab:`T138215`, :phab:`T138307`)
-
-Breaking changes
-^^^^^^^^^^^^^^^^
-
-* ``mwparserfromhell`` package is mandatory (:phab:`T326498`)
-* Several package dependencies were updated
-* All parameters of :meth:`Category.members()<page.Category.members>`,
- :meth:`Category.subcategories()<page.Category.subcategories>` and
- :meth:`Category.articles()<page.Category.articles>` are keyword only
-* The ``parent_id`` and ``content_model`` attributes of :class:`page.Revision` were removed in favour
- of ``parentid`` and ``contentmodel``
-* Support for MediaWiki < 1.27 was dropped
-* ListBoxWindows class of :mod:`userinterfaces.gui` was removed
-* Require Python 3.6.1+ with Pywikibot and drop support for Python 3.6.0 (:phab:`T318912`)
-* pymysql >= 0.9.3 is required (:phab:`T216741`)
-* Python 3.5 support was dropped (:phab:`T301908`)
-* *See also Code cleanups below*
-
-Code cleanups
-^^^^^^^^^^^^^
-
-* ``maintenance/sorting_order`` script was removed (:phab:`T325426`)
-* ``alphabetic_sv`` and ``interwiki_putfirst`` attributes of
- :class:`Wiktionary<families.wiktionary_family.Family>` family were removed (:phab:`T325426`)
-* ``alphabetic``, ``alphabetic_revised`` and ``fyinterwiki`` attributes of :class:`family.Family`
- were removed (:phab:`T325426`)
-* *See also Deprecations below*
Deprecations
------------
diff --git a/pywikibot/__metadata__.py b/pywikibot/__metadata__.py
index a9e6e99..4c139f8 100644
--- a/pywikibot/__metadata__.py
+++ b/pywikibot/__metadata__.py
@@ -11,7 +11,7 @@
__name__ = 'pywikibot'
-__version__ = '8.0.0'
+__version__ = '8.1.0.dev0'
__description__ = 'Python MediaWiki Bot Framework'
__maintainer__ = 'The Pywikibot team'
__maintainer_email__ = 'pywikibot(a)lists.wikimedia.org'
diff --git a/scripts/__init__.py b/scripts/__init__.py
index 192bebf..4be7d80 100644
--- a/scripts/__init__.py
+++ b/scripts/__init__.py
@@ -25,8 +25,8 @@
due to spelling mistake
"""
#
-# (C) Pywikibot team, 2021-2022
+# (C) Pywikibot team, 2021-2023
#
# Distributed under the terms of the MIT license.
#
-__version__ = '8.0.0'
+__version__ = '8.1.0'
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/882004
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5a502d42e1d3dc261ceb4ba60d7d47ea95382d92
Gerrit-Change-Number: 882004
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/881583 )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: Ib63fb1ef0b253a79f0305e35460661a4886b3af1
---
M category/de.json
1 file changed, 10 insertions(+), 1 deletion(-)
Approvals:
L10n-bot: Looks good to me, approved
jenkins-bot: Verified
diff --git a/category/de.json b/category/de.json
index 86906d3..5763868 100644
--- a/category/de.json
+++ b/category/de.json
@@ -12,7 +12,7 @@
},
"category-adding": "Bot: Ergänze Kategorie [[:Category:%(newcat)s|%(newcat)s]]",
"category-also-in": "(auch in %(alsocat)s)",
- "category-clean": "Bot: Entfernen der Kategorie %(category)s, die bereits in %(child)s enthalten ist",
+ "category-clean": "Bot: Entferne Kategorie %(category)s, weil sie bereits unter %(child)s ist",
"category-listifying": "Bot: Liste aus %(fromcat)s ({{PLURAL:num|1 Eintrag|%(num)d Einträge}})",
"category-removing": "Bot: Entferne aus %(oldcat)s",
"category-renamed": "Bot: Verschoben von %(oldcat)s. Autoren: %(authors)s",
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/881583
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: Ib63fb1ef0b253a79f0305e35460661a4886b3af1
Gerrit-Change-Number: 881583
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/880881 )
Change subject: [bugfix] Fix setup.read_desc() regex
......................................................................
[bugfix] Fix setup.read_desc() regex
If a space was behind a sphinx link and the link was different from
the label, the link was removed but the alignment does not match the
previous line. Modify the regex pattern to remove a following space
in such case.
Also test the long_description created by setup.py in make_dist.py
script
Bug: T327056
Change-Id: Ie71c4f9feb38e4ba822330b6978d19f506304c95
---
M setup.py
M make_dist.py
2 files changed, 25 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/make_dist.py b/make_dist.py
index 4c75e43..d58c8f5 100755
--- a/make_dist.py
+++ b/make_dist.py
@@ -45,7 +45,7 @@
import shutil
import sys
from pathlib import Path
-from subprocess import check_call
+from subprocess import check_call, run
import setup
from pywikibot import __version__, error, info, input_yn, warning
@@ -109,6 +109,10 @@
finally:
self.cleanup()
+ # check description
+ if run('twine check dist/*', shell=True).returncode:
+ return
+
if self.local:
check_call('pip uninstall pywikibot -y', shell=True)
check_call(
diff --git a/setup.py b/setup.py
index 961cec2..081dbab 100755
--- a/setup.py
+++ b/setup.py
@@ -184,7 +184,7 @@
Combine included restructured text files which must be done before
uploading because the source isn't available after creating the package.
"""
- pattern = r'\:\w+\:`([^`]+?)(?:<.+>)?`', r'\1'
+ pattern = r'(?:\:\w+\:`([^`]+?)(?:<.+>)?` *)', r'\1'
desc = []
with open(filename) as f:
for line in f:
@@ -219,7 +219,7 @@
version=version,
description=metadata.__description__,
long_description=read_desc('README.rst'),
- # long_description_content_type
+ long_description_content_type='text/x-rst',
# author
# author_email
maintainer=metadata.__maintainer__,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/880881
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie71c4f9feb38e4ba822330b6978d19f506304c95
Gerrit-Change-Number: 880881
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-CC: KBach <kbach(a)wikimedia.org>
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/880446 )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: I354e3435dc33f5f62c422395994fa69446c8c674
---
M solve_disambiguation/sl.json
M category/nl.json
M category/ia.json
3 files changed, 17 insertions(+), 7 deletions(-)
Approvals:
L10n-bot: Looks good to me, approved
jenkins-bot: Verified
diff --git a/category/ia.json b/category/ia.json
index 29105db..ee7b362 100644
--- a/category/ia.json
+++ b/category/ia.json
@@ -6,7 +6,7 @@
},
"category-adding": "Robot: Addition del categoria [[:Category:%(newcat)s|%(newcat)s]]",
"category-also-in": "(equalmente in %(alsocat)s)",
- "category-clean": "Robot: Remove le categoria %(category)s que es ja in %(child)s",
+ "category-clean": "Robot: Remove le categoria %(category)s perque illo es ja sub %(child)s",
"category-listifying": "Robot: Face lista de articulos in %(fromcat)s ({{PLURAL:%(num)d|1 entrata|%(num)d entratas}})",
"category-removing": "Robot: Removite de %(oldcat)s",
"category-renamed": "Robot: Transferite de %(oldcat)s. Autores: %(authors)s",
diff --git a/category/nl.json b/category/nl.json
index 06b86fa..17736c8 100644
--- a/category/nl.json
+++ b/category/nl.json
@@ -9,6 +9,7 @@
},
"category-adding": "Robot: categorie [[:Category:%(newcat)s|%(newcat)s]] toegevoegd",
"category-also-in": "(ook in %(alsocat)s)",
+ "category-clean": "Robot: Verwijdering van categorie %(category)s omdat deze al onder %(child)s staat",
"category-listifying": "Robot: lijst van %(fromcat)s (%(num)d pagina's)",
"category-removing": "Robot: verwijderd uit %(oldcat)s",
"category-renamed": "Robot: hernoemd van %(oldcat)s. Auteurs: %(authors)s",
diff --git a/solve_disambiguation/sl.json b/solve_disambiguation/sl.json
index 3fd5bc1..797c229 100644
--- a/solve_disambiguation/sl.json
+++ b/solve_disambiguation/sl.json
@@ -5,11 +5,11 @@
"Eleassar"
]
},
- "solve_disambiguation-adding-dn-template": "Razločitev s pomočjo robota: %(from)s – Označeno kot potrebno pozornosti strokovnjaka",
- "solve_disambiguation-links-removed": "Razločitev s pomočjo robota: %(from)s – odstranitev povezav",
- "solve_disambiguation-links-resolved": "Razločitev s pomočjo robota: %(from)s – Sprememba povezav v %(to)s",
- "solve_disambiguation-redirect-adding-dn-template": "Razločitev s pomočjo robota: %(from)s – Označeno kot potrebno pozornosti strokovnjaka",
- "solve_disambiguation-redirect-removed": "Razločitev s pomočjo robota: %(from)s – odstranitev povezav",
- "solve_disambiguation-redirect-resolved": "Razločitev s pomočjo robota: %(from)s – Sprememba povezav v %(to)s",
+ "solve_disambiguation-adding-dn-template": "Razločitev s pomočjo bota: %(from)s – označeno kot potrebno pozornosti strokovnjaka",
+ "solve_disambiguation-links-removed": "Razločitev s pomočjo bota: %(from)s – odstranitev povezav(e).",
+ "solve_disambiguation-links-resolved": "Razločitev s pomočjo bota: %(from)s – sprememba povezav(e) v %(to)s",
+ "solve_disambiguation-redirect-adding-dn-template": "Razločitev s pomočjo bota: %(from)s – označeno kot potrebno pozornosti strokovnjaka",
+ "solve_disambiguation-redirect-removed": "Razločitev s pomočjo bota: %(from)s – odstranitev povezav(e)",
+ "solve_disambiguation-redirect-resolved": "Razločitev s pomočjo bota: %(from)s – sprememba povezav(e) v %(to)s",
"solve_disambiguation-unknown-page": "(neznano)"
}
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/880446
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: I354e3435dc33f5f62c422395994fa69446c8c674
Gerrit-Change-Number: 880446
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged