chore: remove 3.8 and update to 3.10 - #1873
Conversation
|
o11y tests failed because they all have |
|
Pack failed because it tries to pack for 20.04. Tried locally to pack an example charm and it is OK. |
james-garner-canonical
left a comment
There was a problem hiding this comment.
Looks good. One small suggestion: add a FIXME/TODO comment to the tool.ruff.target-version. Optional.
|
Hi, is there a specific reason for this change? |
Python 3.8 has been out of support since October last year, and 20.04 is out of standard support as of May. The Python ecosystem is dropping support for Python 3.8, making it increasingly difficult to use a modern toolchain and rely on fixes for dependencies. This is roughly the same timeframe as dropping support for 18.04 in Ops 2.0. That was released in January 2023, 18.04 was out of standard support in May 2023, and Python 3.5 out of support in September 2020. Juju 4 also drops support for 20.04, with Juju 3 expected to go into security fixes only in May next year. If your charms need to support 20.04 still, then Ops 2.23 is available, and will receive critical bug fixes and security fixes for at least a year (and there will presumably be some avenue for security fixes until 20.04 is completely unsupported in 2030). Our recommendation is that you branch your code, leaving the branch that supports 20.04 with Ops 2 and moving main to Ops 3, so that you can use new features -- but you can just remain on Ops 2 if a single code base is preferable. |
Remove Python 3.8.
pyproject.toml3.*