Previous task for Bookworm: T389380
This is the current Python deps list:
INSTALL_REQUIRES = [
"conftool>=6.0.0",
"cumin>=3.0.2",
"dnspython~=2.3.0",
"gitpython>=3.1.30",
"kafka-python~=2.0.2",
"kubernetes==22.6.*", # frozen to the version available on debian bookworm
"packaging",
"pymysql>=1.0.2",
"pynetbox~=7.4",
"python-etcd~=0.4.5",
"redis==4.3.*",
"requests>=2.28.1",
"wmflib",
]We map them to:
ii python3-conftool 6.0.1+deb12u1 all Set of tools to configure the WMF kv config store. ii python3-conftool-dbctl 6.0.1+deb12u1 all Set of tools to manage MediaWiki databases. ii cumin 6.0.0-1+deb12u1 all Automation and orchestration framework written in Python ii python3-git 3.1.30-1+deb12u2 all Python library to interact with Git repositories ii python3-kafka 2.0.2-3 all Pure Python client for Apache Kafka - Python 3.x ii python3-kubernetes 22.6.0-2 all Kubernetes Python client - Python 3.x ii python3-packaging 23.0-1 all core utilities for python3 packages ii python3-pymysql 1.0.2-2+deb12u1 all Pure-Python MySQL Driver - Python 3.x ii python3-pynetbox 7.4.1-1~wmf12u1 all Python API client library for NetBox ii python3-etcd 0.4.5-4 all Python Etcd client library - Python3 module ii python3-redis 4.3.4-3 all Persistent key-value database with network interface (Python 3 library) ii python3-requests 2.28.1+dfsg-1 all elegant and simple HTTP library for Python3, built for human beings ii python3-wmflib 3.0.0-1+deb12u1 amd64 Generic Python library for common tasks in the WMF production infrastructure ii python3-dnspython 2.3.0-1 all DNS toolkit for Python 3
Since Trixie ships with Python 3.13 and Bookworm with 3.11, we can use a trick like https://gerrit.wikimedia.org/r/c/operations/software/spicerack/+/1141941 to support both.
We should verify the list of changes for the new Trixie package versions, follow up with the teams owning cookbooks or spicerack modules depending on them and rinse/repeat until we have a working version.