Skip to content

chore: sync with upstream#10

Merged
ElectricalBoy merged 279 commits intomasterfrom
upstream-10.7.0
Nov 25, 2025
Merged

chore: sync with upstream#10
ElectricalBoy merged 279 commits intomasterfrom
upstream-10.7.0

Conversation

@ElectricalBoy
Copy link
Collaborator

This PR syncs our fork with 10.7.0 (549e893; latest stable) from upstream

xqt and others added 30 commits July 15, 2025 12:05
Also move it to Subject as static method

Bug: T398983
Change-Id: I0b228b3d3c45a10fccb13909e7018ca9f637e05c
Bug: T399444
Change-Id: I2f110bc84a085160095c9387224c75ad4d06e4b6
Signed-off-by: Xqt <info@gno.de>
Bug: T399693
Change-Id: I784f6003d66e16f5c0e510219c239647bdd80be8
Signed-off-by: Xqt <info@gno.de>
Bug: T399697
Change-Id: I02ff5c4c3428d3188c4a5d51d09134439e64ff32
Signed-off-by: Xqt <info@gno.de>
* Update scripts/i18n from branch 'master'
  to e61345fcd4eadc5934764b35ce0fa908853bd2c9
  - Add i18n files for tracking_param_remover script
    
    Bug: T399698
    Change-Id: Ie8b65589b89c406e27b2b3ac837a2526565f955a
Bug: T399698
Change-Id: I38f4be1c6c3fb2d96b124a496e576c647e295727
Signed-off-by: Xqt <info@gno.de>
There are too many unuseful and unsupported redirects to mul.wikisource.org

Bug: T399692
Change-Id: I5524bdeadda01f74598fb00f5ea0939882fa41a3
* Update scripts/i18n from branch 'master'
  to 470b0b9cfdf660651bb7bbc8b9c872f7689a58df
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Ic621d72d75e98dada097c0ada06d72ac544e1ca1
- Deprecate unused `requestsize` parameter from `Throttle.__call__`
- Deprecate `next_multiplicity` property
- Rename `getDelay` → `get_delay` for PEP 8 compliance
- Rename `setDelays` → `set_delays` accordingly
- Simplify `__call__` and `get_delay` logic
- Improve docstrings for clarity and consistency

Bug: T399266
Change-Id: I69397a247f4adc97201e70b32e8d08989300c668
Change-Id: Ib8a3ac0a4565ee2dc01e0489c78b7dd8ce7dacd3
Signed-off-by: Xqt <info@gno.de>
With Python 3.14 new assertion methods were introduced

- Add a Python314AssertionsMixin class to tests.aspects to implement
  these methos for older Python releases
- Add this mixin class to aspects.TestCase if Python < 3.14
- Use the new methods for tests
- update older tests with corresponding assert methods

Change-Id: Iaeafa3352d91e0d1dffa7e7d395e39bd4992ac03
Change-Id: I8ccd50a16ae2ab2a63405f1ce61053d508e56abc
Change-Id: Id35eacf0404e27dbe059fbbed34a8331fcb69adb
Change-Id: Ib2d9eeaf90535cae8306e0383eb45896abdb137d
* Update scripts/i18n from branch 'master'
  to 6a468b739c1eaff0679ebaa02026ef3710224ad7
  - i18n: fix/expand metadata for tracking_param_remover files
    
    Bug: T399698
    Change-Id: I2eb544897b483c7fb666895459a4894bdc51b18c
Enhance the pywikibot_script_docstring_fixups() hook to format script
docstrings more reliably:

- Use newlines list to collect the lines
- Detect and wrap colon-containing options with :kbd:`...`
- Preserve and indent associated descriptions as definition list entries
- Always add blank lines after such entries to satisfy docutils

This avoids layout issues and reduces spurious warnings during doc builds.

Also
- update tomlib; Python 3.11 is required for sphinx 8.2
- update some scripts documentation
- add tomllib to isort standard library list

Bug: T400000
Change-Id: I191427571e40b64c81351fb73c1dddfb496a29cc
* Update scripts/i18n from branch 'master'
  to d562677e495b876fd839662ee5e34cdf8c279eae
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: Iafd340850983203fbcc98c138d1cabbaa94c6d05
Change-Id: I8d873e0c42b629d806b35bb47905b19285134eb4
Bug: T400537
Change-Id: I4b3470b1df436f1f06f1d3830c0ca3494e4aa70d
…xception

Change-Id: I95ae3889474c794422e29b0441fffe1c373c5fb2
Bug: T398140
Change-Id: I48dd21e821ee3de96f0805724f8a0027693dd056
If there is no localized template found on wikibase, use {{talkarchive}}
as default. I such case the archiveheader parameter is recommended instead.

Update documentation.

Bug: T400543
Change-Id: Ibb938bbf9c9ed0a2fdd7ab07e968099229cfb383
Suppress print statements in FamilyFileGenerator.run() and getapis() methods.
These methods produce unnecessary interactive output that floods test results.
Suppressing them improves test readability.

Change-Id: I37ecee8329ab455dadaf4feace541030bc9e56e2
Also refactor ist_scripts function using pathlib;
exclude must not contain .py suffix anymore.

Bug: T398140
Change-Id: I76015f105c9d5af0e1bc4c5008b3bf1660c27ff5
Bug: T400546
Change-Id: I26885a8b6e529943885f9c651fc15bbf9eaec098
Change-Id: Id70d689aab758acab7128425a46247064e8973f1
…nsMixin

Change-Id: I438647734891dcd12e9b9c69bdc2f9918f01ee46
Bug: T107537
Bug: T381551
Change-Id: I1c2e1684fe3c863e9d09369ddda274e9dd55e4c7
Change-Id: I8b3c4580e00d4164e6522c9a8a6c6830db113972
Change-Id: If649e2f8f51d1fd661b11353f8e1783e4d01c632
xqt and others added 27 commits October 23, 2025 13:18
fake_useragent 2.0 leads to TypeError: 'type' object is not subscriptable
probably due to missing annotations import. Went back to 1.5.1.

Change-Id: I3d59df343dfec79ef5e9d8c0978a3e67a2369252
* Update scripts/i18n from branch 'master'
  to 247bf9fc6576d2efd7bc9e4bf030544d295ab61c
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I945d1088b811061d667b3b1569a35457eae0ac88
Change-Id: If07b34da2f5e468f2d04dddf254dd15a8fd54669
Change-Id: Ib7d8fcc99630fce9250794e0d485087fe0d26359
mementoweb.org is not reachable. Therefore:
- replace http://timetravel.mementoweb.org/timegate/ with
  https://web.archive.org/web/ and set it to new default time gate
- update tests
- update weblinkchecker.py
- update documentation

Bug: T400570
Bug: T407694
Change-Id: Iead2f5c5b81faa56d81986ddc6593ad2e5793344
Deprecate old (type, value, traceback) signature in GeneratorWrapper.throw.
The old behaviour is necessary for Python 3.8.

Bug: T340641
Change-Id: I7c50327253ff3209d801b9be6f02082730238cfa
- filename must not be empty in FILE_LINK_REGEX
- use a marker to exclude caption from replacements in replace_magicword
- update cosmetic_changes_tests and textlib_tests

Bug: T396715
Change-Id: Ib6b0229f074856532a45899a4c23723569924420
* Update scripts/i18n from branch 'master'
  to b6298b0d0ab5d82882893eee0b369c9ee0135f18
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I3ef6d39e41271d2cace5693d21bca0847539e057
Bug: T359427
Bug: T407708
Change-Id: Icdae4838a64ccb65b2e9702c930d3a69f414fda4
Also use subTests in TestRecentChanges.test_flags

Bug: T408667
Change-Id: I4ebd07649629aa85f2dc20acbca790e588f4d379
…in class

Change-Id: Ib8561322c4daf2b2adf9f58b63e206e613275417
Bug: T382708
Change-Id: I1eb3277dfeea1de758b16b5a3e8b336028184f2c
Allow fixing links in pages that link to a specified misspelling
page using the -page argument.
Previously, the bot only handled categories or templates.

Bug: T151540
Change-Id: Ia83f08577ee49d5867689ae945b3280e4ad8f7f6
Also fix memento module's documentation.

Change-Id: I8ad3c1f6bf1bd7afd28a0c217e7e8fe02e1cc634
Change-Id: Ic34505437dc7dfb13eea690f1b9afdc5dd36503c
Change-Id: Ib922099a0152dd9697a8163ab8db6971400d2bd5
Change-Id: I7921cb6ca7e59fa41ae422727d749899e68b58c9
Bug: T408718
Change-Id: If6e18432cf2780057355d3e167ab889f001717e5
Solved upstream

Bug: T408667
Change-Id: Idf1ee7f07ab23ab120fdaac2c19375305dedb863
Signed-off-by: Xqt <info@gno.de>
Change-Id: Icfbbc1b47290a3c77c896691ca90f3692c5c5371
This reverts commit 1a8d124.

Reason for revert: No longer needed

Change-Id: I2e3b0ebcaf965254e486f8034629199bfa7e0db4
* Update scripts/i18n from branch 'master'
  to 2406bf3d8489a012ea3ac14dac9ca4eb6d39b923
  - Localisation updates from https://translatewiki.net.
    
    Change-Id: I00ee0896951bb1a5e1e02e265eeb0e4330ec1720
- add optional source parameter
- combine parameters to an exception string
- pass exception string to super class
- use exception for error message within PageFromFileReader

Change-Id: I7cb676ca0005b1d65c8c55c24854f1c30f514e99
Change-Id: Id5143b8f9e0b2f735760321962c98129bf24be9c
Bug: T408345
Bug: T408353
Change-Id: I620f2b2ff3a3c5e5f4044c723d47e30d7b5f32a6
When Pywikibot is used as a side package, the deprecation warning is not
necessary because pip already installs the correct version. Otherwise,
the pwb wrapper script is the appropriate place for such a warning, as
it serves as the frontend entry point of Pywikibot.

Change-Id: I8818e2a0667e56622084a1f49388c278faa0d876
Change-Id: Ib7dc2a21d86f00563325e26664f779e2bf4871ea
@ElectricalBoy ElectricalBoy merged commit 5e30fd1 into master Nov 25, 2025
4 of 31 checks passed
@ElectricalBoy ElectricalBoy deleted the upstream-10.7.0 branch November 25, 2025 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.