|
David |
a0ce2e1 |
%global pypi_name xbout
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
Name: python-%{pypi_name}
|
|
David |
af9d724 |
Version: 0.2.4
|
|
|
a495b4f |
Release: 2%{?dist}
|
|
David |
a0ce2e1 |
Summary: Collects BOUT++ data from parallelized simulations into xarray
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
License: ASL 2.0
|
|
David |
a0ce2e1 |
URL: https://github.com/boutproject/xBOUT
|
|
David |
a0ce2e1 |
Source0: %{pypi_source}
|
|
David |
a0ce2e1 |
BuildArch: noarch
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
BuildRequires: python3-devel
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(pytest)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(setuptools)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(sphinx)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(setuptools-scm-git-archive)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(natsort)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(dask[array])
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(netcdf4)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(animatplot)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(xarray)
|
|
David |
a0ce2e1 |
BuildRequires: python3dist(pillow)
|
|
David |
a0ce2e1 |
BuildRequires: python3-boutdata
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%description
|
|
David |
a0ce2e1 |
xBOUT provides an interface for collecting the output data from a
|
|
David |
a0ce2e1 |
BOUT++ simulation into an xarray dataset in an efficient and
|
|
David |
a0ce2e1 |
scalable way, as well as accessor methods for common BOUT++ analysis
|
|
David |
a0ce2e1 |
and plotting tasks.
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%package -n python3-%{pypi_name}
|
|
David |
a0ce2e1 |
Summary: %{summary}
|
|
David |
a0ce2e1 |
%py_provides python3-%{pypi_name}}
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
Requires: python3dist(natsort)
|
|
David |
a0ce2e1 |
Requires: python3dist(dask[array])
|
|
David |
a0ce2e1 |
Requires: python3dist(netcdf4)
|
|
David |
a0ce2e1 |
Requires: python3dist(animatplot)
|
|
David |
a0ce2e1 |
Requires: python3dist(xarray)
|
|
David |
a0ce2e1 |
Requires: python3dist(pillow)
|
|
David |
a0ce2e1 |
Requires: python3dist(py)
|
|
David |
a0ce2e1 |
#Requires: python3dist(boutdata)
|
|
David |
a0ce2e1 |
Requires: python3-boutdata
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%description -n python3-%{pypi_name}
|
|
David |
a0ce2e1 |
xBOUT provides an interface for collecting the output data from a
|
|
David |
a0ce2e1 |
BOUT++ simulation into an xarray dataset in an efficient and
|
|
David |
a0ce2e1 |
scalable way, as well as accessor methods for common BOUT++ analysis
|
|
David |
a0ce2e1 |
and plotting tasks.
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%package -n python3-%{pypi_name}-doc
|
|
David |
a0ce2e1 |
Summary: xBOUT documentation
|
|
David |
a0ce2e1 |
Recommends: python3-%{pypi_name}
|
|
David |
a0ce2e1 |
%description -n python3-%{pypi_name}-doc
|
|
David |
a0ce2e1 |
Documentation for xBOUT
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%prep
|
|
David |
a0ce2e1 |
%autosetup -n %{pypi_name}-%{version}
|
|
David |
a0ce2e1 |
# Remove bundled egg-info
|
|
David |
a0ce2e1 |
rm -rf xbout.egg-info
|
|
David |
a0ce2e1 |
# boutdata doesn't have the provides
|
|
David |
a0ce2e1 |
# animatplot is to old RHBZ#1885115
|
|
David |
a0ce2e1 |
sed -e 's/boutdata.*//' -e 's/animatplot.*/animatplot/' -i requirements.txt -i setup.cfg
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%build
|
|
David |
a0ce2e1 |
%py3_build
|
|
David |
a0ce2e1 |
# generate html docs
|
|
David |
a0ce2e1 |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
David |
a0ce2e1 |
# remove the sphinx-build leftovers
|
|
David |
a0ce2e1 |
rm -rf html/.{doctrees,buildinfo}
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%install
|
|
David |
a0ce2e1 |
%py3_install
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%check
|
|
David |
a0ce2e1 |
%pytest xbout
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%files -n python3-%{pypi_name}
|
|
David |
a0ce2e1 |
%license LICENSE
|
|
David |
a0ce2e1 |
%doc README.md
|
|
David |
a0ce2e1 |
%{python3_sitelib}/%{pypi_name}
|
|
David |
a0ce2e1 |
%{python3_sitelib}/xbout-%{version}-py?.*.egg-info
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%files -n python3-%{pypi_name}-doc
|
|
David |
a0ce2e1 |
%doc html
|
|
David |
a0ce2e1 |
%license LICENSE
|
|
David |
a0ce2e1 |
|
|
David |
a0ce2e1 |
%changelog
|
|
|
a495b4f |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.4-2
|
|
|
a495b4f |
- Rebuilt for Python 3.10
|
|
|
a495b4f |
|
|
David |
af9d724 |
* Sat Apr 17 2021 David Schwörer <davidsch@fedoraproject.org> - 0.2.4-1
|
|
David |
af9d724 |
- Update to 0.2.4
|
|
David |
af9d724 |
|
|
|
b787168 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
|
|
|
b787168 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
b787168 |
|
|
David |
af9d724 |
* Sun Dec 06 2020 David Schwörer <davidsch@fedoraproject.org> - 0.2.3-0.2
|
|
David |
a0ce2e1 |
- Fix FTI
|
|
David |
a0ce2e1 |
- Fix License
|
|
David |
a0ce2e1 |
|
|
David |
af9d724 |
* Sun Dec 06 2020 David Schwörer <davidsch@fedoraproject.org> - 0.2.3-0.1
|
|
David |
a0ce2e1 |
- Initial package.
|