Open kloczek opened 1 month ago
Babel still supports Python 3.8 which doesn't have zoneinfo
. Also pytz
is optional for Python 3.9+ but Babel allows to use pytz
if a user want to use pytz
rather than zoneinfo
. Therefore, I don't consider uses of pytz
should be removed.
See setup.py:
python_requires='>=3.8',
packages=['babel', 'babel.messages', 'babel.localtime'],
package_data={"babel": ["py.typed"]},
include_package_data=True,
install_requires=[
# This version identifier is currently necessary as
# pytz otherwise does not install on pip 1.4 or
# higher.
# Python 3.9 and later include zoneinfo which replaces pytz
'pytz>=2015.7; python_version<"3.9"',
],
Oct this year 3.8 will be EOSed. Also commit which I've mention shows example how to handle 3.8.
Switch to standard
zoneinfo
module. Below may help https://github.com/pydantic/pydantic-core/commit/fd262933