Path to this page:
./
time/py-pytz_deprecation_shim,
Shims to make deprecation of pytz easier
Branch: CURRENT,
Version: 0.1.0.0nb1,
Package name: py312-pytz_deprecation_shim-0.1.0.0nb1,
Maintainer: pkgsrc-userspytz 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.
Master sites:
Filesize: 58.779 KB
Version history: (Expand)
- (2024-11-11) Updated to version: py312-pytz_deprecation_shim-0.1.0.0nb1
- (2023-10-28) Updated to version: py311-pytz_deprecation_shim-0.1.0.0nb1
- (2023-05-04) Package added to pkgsrc.se, version py310-pytz_deprecation_shim-0.1.0.0 (created)
CVS history: (Expand)
2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862) |
Log message:
py-*: remove unused tool dependency
py-setuptools includes the py-wheel functionality nowadays
|
2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | |
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation
This follows the recommended bootstrap method (flit_core, build, installer).
However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
|
2023-05-04 14:40:09 by Thomas Klausner | Files touched by this commit (4) |
Log message:
time/py-pytz_deprecation_shim: import py-pytz_deprecation_shim-0.1.0.0
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.
|