How to Install and Uninstall python311-pytz-deprecation-shim Package on openSUSE Leap

Last updated: November 08,2024

1. Install "python311-pytz-deprecation-shim" package

This is a short guide on how to install python311-pytz-deprecation-shim on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python311-pytz-deprecation-shim

2. Uninstall "python311-pytz-deprecation-shim" package

Please follow the steps below to uninstall python311-pytz-deprecation-shim on openSUSE Leap:

$ sudo zypper remove python311-pytz-deprecation-shim

3. Information about the python311-pytz-deprecation-shim package on openSUSE Leap

Information for package python311-pytz-deprecation-shim:
--------------------------------------------------------
Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : python311-pytz-deprecation-shim
Version : 0.1.0.post0-150400.9.3.9
Arch : noarch
Vendor : SUSE LLC
Installed Size : 65.6 KiB
Installed : No
Status : not installed
Source package : python-pytz-deprecation-shim-0.1.0.post0-150400.9.3.9.src
Upstream URL : https://github.com/pganssle/pytz-deprecation-shim
Summary : Shims to make deprecation of pytz easier
Description :
pytz has served the Python community well for many years, but it is no longer
the best option for providing time zones. pytz has a non-standard interface
that is very easy to misuse; this interface was necessary when pytz was
created, because datetime had no way to represent ambiguous datetimes, but this
was solved in in Python 3.6, which added a fold attribute to datetimes in PEP
495. With the addition of the zoneinfo module in Python 3.9 (PEP 615), there
has never been a better time to migrate away from pytz.
However, since pytz time zones are used very differently from a standard
tzinfo, and many libraries have built pytz zones into their standard time zone
interface (and thus may have users relying on the existence of the localize and
normalize methods); this library provides shim classes that are compatible with
both PEP 495 and pytz’s interface, to make it easier for libraries to deprecate
pytz.

5. The same packages on other Linux Distributions