Group :: Development/Python3
RPM: python3-module-cftime
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname cftime
%def_with check
Name: python3-module-%oname
Version: 1.6.2
Release: alt1
Summary: Time-handling functionality from netcdf4-python
License: MIT and GPLv3
Group: Development/Python3
URL: https://pypi.org/project/cftime
# https://github.com/Unidata/cftime
Source: %name-%version.tar
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev
BuildRequires: libnumpy-py3-devel
BuildRequires: python3-module-Cython
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pytest-cov
BuildRequires: python3-module-numpy-testing
%endif
%description
%summary
%prep
%setup
%build
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -v \
%ifarch armh
-k 'not test_num2date_precision'
%endif
%files
%doc LICENSE *.md
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Full changelog you can see here
%def_with check
Name: python3-module-%oname
Version: 1.6.2
Release: alt1
Summary: Time-handling functionality from netcdf4-python
License: MIT and GPLv3
Group: Development/Python3
URL: https://pypi.org/project/cftime
# https://github.com/Unidata/cftime
Source: %name-%version.tar
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-dev
BuildRequires: libnumpy-py3-devel
BuildRequires: python3-module-Cython
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pytest-cov
BuildRequires: python3-module-numpy-testing
%endif
%description
%summary
%prep
%setup
%build
%python3_build
%install
%python3_install
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test-3 -v \
%ifarch armh
-k 'not test_num2date_precision'
%endif
%files
%doc LICENSE *.md
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%changelog
…
Full changelog you can see here