pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/py-ciso8601 py-ciso8601: updated to 2.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6266a39d0dd4
branches:  trunk
changeset: 456806:6266a39d0dd4
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Aug 09 13:07:40 2021 +0000

description:
py-ciso8601: updated to 2.2.0

Version 2.2.0

* Added Python 3.9 support
* Switched to using a C implementation of `timezone` objects.
    * Much faster parse times for timestamps with timezone information
        * ~2.5x faster on Python 2.7, ~10% faster on Python 3.9
    * Thanks to [`pendulum`](https://github.com/sdispater/pendulum) and @sdispater for the code.
    * Python 2.7 users no longer need to install `pytz` dependency :smiley:
* Added caching of tzinfo objects
  * Parsing is ~1.1x faster for subsequent timestamps that have the same time zone offset.
  * Caching can be disabled at compile time by setting the `CISO8601_CACHING_ENABLED=0` environment variable
* Fixed a memory leak in the case where an invalid timestamp had a non-UTC timezone and extra characters

diffstat:

 time/py-ciso8601/Makefile |   4 ++--
 time/py-ciso8601/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r d8f8f6ede9f1 -r 6266a39d0dd4 time/py-ciso8601/Makefile
--- a/time/py-ciso8601/Makefile Mon Aug 09 13:06:44 2021 +0000
+++ b/time/py-ciso8601/Makefile Mon Aug 09 13:07:40 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/05/23 08:22:40 adam Exp $
+# $NetBSD: Makefile,v 1.2 2021/08/09 13:07:40 adam Exp $
 
-DISTNAME=      ciso8601-2.1.3
+DISTNAME=      ciso8601-2.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/ciso8601/}
diff -r d8f8f6ede9f1 -r 6266a39d0dd4 time/py-ciso8601/distinfo
--- a/time/py-ciso8601/distinfo Mon Aug 09 13:06:44 2021 +0000
+++ b/time/py-ciso8601/distinfo Mon Aug 09 13:07:40 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/05/23 08:22:40 adam Exp $
+$NetBSD: distinfo,v 1.2 2021/08/09 13:07:40 adam Exp $
 
-SHA1 (ciso8601-2.1.3.tar.gz) = 8c6b2cdcb5c684aa9b40fd3cd26c270745515424
-RMD160 (ciso8601-2.1.3.tar.gz) = e5c1b0e2455063de2577d955e63ce177e70190e0
-SHA512 (ciso8601-2.1.3.tar.gz) = 9342cf9b2ded1077a2c3906527ae4ac05dfc0e8104f1c85e041d636caa1180df390f01b2d87a33a4c197f4467a25bda1cd0136eb48585b127662cde7d0ffda7e
-Size (ciso8601-2.1.3.tar.gz) = 15726 bytes
+SHA1 (ciso8601-2.2.0.tar.gz) = 09844dc870eca1a7ffee3dbd4015b9b174a4404a
+RMD160 (ciso8601-2.2.0.tar.gz) = fc51ea0b0991ed2e00bc1592dd0c85e2eb71c3db
+SHA512 (ciso8601-2.2.0.tar.gz) = 844a104a00a6d4df7497714d36695c4a018acb7074b0eca3dde9d3506885ab18be90f1fcb271539fa1328ed364ae12777b179cb5fc173ebc125c5fb387f8c411
+Size (ciso8601-2.2.0.tar.gz) = 18440 bytes



Home | Main Index | Thread Index | Old Index