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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | devel/py-pytz-deprecation-shim | 0.1.0.post0_3 newest | none known | - | [email protected] | - |
| DragonFly | devel/py-pytz-deprecation-shim | 0.1.0.post0_3 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-pytz-deprecation-shim | 0.1.0.post0_3 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-pytz-deprecation-shim | 0.1.0.post0_3 newest | no 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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.1.0.post0_3 | 0.1.0.post0_3 | 0.1.0.post0_1 | 0.1.0.post0_3 | 0.1.0.post0_3 |
| FreeBSD:14:quarterly | 0.1.0.post0_3 | 0.1.0.post0_3 | n/a | 0.1.0.post0_3 | 0.1.0.post0_3 |
| FreeBSD:15:latest | 0.1.0.post0_3 | 0.1.0.post0_3 | n/a | 0.1.0.post0_3 | 0.1.0.post0_3 |
| FreeBSD:15:quarterly | 0.1.0.post0_3 | 0.1.0.post0_3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.1.0.post0_3 | 0.1.0.post0_3 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
${PYTHON_PKGNAMEPREFIX}setuptools>=40.8.0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 1
${PYTHON_PKGNAMEPREFIX}tzdata>=0: devel/py-tzdata
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
| File | Size | SHA256 |
|---|---|---|
| pytz_deprecation_shim-0.1.0.post0.tar.gz | 60190 | af097bae1b616dde5c5744441e2ddc69e74dfdcb0c263129610d85b87445a59d |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.