BSD Ports

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

Shims to make deprecation of pytz easier

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
devel, python
Package size
21.9 KiB, 92.1 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
FreeBSDdevel/py-pytz-deprecation-shim0.1.0.post0_3 newestnone known-[email protected]-
DragonFlydevel/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 py312-pytz-deprecation-shim

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-pytz-deprecation-shim>0:devel/py-pytz-deprecation-shim

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.1.0.post0_30.1.0.post0_30.1.0.post0_10.1.0.post0_30.1.0.post0_3
FreeBSD:14:quarterly0.1.0.post0_30.1.0.post0_3n/a0.1.0.post0_30.1.0.post0_3
FreeBSD:15:latest0.1.0.post0_30.1.0.post0_3n/a0.1.0.post0_30.1.0.post0_3
FreeBSD:15:quarterly0.1.0.post0_30.1.0.post0_3n/an/an/a
FreeBSD:16:latest0.1.0.post0_30.1.0.post0_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

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

As this port's Makefile names them.

Build 2

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 8

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
pytz_deprecation_shim-0.1.0.post0.tar.gz60190af097bae1b616dde5c5744441e2ddc69e74dfdcb0c263129610d85b87445a59d
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.