BSD Ports

devel/py-pytz-deprecation-shim 0.1.0.post0_3 DragonFly

Shims to make deprecation of pytz easier

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
20.4 KiB, 96.0 KiB installed

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 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.

In the other systems

The newest version among them is 0.1.0.post0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-pytz-deprecation-shim0.1.0.post0_3 newestnone known-[email protected]-
FreeBSDdevel/py-pytz-deprecation-shim0.1.0.post0_3 newestnone known-[email protected]-
HardenedBSDdevel/py-pytz-deprecation-shim0.1.0.post0_3 newestno data-[email protected]-
GhostBSDdevel/py-pytz-deprecation-shim0.1.0.post0_3 newestno data-[email protected]-

Install

Binary package:

pkg install py311-pytz-deprecation-shim

From DPorts:

cd /usr/dports/devel/py-pytz-deprecation-shim && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2