Files
python-cftime/python-cftime.spec
Matej Cepl e4d236d900 Accepting request 1031655 from home:yarunachalam:branches:devel:languages:python
- Update to version 1.6.2 
  * num2date should not fail on an empty integer array (issue #287).
  * longdouble keyword in date2num so that a roundtrip from a time to a date
    and back again does not lose microsecond precision when the units require
    the times be encoded as floating point values (PR #284)
  * added strptime method (issue #277).
  * cibuildwheel wheel-building workflow added to github actions by @ocefpaf (triggers binary
    wheel builds and uploads to pypi automatically when GH release created). PR #290.

OBS-URL: https://build.opensuse.org/request/show/1031655
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cftime?expand=0&rev=18
2022-10-29 11:47:38 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-cftime
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# no numpy for Python 3.6
%define skip_python36 1
Name: python-cftime
Version: 1.6.2
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}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 18.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Cython
Requires: python-numpy
%python_subpackages
%description
Time-handling functionality from netcdf4-python.
Was split out from netcfd4-python in 2016.
%prep
%setup -q -n cftime-%{version}
# do not require cov/xdist/etc
rm setup.cfg
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_expand PYTHONPATH="%{buildroot}%{$python_sitearch}" py.test-%{$python_bin_suffix} -v
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitearch}/*
%changelog