Files
python-cftime/python-cftime.spec
Markéta Machová 52c33bda64 - Update to 1.6.5
* python 3.14 wheels, 3.8/3.9 support dropped.
  * roundtrip not correct when dates are all python datetime
    instances and calendar not proleptic_gregorian (issue #354).
  * fix cftime.datetime.strftime so it works with two digit year
    formatting (%y, issue #362).
  * speed up comparisions (using __richcmp___) and update docs. Issue #365.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cftime?expand=0&rev=28
2025-10-21 11:51:23 +00:00

65 lines
1.8 KiB
RPMSpec

#
# spec file for package python-cftime
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-cftime
Version: 1.6.5
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 pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 18.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-numpy
%python_subpackages
%description
Time-handling functionality from netcdf4-python.
Was split out from netcfd4-python in 2016.
%prep
%autosetup -p1 -n cftime-%{version}
# do not require cov/xdist/etc
rm setup.cfg
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitearch}/cftime
%{python_sitearch}/cftime-%{version}.dist-info
%changelog