bd808 added a comment.
In T248376#6042172 <https://phabricator.wikimedia.org/T248376#6042172>, @Xqt wrote: > Please note that for running scripts with **Python 2** the following packages are mandatory: > > - enum34>=1.1.6,!=1.1.8 $ apt-cache policy python-enum34 python-enum34: Installed: 1.1.6-1 Candidate: 1.1.6-1 Version table: *** 1.1.6-1 500 500 http://deb.debian.org/debian stretch/main amd64 Packages 100 /var/lib/dpkg/status > - ipaddress>=1.0.23 **1.0.17** is the best we can do with upstream packaging on the Toolforge bastions and grid engine nodes (Debian Stretch). The actual code delta from 1.0.17 to 1.0.23 looks pretty minor -- https://github.com/phihag/ipaddress/compare/v1.0.17...master $ apt-cache policy python-ipaddress python-ipaddress: Installed: 1.0.17-1 Candidate: 1.0.17-1 Version table: *** 1.0.17-1 500 500 http://deb.debian.org/debian stretch/main amd64 Packages 100 /var/lib/dpkg/status > - pathlib2 This one must currently be a dependency of one of the packages that we only install on the bastions. Adding to the grid nodes should be simple. $ apt-cache policy python-pathlib2 python-pathlib2: Installed: 2.2.0+really2.1.0-1 Candidate: 2.2.0+really2.1.0-1 Version table: *** 2.2.0+really2.1.0-1 500 500 http://deb.debian.org/debian stretch/main amd64 Packages 100 /var/lib/dpkg/status > - requests>=2.20.1 We need to pin this one to stretch-backports for a working version. $ apt-cache policy python-requests python-requests: Installed: 2.12.4-1 Candidate: 2.12.4-1 Version table: 2.21.0-1~bpo9+1 100 100 http://mirrors.wikimedia.org/debian stretch-backports/main amd64 Packages *** 2.12.4-1 500 500 http://deb.debian.org/debian stretch/main amd64 Packages 100 /var/lib/dpkg/status > Supporting Python 2 is deprecated and will be dropped soon (T213287 <https://phabricator.wikimedia.org/T213287>). T248914: Information campaign and tech support needed to get Toolforge pywikibot use moved from py2 to py3 <https://phabricator.wikimedia.org/T248914> -- I don't think the Toolforge community has been well informed of this yet. > For **Python 3** we only have > > - requests>=2.20.1 We need to pin this one to stretch-backports for a working version. $ apt-cache policy python3-requests python3-requests: Installed: 2.12.4-1 Candidate: 2.12.4-1 Version table: 2.21.0-1~bpo9+1 100 100 http://mirrors.wikimedia.org/debian stretch-backports/main amd64 Packages *** 2.12.4-1 500 500 http://deb.debian.org/debian stretch/main amd64 Packages 100 /var/lib/dpkg/status > Supporting Python 3.4 is deprecated and will be dropped soon (T239542 <https://phabricator.wikimedia.org/T239542>). The only place we have py3.4 in Toolforge is on the Kubernetes cluster via an old Jessie based image. We are hoping to deprecate that before July 2020. At the time I write this there are 107 pods on the Kubernetes cluster using the python3.4 image. It is actually scarily the 2nd most popular image. Php5 is the most popular and also one we need to deprecate. TASK DETAIL https://phabricator.wikimedia.org/T248376 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: bd808 Cc: zhuyifei1999, Billinghurst, Thibaut120094, Lofhi, Tacsipacsi, Ato_01, bd808, revi, Xqt, pywikibot-bugs-list, Aklapper, Dvorapa, Zkhalido, Phamhi, Viztor, Wenyi, sietec, Zylc, Bstorm, 1978Gage2001, DSquirrelGM, Chicocvenancio, Allthingsgo, Tbscho, MayS, Freddy2001, Mdupont, JJMC89, Altostratus, Avicennasis, Luke081515, mys_721tx, Jitrixis, Gryllida, jayvdb, Masti, scfc, Alchimista, coren, Rxy, Krenair
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
