From 74f8641998ead2f7858b03b0d4fc1e63730e46a5b58aa6f2dcfdb028e009a242 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 27 Mar 2022 14:58:44 +0000 Subject: [PATCH] - update to 1.6.0: * fix for masked array inputs * improved performance of the num2date algorithm, in some cases providing an over 100x speedup * fix for date2index for select != 'exact' when select='exact' works * silently change calendar='gregorian' to 'standard' internally, since 'gregorian' deprecated in CF v1.9 * add "is_leap_year" function * wheels that work on Apple M1 (arm64) available on pypi. * added support for "common_year" and "common_years" units for "noleap" and "365_day" calendars * check consistency of year arg and has_year_zero kwarg in cftime.datetime (issue #248). Also assume if has_year_zero not specified it should be True if year=0. Allow replace method to change has_year_zero. Issue UserWarning if year set to zero and calendar default is changed from False to True (so that user is aware the resulting instance will not be CF compliant). * '360_day' was missing from list of 'idealized' calendars. * fixed a bug that led to subclasses losing their type identity upon pickling * Change default behavior of proleptic_gregorian to has_year_zero=T (to be consistent with ISO-8601 since CF does not specify the year zero convention for this calendar). Issue warning when trying to to create a cftime.datetime instance that is not allowed in CF * 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cftime?expand=0&rev=14 --- cftime-1.4.1.tar.gz | 3 --- cftime-1.6.0.tar.gz | 3 +++ python-cftime.changes | 42 ++++++++++++++++++++++++++++++++++++++++++ python-cftime.spec | 4 ++-- 4 files changed, 47 insertions(+), 5 deletions(-) delete mode 100644 cftime-1.4.1.tar.gz create mode 100644 cftime-1.6.0.tar.gz diff --git a/cftime-1.4.1.tar.gz b/cftime-1.4.1.tar.gz deleted file mode 100644 index 5e61422..0000000 --- a/cftime-1.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c55540bc164746c3c4f86a07c9c7b9ed4dfb0b0d988348ec63cec065c58766d -size 46721 diff --git a/cftime-1.6.0.tar.gz b/cftime-1.6.0.tar.gz new file mode 100644 index 0000000..97b4adb --- /dev/null +++ b/cftime-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13103e6650beea6552316bd5825d6aa3b7e98f5b8115026df4826798dff9f741 +size 47633 diff --git a/python-cftime.changes b/python-cftime.changes index bce104a..64e2c2e 100644 --- a/python-cftime.changes +++ b/python-cftime.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Sun Mar 27 14:54:45 UTC 2022 - Dirk Müller + +- update to 1.6.0: + * fix for masked array inputs + * improved performance of the num2date algorithm, in some cases providing + an over 100x speedup + * fix for date2index for select != 'exact' when select='exact' works + * silently change calendar='gregorian' to 'standard' internally, + since 'gregorian' deprecated in CF v1.9 + * add "is_leap_year" function + * wheels that work on Apple M1 (arm64) available on pypi. + * added support for "common_year" and "common_years" units for "noleap" + and "365_day" calendars + * check consistency of year arg and has_year_zero kwarg in cftime.datetime + (issue #248). Also assume if has_year_zero not specified it should be True + if year=0. Allow replace method to change has_year_zero. Issue UserWarning + if year set to zero and calendar default is changed from False to True + (so that user is aware the resulting instance will not be CF compliant). + * '360_day' was missing from list of 'idealized' calendars. + * fixed a bug that led to subclasses losing their type identity upon + pickling + * Change default behavior of proleptic_gregorian to has_year_zero=T + (to be consistent with ISO-8601 since CF does not specify the year zero convention + for this calendar). Issue warning when trying to + to create a cftime.datetime instance that is not allowed in CF + * 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__ + ------------------------------------------------------------------- Tue Mar 2 05:51:33 UTC 2021 - Steve Kowalik diff --git a/python-cftime.spec b/python-cftime.spec index 382ce1c..914c2f9 100644 --- a/python-cftime.spec +++ b/python-cftime.spec @@ -1,7 +1,7 @@ # # spec file for package python-cftime # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ # no numpy for Python 3.6 %define skip_python36 1 Name: python-cftime -Version: 1.4.1 +Version: 1.6.0 Release: 0 Summary: Time-handling functionality from netcdf4-python License: MIT