Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:RebuildFactoryCandidates
python-sunpy
python-sunpy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-sunpy.spec of Package python-sunpy
# # spec file for package python-sunpy # # 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-sunpy Version: 5.1.4 Release: 0 Summary: SunPy core package: Python for Solar Physics License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT URL: https://github.com/sunpy/sunpy Source0: https://files.pythonhosted.org/packages/source/s/sunpy/sunpy-%{version}.tar.gz # PATCH-FIX-OPENSUSE use custom hypothesis profile for slow OBS executions Patch1: sunpy-obs-profile.patch BuildRequires: %{python_module aioftp} BuildRequires: %{python_module astropy >= 5.0.6} BuildRequires: %{python_module base => 3.9} BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module numpy-devel >= 1.25} BuildRequires: %{python_module packaging >= 19} BuildRequires: %{python_module parfive >= 2.0.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module pyerfa} BuildRequires: %{python_module setuptools >= 56} BuildRequires: %{python_module setuptools_scm >= 6.2} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-astropy >= 5.0.1 Requires: python-numpy > 1.25 Requires: python-packaging >= 19 Requires: python-parfive >= 2.0.0 Requires: python-pyerfa # pafived[ftp], ignore rpmlint's python-leftover-require Requires: python-aioftp >= 0.17.1 # SECTION extras_require:asdf Recommends: python-asdf >= 2.8 Recommends: python-asdf-astropy >= 0.1.1 # /SECTION # SECTION extras_require:dask Suggests: python-dask-array >= 2201.4 # /SECTION # SECTION extras_require:database Recommends: python-SQLAlchemy >= 1.3.4 # /SECTION # SECTION extras_require:image Recommends: python-scikit-image Recommends: python-scipy > 1.7.0 # /SECTION # SECTION extras_require:jpeg2000 Recommends: python-Glymur >= 0.9.1 Recommends: python-lxml >= 4.8 # /SECTION # SECTION extras_require:map Recommends: python-matplotlib >= 3.5.0 Recommends: python-mpl-animators >= 1.0.0 Recommends: python-reproject # scipy # /SECTION # SECTION extras_require:net Recommends: python-beautifulsoup4 >= 4.8.0 Recommends: python-drms >= 0.6.1 Recommends: python-python-dateutil >= 2.8.0 Recommends: python-tqdm >= 4.32.1 Recommends: python-zeep >= 3.4.0 # /SECTION # SECTION extras_require:timeseries Recommends: python-cdflib >= 0.3.20 Conflicts: python-cdflib = 0.4.0 Recommends: python-h5netcdf Recommends: python-h5py Recommends: python-pandas >= 1.2 # matplotlib # /SECTION # SECTION test requirements (and extras) # even although we do not use tox and doctestplus, there are tests in the suite checking their existence. BuildRequires: %{python_module Glymur >= 0.8.18} BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module SQLAlchemy >= 1.3.4} BuildRequires: %{python_module asdf >= 2.8} BuildRequires: %{python_module asdf-astropy >= 0.1.1} BuildRequires: %{python_module beautifulsoup4 >= 4.8.0} BuildRequires: %{python_module cdflib >= 0.3.20} BuildRequires: %{python_module dask-array >= 2021.4} BuildRequires: %{python_module drms >= 0.6.1} BuildRequires: %{python_module extension-helpers} BuildRequires: %{python_module h5netcdf} BuildRequires: %{python_module h5py >= 3.1.0} BuildRequires: %{python_module hypothesis >= 6.0.0} BuildRequires: %{python_module jplephem} BuildRequires: %{python_module lxml >= 4.8} BuildRequires: %{python_module matplotlib >= 3.5.0} BuildRequires: %{python_module mpl-animators >= 1.0.0} BuildRequires: %{python_module pandas >= 1.2.0} BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module pytest-astropy >= 0.8} BuildRequires: %{python_module pytest-doctestplus >= 0.5} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mpl >= 0.12} BuildRequires: %{python_module pytest-xdist >= 2} BuildRequires: %{python_module reproject >= 0.9} BuildRequires: %{python_module requests} BuildRequires: %{python_module scikit-image >= 0.18.0} BuildRequires: %{python_module scipy >= 1.7.0} BuildRequires: %{python_module tox} BuildRequires: %{python_module zeep >= 3.4.0} BuildRequires: python3-opencv # /SECTION %python_subpackages %description SunPy is a Python library for solar physics data analysis and visualization. %prep %autosetup -p1 -n sunpy-%{version} sed -i -e '/^#!\//, 1d' sunpy/extern/appdirs.py %build export CFLAGS="%{optflags}" %pyproject_wheel %install %pyproject_install %{python_expand # sed -i -e 's@^#!/usr/bin/env python@#!%__$python@' %{buildroot}%{$python_sitearch}/sunpy/extern/distro.py chmod +x %{buildroot}%{$python_sitearch}/sunpy/extern/distro.py find %{buildroot}%{$python_sitearch} -name '*.h' -delete -print find %{buildroot}%{$python_sitearch} -name '*.c' -delete -print %fdupes %{buildroot}%{$python_sitearch} } %check mkdir testdir pushd testdir %{python_expand # no opencv for non-primary python3 if [ "%{$python_provides}" != "python3" ]; then $python_donttest=" or opencv or (test_transform and (test_nans or test_clipping))" fi } # fails because it does not find any opencv-python dist metadata (even for python3-opencv installed) donttest="test_self_test" # spiceypy not available %pytest_arch --pyargs sunpy -ra -n auto -k "not ($donttest ${$python_donttest})" --ignore %{buildroot}%{$python_sitearch}/sunpy/coordinates/tests/test_spice.py popd %files %{python_files} %doc README.rst CHANGELOG.rst %license LICENSE.rst licenses/* %{python_sitearch}/sunpy %{python_sitearch}/sunpy-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor