Switch to latest Python macros
This commit is contained in:
+13
-15
@@ -22,19 +22,15 @@ Patch0003: 0003-DOC-Don-t-print-out-conda-pip-environment.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(cftime) >= 1
|
||||
BuildRequires: python3-dask+array >= 2.11
|
||||
BuildRequires: python3-dask+dataframe >= 2.11
|
||||
BuildRequires: python3dist(cftime) >= 1.1
|
||||
BuildRequires: python3dist(dask[array]) >= 2.15
|
||||
BuildRequires: python3dist(dask[dataframe]) >= 2.15
|
||||
BuildRequires: python3dist(netcdf4) >= 1.5
|
||||
BuildRequires: python3dist(numpy) >= 1.17
|
||||
BuildRequires: python3dist(pandas) >= 1
|
||||
BuildRequires: python3dist(pint)
|
||||
BuildRequires: python3dist(pint) >= 0.15
|
||||
BuildRequires: python3dist(pytest) >= 2.7.1
|
||||
BuildRequires: python3dist(pytest-xdist)
|
||||
BuildRequires: python3dist(rasterio) >= 1.1
|
||||
BuildRequires: python3dist(seaborn) >= 0.10
|
||||
BuildRequires: python3dist(setuptools) >= 41.2
|
||||
BuildRequires: python3dist(setuptools-scm)
|
||||
BuildRequires: python3dist(zarr) >= 2.4
|
||||
|
||||
%global _description %{expand: \
|
||||
@@ -58,7 +54,6 @@ data model, and integrates tightly with dask for parallel computing.}
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
%description -n python3-%{srcname} %{_description}
|
||||
|
||||
@@ -72,7 +67,7 @@ BuildRequires: natural-earth-map-data-110m
|
||||
BuildRequires: natural-earth-map-data-10m
|
||||
BuildRequires: python3-ipython-sphinx
|
||||
BuildRequires: python3dist(jupyter-client)
|
||||
BuildRequires: python3dist(matplotlib)
|
||||
BuildRequires: python3dist(matplotlib) >= 3.2
|
||||
BuildRequires: python3dist(sphinx)
|
||||
BuildRequires: python3dist(sphinx-gallery)
|
||||
BuildRequires: python3dist(sphinx-rtd-theme)
|
||||
@@ -92,8 +87,12 @@ cp -p %SOURCE2 ./doc/gallery/
|
||||
%endif
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%if %{with docs}
|
||||
# generate html docs
|
||||
@@ -106,7 +105,8 @@ popd
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{srcname}
|
||||
|
||||
|
||||
%check
|
||||
@@ -120,11 +120,9 @@ pytest_args=(
|
||||
%{pytest} -ra "${pytest_args[@]}" --pyargs xarray
|
||||
|
||||
|
||||
%files -n python3-%{srcname}
|
||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||
%license LICENSE licenses/DASK_LICENSE licenses/NUMPY_LICENSE licenses/PANDAS_LICENSE licenses/PYTHON_LICENSE licenses/SEABORN_LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{srcname}
|
||||
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
||||
|
||||
%if %{with docs}
|
||||
%files -n python-%{srcname}-doc
|
||||
|
||||
Reference in New Issue
Block a user