Fix broken package, and test install instead of build.

This commit is contained in:
Elliott Sales de Andrade
2020-04-18 04:30:41 -04:00
parent e45e16ba78
commit b7026ce966
+9 -6
View File
@@ -5,7 +5,7 @@
Name: python-%{srcname}
Version: 0.15.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: N-D labeled arrays and datasets in Python
License: ASL 2.0
@@ -92,9 +92,6 @@ tar xf %SOURCE1 --transform='s~^\(%{srcname}-data-%{data_commit}/\)~\1.xarray_tu
cp -p %SOURCE2 ./doc/gallery/
%endif
# Remove bundled egg-info
rm -rf %{srcname}.egg-info
%build
%py3_build
@@ -114,14 +111,16 @@ popd
%check
pytest-3 -ra -n auto -m "not network"
rm -rf xarray
PYTHONPATH=%{buildroot}%{python3_sitelib} \
pytest-3 -ra -n auto -m "not network" --pyargs xarray
%files -n python3-%{srcname}
%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
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
%if %{with docs}
%files -n python-%{srcname}-doc
@@ -131,6 +130,10 @@ pytest-3 -ra -n auto -m "not network"
%changelog
* Sat Apr 18 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-2
- Fix broken install with missing files
- Test against installed version to catch above issue
* Wed Mar 25 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.15.1-1
- Update to latest version