Hi all,

One part of PEP 615 (IANA time zones) that I expected to be easily overlooked (a point about which I seem to have been right) is the recommendation that starting with Python 3.9, distros should add a dependency on the system time zone data to the Python package. Quoting the PEP:

Python distributors are encouraged to ensure that time zone data is installed alongside Python whenever possible (e.g. by declaring tzdata as a dependency for the python package).

https://www.python.org/dev/peps/pep-0615/#system-time-zone-information

I am not sure what is the best way to reach the largest number of distro packagers to suggest that they add a dependency on tzdata for Python 3.9+, so I figured I'd send a message here. If you know a distro packager who does not follow this list, or you use a distro that doesn't have a dependency on tzdata for Python 3.9, please forward this e-mail to them and/or open a bug on their issue tracker.

So far I know conda-forge got the dependency right from the first Python 3.9 release, Fedora has plans to fix this, and Christian Heimes has opened a bug on the Ubuntu launchpad for this. I will figure out how best to notify Arch Linux and do that (since that's the distro I use).

I suspect this will be most important for distros that are heavily used in containers, since tzdata is a common enough dependency that it's likely to be satisfied accidentally in most full-featured user environments anyway.

Thanks!

Paul

P.S. If there's a mailing list or other community for Python distro packagers, please let me know, because I often find that we're making decisions that affect them that they don't hear about until way down the line. I'd love to have an easy way to keep them in the loop.