matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.12k forks source link

Build Docker images with Python 3.12 #16671

Closed frebib closed 4 months ago

frebib commented 12 months ago

Pull Request Checklist

frebib commented 12 months ago

I'm not entirely sure if there's a reason that Synapse hasn't been updated yet, but python 3.12 has been out for a while, and I've been running this for a while on my homeserver with seemingly no issues

clokep commented 12 months ago

I'm not entirely sure if there's a reason that Synapse hasn't been updated yet

I think just being a bit conservative to see if there's any major bugs in Python 3.12.0. So, no real reason.

clokep commented 11 months ago

We had a conversation about this at https://matrix.to/#/!vcyiEtMVHIhWXcJAfl:sw1v.org/$jKrddG8OwjueQLieMigclhpg6zFltijWQUPE2xPDsSQ?via=matrix.org&via=element.io&via=envs.net -- it seems that we'd like to wait a bit more for this since we're still seeing Python 3.12 support being added to packages. We previously always ran a version behind on Python to be conservative, but broke this in Python 3.11 (since it has a significant performance improvements).


Out of curiosity -- is there anything driving this? Do you see better performance when building with 3.12, or just interested in running the latest?