Accepting request 865469 from home:bnavigator:branches:devel:languages:python:numeric

- Skip python36 because astropy is python >= 3.7

OBS-URL: https://build.opensuse.org/request/show/865469
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-healpy?expand=0&rev=5
This commit is contained in:
Matej Cepl 2021-01-21 21:05:48 +00:00 committed by Git OBS Bridge
parent 49f90e5bda
commit 92301377cc
2 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 21 15:32:02 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Skip python36 because astropy is python >= 3.7
-------------------------------------------------------------------
Sun Aug 16 11:13:22 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -16,6 +16,9 @@
#
# Builds on astropy, which is python >= 3.7 on TW
%define skip_python2 1
%define skip_python36 1
Name: python-healpy
Version: 1.14.0
Release: 0
@ -41,6 +44,8 @@ Requires: python-matplotlib
Requires: python-numpy >= 1.13
Requires: python-scipy
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
# SECTION Additional test requirements
# Symbol clashes with astropy < 4.0
BuildRequires: %{python_module astropy >= 4.0}
@ -77,16 +82,24 @@ export CFLAGS="%{optflags}"
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/healpy_get_wmap_maps.sh
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# Skip tests requiring network access
%python_expand %pytest_arch -k 'not (test_astropy_download_file or test_rotate_map_polarization or test_pixelweights_local_datapath)' %{buildroot}%{$python_sitearch}/healpy
%pytest_arch -k 'not (test_astropy_download_file or test_rotate_map_polarization or test_pixelweights_local_datapath)' %{buildroot}%{$python_sitearch}/healpy
%post
%python_install_alternative healpy_get_wmap_maps.sh
%postun
%python_uninstall_alternative healpy_get_wmap_maps.sh
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license COPYING
%python3_only %{_bindir}/healpy_get_wmap_maps.sh
%python_alternative %{_bindir}/healpy_get_wmap_maps.sh
%{python_sitearch}/healpy/
%{python_sitearch}/healpy-%{version}-py%{python_version}.egg-info/