From 8bffac187282ccda79f7b27e14fbc6a74056dd8f05d0d5503cdb258224efaf5a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 11 Jun 2024 08:02:30 +0000 Subject: [PATCH] Accepting request 1179563 from home:bnavigator:numpy - Update to 1.6.4 * return empty array if one provided to date2num (issue #315). * numpy 2.0 compatibility (issue #325). * handle nan/inf in num2date (issue #328). - Build PEP517 OBS-URL: https://build.opensuse.org/request/show/1179563 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cftime?expand=0&rev=24 --- cftime-1.6.3.tar.gz | 3 --- cftime-1.6.4.tar.gz | 3 +++ python-cftime.changes | 9 +++++++++ python-cftime.spec | 18 ++++++++++-------- 4 files changed, 22 insertions(+), 11 deletions(-) delete mode 100644 cftime-1.6.3.tar.gz create mode 100644 cftime-1.6.4.tar.gz diff --git a/cftime-1.6.3.tar.gz b/cftime-1.6.3.tar.gz deleted file mode 100644 index 43c4cfd..0000000 --- a/cftime-1.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0a6b29f72a13f08e008b9becff247cc75c84acb213332ede18879c5b6aa4dfd -size 53256 diff --git a/cftime-1.6.4.tar.gz b/cftime-1.6.4.tar.gz new file mode 100644 index 0000000..e283f06 --- /dev/null +++ b/cftime-1.6.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e325406193758a7ed67308deb52e727782a19e384e183378e7ff62098be0aedc +size 54615 diff --git a/python-cftime.changes b/python-cftime.changes index 9d0f975..a4a39fe 100644 --- a/python-cftime.changes +++ b/python-cftime.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Jun 9 10:39:23 UTC 2024 - Ben Greiner + +- Update to 1.6.4 + * return empty array if one provided to date2num (issue #315). + * numpy 2.0 compatibility (issue #325). + * handle nan/inf in num2date (issue #328). +- Build PEP517 + ------------------------------------------------------------------- Fri Dec 1 11:31:40 UTC 2023 - Dirk Müller diff --git a/python-cftime.spec b/python-cftime.spec index 40efb81..fe605f3 100644 --- a/python-cftime.spec +++ b/python-cftime.spec @@ -1,7 +1,7 @@ # # spec file for package python-cftime # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,20 +18,21 @@ %{?sle15_python_module_pythons} Name: python-cftime -Version: 1.6.3 +Version: 1.6.4 Release: 0 Summary: Time-handling functionality from netcdf4-python License: MIT URL: https://github.com/Unidata/cftime Source: https://files.pythonhosted.org/packages/source/c/cftime/cftime-%{version}.tar.gz + BuildRequires: %{python_module Cython >= 0.29.20} BuildRequires: %{python_module numpy-devel} -BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 18.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Cython >= 0.29.20 Requires: python-numpy %python_subpackages @@ -45,18 +46,19 @@ Was split out from netcfd4-python in 2016. rm setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_expand PYTHONPATH="%{buildroot}%{$python_sitearch}" py.test-%{$python_bin_suffix} -v +%pytest_arch %files %{python_files} %license LICENSE %doc README.md -%{python_sitearch}/* +%{python_sitearch}/cftime +%{python_sitearch}/cftime-%{version}.dist-info %changelog