Task Todo List Drop python-mock checkdepends

2022-11-11 - Jelle van der Waa

The mock module has mostly been replaced by Python's stdlib unittest.mock. So let's patch it upstream and drop it in Arch.

In essence, check if the source code explicitly imports `mock` using `import mock`, modern code uses `from unittest import mock`.

https://fedoraproject.org/wiki/Changes/DeprecatePythonMock

* python-curator https://github.com/elastic/curator/pull/1695
* python-transaction https://github.com/zopefoundation/transaction/commit/f3dfdb0b694117873d84509b4802147a6e55679b
* beaker https://github.com/bbangert/beaker/commit/056d68f954b778e79cb5dc64db9a485fe1f64915
* python-remoto https://github.com/alfredodeza/remoto/commit/aa74f65bb59dc46998e72e4bdcd070287e4e2af6
* python-praw Fixed 3 years ago https://github.com/praw-dev/praw/commit/927a16dbe87d2248b53c10f89c6890ebd3663688
* magic-wormhole - fixed in master/main
* python-txtorcon https://github.com/meejah/txtorcon/commit/ffcc20d40a64d5d5e62518e5d7814d92dfdd4dfb

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
26 packages displayed out of 26 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
any Extra aws-cli-v2 2.15.19-1 Complete yan12125
x86_64 Extra curator anthraxx Complete jelle
any Extra in-toto 1.2.0-4 sangy Complete dvzrv
any Extra magic-wormhole 0.14.0-4 0.14.0-5 alex19EP, alerque Complete alerque
any Extra python-beaker 1.12.0-4 1.12.0-5 felixonmars Complete dvzrv
any Extra python-cachecontrol 1:0.14.0-2 1:0.14.0-3 felixonmars, dvzrv Complete jelle
any Extra python-elasticsearch 7.9.0-5 7.9.0-6 Complete dvzrv
x86_64 Extra python-elasticsearch-curator anthraxx Complete jelle
any Extra python-eventlet 0.35.1-2 0.35.2-1 anthraxx Complete dvzrv
any Extra python-fire 0.6.0-1 0.6.0-2 dvzrv Complete dvzrv
any Extra python-flask-sqlalchemy 2.5.1-7 2.5.1-8 anthraxx Complete dvzrv
any Extra python-google-auth 2.29.0-1 2.29.0-2 lfleischer Complete dvzrv
any Extra python-google-auth-httplib2 0.2.0-1 0.2.0-2 felixonmars Complete jelle
any Extra python-magic-wormhole-mailbox-server 0.4.1-10 0.4.1-11 alex19EP, alerque Complete alerque
any Extra python-magic-wormhole-transit-relay 0.2.1-9 0.2.1-10 alex19EP, alerque Complete alerque
any Extra python-praw 7.7.1-2 7.7.1-3 felixonmars Complete jelle
any Extra python-pytest-shutil felixonmars, FFY00 Complete jelle
any Extra python-pyu2f 0.1.5-7 0.1.5-8 felixonmars Complete jelle
any Extra python-railroad Complete jelle
any Extra python-rawkit 0.6.0-13 0.6.0-14 jlichtblau Complete jelle
any Extra python-remoto 1.2.1-4 foxxx0 Complete jelle
any Extra python-schema 0.7.5-4 0.7.5-5 bluewind Complete dvzrv
x86_64 Extra python-sqlalchemy1.3 jelle Complete jelle
any Extra python-transaction 4.0-1 4.0-2 felixonmars Complete dvzrv
any Extra python-txtorcon 23.11.0-2 alex19EP Complete dvzrv
any Extra thefuck 3.32-7 felixonmars, FFY00 Complete dvzrv