Page MenuHomePhabricator

Upgrade Quibble code base to Python3.11
Closed, ResolvedPublic

Description

As we moved Wikimedia CI Quibble containers from Bullseye to Bookworm (T362705), we no more need to retain compatibility with Python 3.9 and can bump the requirement to Python 3.11. We can thus modernize the code base a bit and benefit from newer features.

(maybe look at Python 3.8 features as well?)

Python 3.9

https://docs.python.org/3.10/whatsnew/3.9.html

Python 3.10

https://docs.python.org/3.10/whatsnew/3.10.html

Python 3.11

https://docs.python.org/3.11/whatsnew/3.11.html

Event Timeline

Change #1334901 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/quibble@master] Require Python 3.11

https://gerrit.wikimedia.org/r/1334901

Change #1334902 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/quibble@master] Use Parenthesized Context Managers

https://gerrit.wikimedia.org/r/1334902

hashar updated the task description. (Show Details)

Change #1334924 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/quibble@master] Use str.removesuffix() for clarity

https://gerrit.wikimedia.org/r/1334924

Change #1334901 merged by jenkins-bot:

[integration/quibble@master] Require Python 3.11

https://gerrit.wikimedia.org/r/1334901

Change #1334924 merged by jenkins-bot:

[integration/quibble@master] Use str.removesuffix() for clarity

https://gerrit.wikimedia.org/r/1334924

Change #1334902 merged by jenkins-bot:

[integration/quibble@master] Use Parenthesized Context Managers

https://gerrit.wikimedia.org/r/1334902

Change #1337943 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/quibble@master] release: Quibble 1.21.0

https://gerrit.wikimedia.org/r/1337943

Change #1337943 merged by jenkins-bot:

[integration/quibble@master] release: Quibble 1.21.0

https://gerrit.wikimedia.org/r/1337943

hashar claimed this task.

Quibble 1.21.0 now requires Python 3.11.

I did not go with the new dict merge/update, pattern matching or notes attached to extensions. But they are now possible to complete in the future ;)

Change #1337949 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: update Quibble jobs for 1.21.0

https://gerrit.wikimedia.org/r/1337949

Change #1337949 merged by jenkins-bot:

[integration/config@master] jjb: update Quibble jobs for 1.21.0

https://gerrit.wikimedia.org/r/1337949