Page MenuHomePhabricator

Upgrade to mwclient 0.11.0
Closed, ResolvedPublicBUG REPORT

Description

Upgrade mwclient library to 0.11.0 in order to get upstream fixes and to remove writeapi dependencies.

Event Timeline

bd808 claimed this task.

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...