%global _empty_manifest_terminate_build 0
Name: python-scikit-image
Version: 0.26.0
Release: 1
Summary: Image processing in Python
License: BSD-3-Clause
URL: https://pypi.org/project/scikit-image/
Source0: %{pypi_source scikit_image}
Requires: (python3-numpy)
Requires: (python3-scipy)
Requires: (python3-networkx)
Requires: (python3-pillow)
Requires: (python3-imageio!=2.35.0 with python3-imageio>=2.33)
Requires: (python3-tifffile)
Requires: (python3-packaging)
Requires: (python3-lazy-loader)
Requires: (python3-meson-python)
Requires: (python3-ninja)
Requires: (python3-Cython)
Requires: (python3-pythran)
Requires: (python3-numpy)
Requires: (python3-spin)
Requires: (python3-build)
Requires: (python3-pooch)
Requires: (python3-pre-commit)
Requires: (python3-ipython)
Requires: (python3-tomli)
Requires: (python3-sphinx)
Requires: (python3-sphinx-gallery[parallel])
Requires: (python3-numpydoc)
Requires: (python3-sphinx-copybutton)
Requires: (python3-matplotlib)
Requires: (python3-dask[array])
Requires: (python3-pandas)
Requires: (python3-seaborn)
Requires: (python3-pooch)
Requires: (python3-tifffile)
Requires: (python3-myst-parser)
Requires: (python3-intersphinx-registry)
Requires: (python3-ipywidgets)
Requires: (python3-ipykernel)
Requires: (python3-plotly)
Requires: (python3-kaleido)
Requires: (python3-scikit-learn)
Requires: (python3-sphinx_design)
Requires: (python3-pydata-sphinx-theme)
Requires: (python3-PyWavelets)
Requires: (python3-pytest-doctestplus)
Requires: (python3-SimpleITK)
Requires: (python3-astropy)
Requires: (python3-cloudpickle)
Requires: (python3-dask[array])
Requires: (python3-matplotlib)
Requires: (python3-pooch)
Requires: (python3-pyamg)
Requires: (python3-PyWavelets)
Requires: (python3-scikit-learn)
Requires: (python3-asv)
Requires: (python3-numpydoc>=1.7)
Requires: (python3-pooch)
Requires: (python3-pytest)
Requires: (python3-pytest-cov)
Requires: (python3-pytest-localserver)
Requires: (python3-pytest-faulthandler)
Requires: (python3-pytest-doctestplus)
%description
scikit-image: Image processing in Python
%package -n python3-scikit-image
Summary: Image processing in Python
Provides: python-scikit-image
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-cffi
BuildRequires: gcc
BuildRequires: gdb
BuildRequires: python3-meson-python
BuildRequires: python3-pythran
BuildRequires: python3-ninja
BuildRequires: python3-Cython
%description -n python3-scikit-image
scikit-image: Image processing in Python
%prep
%autosetup -n scikit_image-%{version}
# Build-helper scripts use "#!/usr/bin/env python"; openEuler only ships python3,
# so fix shebangs or meson/ninja fails with "env: 'python': No such file or
# directory" (exit 127) when running cythoner.py directly.
find . -type f -name '*.py' \
-exec sed -i '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' {} +
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
touch filelist.lst
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-scikit-image -f filelist.lst
%{python3_sitearch}/*
%{_docdir}/*
%changelog
* Thu Jul 16 2026 sunliqiang <sunliqiang@kylinos.cn> - 0.26.0-1
- Update package to version 0.26.0
- Add new parameter `max_step_cost` to `skimage.graph.MCP.find_costs` which allows limiting the maximal stepping cost between points ([#7625](https://github.com/scikit-image/scikit-image/pull/7625)).
- In `skimage.transform`, add the `identity` class constructor to all geometric transforms. For example, you can now use `skimage.transform.PolynomialTransform(dimensionality=2)` ([#7754](https://github.com/scikit-image/scikit-image/pull/7754)).
- Add new property `intensity_median` to `skimage.measure.regionprops` ([#7745](https://github.com/scikit-image/scikit-image/pull/7745)).
* Sat May 10 2025 Python_Bot <Python_Bot@openeuler.org> - 0.25.2-1
- Package Spec generated