-
Notifications
You must be signed in to change notification settings - Fork 0
Description
It looks like pygridgain has a hard dependency on a very old version of tzlocal, version 2.1:
| tzlocal==2.1 |
This is causing issues for us when we try to import it, as another one of our dependencies has a hard requirement on tzlocal version 4.x.
In theory (!) the 4.x series of tzlocal should be fairly compatible with tzlocal 2.1 (unlike the 3.x, and 5.x series):
tzlocal API CHANGE!
With version 3.0 of tzlocal, tzlocal no longer returned pytz objects, but zoneinfo objects, which has a different API. Since 4.0, it now restored partial compatibility for pytz users through Paul Ganssle’s pytz_deprecation_shim.
tzlocal 4.0 also adds an official function get_localzone_name() to get only the timezone name, instead of a timezone object. On unix, it can raise an error if you don’t have a timezone name configured, where get_localzone() will succeed, so only use that if you need the timezone name.
4.0 also adds way more information on what is going wrong in your configuration when the configuration files are unclear or contradictory.
Version 5.0 removes the pytz_deprecation_shim, and now only returns zoneinfo objects, like verion 3.0 did. If you need pytz objects, you have to stay on version 4.0. If there are bugs in version 4.0, I will rekease updates, but there will be no further functional changes on the 4.x branch.
Any idea if you'd be able to update the python thin client to use tzlocal 4.x? 😄