Upgrade mwclient library to 0.11.0 in order to get upstream fixes and to remove writeapi dependencies.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | BUG REPORT | DavidBrooks | T372017 AWB reads old writeapi user right, so stops working on wikis when it is removed | ||
| Resolved | BUG REPORT | HCoplin-WMF | T371977 Removal of writeapi from siteinfo output breaks all mwclient-based bots, including stashbot (Server Admin Log) | ||
| Resolved | Reedy | T294397 Drop writeapi MediaWiki right | |||
| Resolved | BUG REPORT | • bd808 | T372310 Upgrade to mwclient 0.11.0 |
Event Timeline
Comment Actions
The dependency is floating in requirements.txt, so we just need to update the active venv.
$ ssh dev.toolforge.org tools-bastion-12.tools.eqiad1:~$ become phab-ban tools.phab-ban@tools-bastion-12:~$ webservice shell tools.phab-ban@shell-1748896618:~$ www/python/venv/bin/pip3 freeze|grep mwclient mwclient==0.10.1 tools.phab-ban@shell-1748896618:~$ www/python/venv/bin/pip3 install -U mwclient==0.11.0 Collecting mwclient==0.11.0 Downloading mwclient-0.11.0-py3-none-any.whl (33 kB) Requirement already satisfied: requests-oauthlib in ./www/python/venv/lib/python3.9/site-packages (from mwclient==0.11.0) (1.3.1) Requirement already satisfied: oauthlib>=3.0.0 in ./www/python/venv/lib/python3.9/site-packages (from requests-oauthlib->mwclient==0.11.0) (3.2.2) Requirement already satisfied: requests>=2.0.0 in ./www/python/venv/lib/python3.9/site-packages (from requests-oauthlib->mwclient==0.11.0) (2.30.0) Requirement already satisfied: charset-normalizer<4,>=2 in ./www/python/venv/lib/python3.9/site-packages (from requests>=2.0.0->requests-oauthlib->mwclient==0.11.0) (3.1.0) Requirement already satisfied: idna<4,>=2.5 in ./www/python/venv/lib/python3.9/site-packages (from requests>=2.0.0->requests-oauthlib->mwclient==0.11.0) (3.4) Requirement already satisfied: urllib3<3,>=1.21.1 in ./www/python/venv/lib/python3.9/site-packages (from requests>=2.0.0->requests-oauthlib->mwclient==0.11.0) (2.0.2) Requirement already satisfied: certifi>=2017.4.17 in ./www/python/venv/lib/python3.9/site-packages (from requests>=2.0.0->requests-oauthlib->mwclient==0.11.0) (2023.5.7) Installing collected packages: mwclient Attempting uninstall: mwclient Found existing installation: mwclient 0.10.1 Uninstalling mwclient-0.10.1: Successfully uninstalled mwclient-0.10.1 Successfully installed mwclient-0.11.0 [notice] A new release of pip is available: 23.1.2 -> 25.1.1 [notice] To update, run: python3 -m pip install --upgrade pip tools.phab-ban@shell-1748896618:~$ logout tools.phab-ban@tools-bastion-12:~$ webservice restart Restarting...