py-cftime: updated to 1.4.1 version 1.4.1 (release tag v1.4.1.rel) ====================================== * Restore use of calendar-specific sub-classes in `cftime.num2date`, `cftime.datetime.__add__`, and `cftime.datetime.__sub__`. The use of them will be removed in a later release. * add 'fromordinal' static method to create a cftime.datetime instance from a julian day ordinal and calendar (inverse of 'toordinal'). version 1.4.0 (release tag v1.4.0.rel) ====================================== * `cftime.date2num` will now always return an array of integers, if the units and times allow. Previously this would only be true if the units were 'microseconds'. In other circumstances, as before, `cftime.date2num` will return an array of floats. * Rewrite of julian day/calendar functions (_IntJulianDayToCalendar and _IntJulianDayFromCalendar) to remove GPL'ed code. cftime license changed to MIT (to be consistent with netcdf4-python). * Added datetime.toordinal() (returns julian day, kwarg 'fractional' can be used to include fractional day). * cftime.datetime no longer uses calendar-specific sub-classes. version 1.3.1 (release tag v1.3.1rel) ===================================== * fix for issue 211 bug in masked array handling in date2num) * switch from travis/appveyor to github actions for CI/CD. * switch to cython language_level=3 (no more support for python 2). * add __init__.py to test dir so pytest coverage works again. Add Coveralls step to github actions workflow to upload coverage data to coveralls.io * move package under 'src' directory so cftime can be imported from install dir version 1.3.0 (release tag v1.3.0rel) ===================================== * zero pad years in strtime * have cftime.datetime constuctor create 'calendar-aware' instances (default is 'standard' calendar, if calendar='' or None the instance is not calendar aware and some methods, like dayofwk, dayofyr, __add__ and __sub__, will not work). The calendar specific sub-classes are now deprecated, but remain for now as stubs that just instantiate the base class and override __repr__. * update regex in _cpdef _parse_date so reference years with more than four digits can be handled. * Change default calendar in cftime.date2num from 'standard' to None (calendar associated with first input datetime object is used). * add `cftime.datetime.tzinfo=None` for compatibility with python datetime . version 1.2.1 (release tag v1.2.1rel) ===================================== * num2date uses 'proleptic_gregorian' scheme when basedate is post-Gregorian but date is pre-Gregorian . * fix 1.2.0 regression (date2num no longer works with numpy scalar array inputs). * Fix for issue 187 (have date2num round to the nearest second when within 1 microsecond). * Fix for issue 189 (leap years calculated incorrectly for negative years in proleptic_gregorian calendar). version 1.2.0 (release tag v1.2.0rel) ===================================== * Return the default values of dayofwk and dayofyr when calendar is ''. * fix treatment of masked arrays in num2date and date2num. Also make sure masked arrays are output from num2date/date2num if masked arrays are input. * Where possible, use timedelta arithmetic to decode times exactly within num2date. * Make taking the difference between two cftime datetimes to produce a timedelta exact to the microsecond; depending on the units encoding, this enables date2num to be exact as well. * utime.date2num/utime.num2date now just call module level functions. JulianDayFromDate/DateFromJulianDay no longer used internally.diff -r1.2 -r1.3 pkgsrc/time/py-cftime/Makefile
(adam)
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2020/10/12 21:52:04 bacon Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2021/05/07 18:16:51 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= cftime-1.1.3 | 3 | DISTNAME= cftime-1.4.1 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 1 | |||
6 | CATEGORIES= time python | 5 | CATEGORIES= time python | |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=c/cftime/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=c/cftime/} | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://github.com/Unidata/cftime | 9 | HOMEPAGE= https://github.com/Unidata/cftime | |
11 | COMMENT= Time-handling functionality | 10 | COMMENT= Time-handling functionality | |
12 | LICENSE= gnu-gpl-v3 | 11 | LICENSE= gnu-gpl-v3 | |
13 | 12 | |||
13 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov | |||
14 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner | 14 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner | |
15 | 15 | |||
16 | # This pulls too many unnecessary dependencies. | 16 | # This pulls too many unnecessary dependencies. | |
17 | #PYSETUPTESTTARGET= pytest | 17 | #PYSETUPTESTTARGET= pytest | |
18 | 18 | |||
19 | do-test: | 19 | do-test: | |
20 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} test | 20 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} test | |
21 | 21 | |||
22 | .include "../../devel/py-cython/buildlink3.mk" | 22 | .include "../../devel/py-cython/buildlink3.mk" | |
23 | .include "../../lang/python/egg.mk" | 23 | .include "../../lang/python/egg.mk" | |
24 | .include "../../math/py-numpy/buildlink3.mk" | 24 | .include "../../math/py-numpy/buildlink3.mk" | |
25 | .include "../../mk/bsd.pkg.mk" | 25 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2020/07/01 15:57:35 adam Exp $ | 1 | $NetBSD: distinfo,v 1.2 2021/05/07 18:16:51 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (cftime-1.1.3.tar.gz) = 74b195aa98742a4b26063628979c849774e46f22 | 3 | SHA1 (cftime-1.4.1.tar.gz) = 76746f879a5323e847d5b8bfc21f90aadd7527fc | |
4 | RMD160 (cftime-1.1.3.tar.gz) = 31488d80ee1961f13b7fb4f983bae4813cd3708d | 4 | RMD160 (cftime-1.4.1.tar.gz) = 415fdb31887f35867b929e902d3e199003657eba | |
5 | SHA512 (cftime-1.1.3.tar.gz) = 27925e67efa06d5ce165c01958c13be492953a372941cd85437e943e87e3e3799be5f851ac9c9100cff37a8f49ab948e2d0d5aacdd36ff5124dabf1ca51d32ce | 5 | SHA512 (cftime-1.4.1.tar.gz) = 2d07b8f423e9945b1ced2e89f03965df5c3b25f932b0e7ce893a6cbd4568c93f0abb1d8e6efebe2cafca2ee19259f3c0878fec4fb91f68bf5dde1ccb67bcdef9 | |
6 | Size (cftime-1.1.3.tar.gz) = 50083 bytes | 6 | Size (cftime-1.4.1.tar.gz) = 46721 bytes |