Source: tryton-server
Version: 7.0.40-1
Severity: normal

Dear Maintainer,

I'm doing a survey and roughly half of the dependencies
on python3-tz/python3-pytz are not needed at all anymore.

A lot of packages now prefer "zoneinfo" from the standard library.

This is also the case here:

/tmp/tryton-server$ grep pytz -r -C 6
trytond/tools/timezone.py-try:
trytond/tools/timezone.py-    import zoneinfo
trytond/tools/timezone.py-    ZoneInfo = zoneinfo.ZoneInfo
trytond/tools/timezone.py-    ZoneInfoNotFoundError = 
zoneinfo.ZoneInfoNotFoundError
trytond/tools/timezone.py-except ImportError:
trytond/tools/timezone.py-    zoneinfo = None
trytond/tools/timezone.py:    import pytz
trytond/tools/timezone.py-    from dateutil.tz import gettz as ZoneInfo
trytond/tools/timezone.py-
trytond/tools/timezone.py-    class ZoneInfoNotFoundError(KeyError):
trytond/tools/timezone.py-        pass
trytond/tools/timezone.py-


trytond.egg-info/PKG-INFO:Requires-Dist: pytz; python_version < "3.9"


So please drop python3-tz from debian/control.

Backports to stable and even oldstable should be fine too :-) !

Greetings

Alexandre

Reply via email to