Upgrading tzlocal 4 to 5
Breaking4.3.1 → 5.4.5Breaking1Platform2New2Changed6Fixed7Other7
BreakingUpgrade verdict
1 breaking change and 2 platform requirement changes.
In plain terms
- A compatibility layer that warned about old usage has been removed, so code relying on it may stop working.
- You need Python 3.10 or newer; Python 3.14 is now supported.
- The package now works on Python 3.9 through 3.13 and no longer needs the backports.zoneinfo package.
Must act 3 items need code or config changes
Python requirement changed in 5.4: >=3.7 → >=3.10.
Drops pytz-deprecation-shim.
Installs 0 packages in all (was 2).
What you must change
Breaking1
Removes the deprecation shim.
Platform2
Drops support for Python 3.9 and adds support for Python 3.14.
Supports Python 3.9 to 3.13 and no longer requires backports.zoneinfo.
backports.zoneinfoAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
export assert_tz_offset
- changed:
function get_localzone() → function get_localzone() -> zoneinfo.ZoneInfo - changed:
function get_localzone_name() → function get_localzone_name() -> str - changed:
function reload_localzone() → function reload_localzone() -> zoneinfo.ZoneInfo - added:
variable log
- removed:
class ZoneInfoNotFoundError(pds.UnknownTimeZoneError, zoneinfo.ZoneInfoNotFoundError) - removed:
function get_system_offset() - changed:
function assert_tz_offset(tz) → function assert_tz_offset(tz, error=…) - added:
variable log
- changed:
function get_localzone() → function get_localzone() -> zoneinfo.ZoneInfo - changed:
function get_localzone_name() → function get_localzone_name() -> str - changed:
function reload_localzone() → function reload_localzone() -> zoneinfo.ZoneInfo - added:
variable log