pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/py-cftime py-cftime: updated to 1.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/58495e740018
branches:  trunk
changeset: 452999:58495e740018
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri May 21 08:37:49 2021 +0000

description:
py-cftime: updated to 1.5.0

version 1.5.0 (release tag v1.5.0.rel)
======================================
* clean-up deprecated calendar specific subclasses.
* added string formatting support to `cftime.datetime` objects
  (via `cftime.datetime.__format__`).
* add support for astronomical year numbering (including year zero) for
  real-world calendars using 'has_year_zero' cftime.datetime kwarg.
  Default is False for 'real-world' calendars ('julian', 'gregorian'/'standard',
  'proleptic_gregorian'). Ignored for idealized calendars like '360_day
  (they always have year zero).
* add "change_calendar" cftime.datetime method to switch to another
  'real-world' calendar. Enable comparison of cftime.datetime instances
  with different 'real-world' calendars (using the new change_calendar method)
* remove legacy `utime` class, and legacy `JulianDayFromDate` and
  `DateFromJulianDay` functions (replaced by `cftime.datetime.toordinal`
  and `cftime.datetime.fromordinal`).
* Change ValueError to TypeError in __sub__

diffstat:

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

diffs (27 lines):

diff -r fd15820fc19f -r 58495e740018 time/py-cftime/Makefile
--- a/time/py-cftime/Makefile   Fri May 21 08:36:57 2021 +0000
+++ b/time/py-cftime/Makefile   Fri May 21 08:37:49 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2021/05/07 18:16:51 adam Exp $
+# $NetBSD: Makefile,v 1.4 2021/05/21 08:37:49 adam Exp $
 
-DISTNAME=      cftime-1.4.1
+DISTNAME=      cftime-1.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cftime/}
diff -r fd15820fc19f -r 58495e740018 time/py-cftime/distinfo
--- a/time/py-cftime/distinfo   Fri May 21 08:36:57 2021 +0000
+++ b/time/py-cftime/distinfo   Fri May 21 08:37:49 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2021/05/07 18:16:51 adam Exp $
+$NetBSD: distinfo,v 1.3 2021/05/21 08:37:49 adam Exp $
 
-SHA1 (cftime-1.4.1.tar.gz) = 76746f879a5323e847d5b8bfc21f90aadd7527fc
-RMD160 (cftime-1.4.1.tar.gz) = 415fdb31887f35867b929e902d3e199003657eba
-SHA512 (cftime-1.4.1.tar.gz) = 2d07b8f423e9945b1ced2e89f03965df5c3b25f932b0e7ce893a6cbd4568c93f0abb1d8e6efebe2cafca2ee19259f3c0878fec4fb91f68bf5dde1ccb67bcdef9
-Size (cftime-1.4.1.tar.gz) = 46721 bytes
+SHA1 (cftime-1.5.0.tar.gz) = 68a302e292cfec20d644837ef8a8ac5fadae4568
+RMD160 (cftime-1.5.0.tar.gz) = 8408909fa42962099dfc06e310b4a8dfddfbfbda
+SHA512 (cftime-1.5.0.tar.gz) = 8607d12ac1333e47de1976b0efc96f0f2a141cff19291974300c23b35ea9e389e698de0dc8fe5303b2686c77750e8d4017670c697de16d989c689391109ec510
+Size (cftime-1.5.0.tar.gz) = 44972 bytes



Home | Main Index | Thread Index | Old Index