%bcond_without check %global srcname scikit-image Name: python-scikit-image Version: 0.22.0 Release: 2%{?dist} Summary: Image processing in Python # The following files are BSD 2 clauses, the rest BSD 3 clauses # skimage/graph/_mcp.pyx # skimage/graph/heap.pyx License: BSD-2-Clause AND BSD-3-Clause URL: http://scikit-image.org/ Source0: https://github.com/scikit-image/scikit-image/archive/v%{version}/%{srcname}-%{version}.tar.gz # Select extra test data - you can build the package locally and then run: # tar cJvf scikit-image-data.tar.xz -C scikit-image-0.21.0/scikit-image/0.21.0 . Source1: scikit-image-data.tar.xz BuildRequires: gcc gcc-c++ BuildRequires: xorg-x11-server-Xvfb %global _description %{expand: The scikit-image SciKit (toolkit for SciPy) extends scipy.ndimage to provide a versatile set of image processing routines.} %description %_description %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python-unversioned-command BuildRequires: %{py3_dist meson-python} BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist numpy} BuildRequires: %{py3_dist scipy} BuildRequires: %{py3_dist networkx} BuildRequires: %{py3_dist pillow} BuildRequires: %{py3_dist imageio} BuildRequires: %{py3_dist tifffile} BuildRequires: %{py3_dist PyWavelets} BuildRequires: %{py3_dist packaging} BuildRequires: %{py3_dist lazy_loader} # optional-dependencies BuildRequires: %{py3_dist Cython} BuildRequires: pythran %if %{with check} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist pytest-localserver} BuildRequires: %{py3_dist matplotlib} BuildRequires: %{py3_dist pooch} BuildRequires: %{py3_dist numpydoc} %endif Obsoletes: %{srcname}-tools < 0.20.0 %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} -p1 # Extract test data - pooch looks for this path in XDG_CACHE_HOME mkdir -p scikit-image/%{version} tar xf %SOURCE1 -C scikit-image/%{version} # Remove pinned numpy versions sed -i -e '/numpy==/d' pyproject.toml # For regeneration of cython source rm -f $(grep -rl '/\* Generated by Cython') # This currently requires building the whole package with -w, which is just too expensive #generate_buildrequires #pyproject_buildrequires -t -w %build %pyproject_wheel %install %pyproject_install %pyproject_save_files skimage %if %{with check} %check # Fake matplotlibrc mkdir -p matplotlib touch matplotlib/matplotlibrc # For test data export XDG_CACHE_HOME=$PWD export XDG_CONFIG_HOME=$PWD export PYTHONDONTWRITEBYTECODE=1 export PYTEST_ADDOPTS='-p no:cacheprovider' pushd %{buildroot}/%{python3_sitearch} # We deselect tests that require network data xvfb-run pytest -v \ --deselect="skimage/data/tests/test_data.py::test_download_all_with_pooch" \ --deselect="skimage/data/tests/test_data.py::test_eagle" \ --deselect="skimage/data/tests/test_data.py::test_brain_3d" \ --deselect="skimage/data/tests/test_data.py::test_cells_3d" \ --deselect="skimage/data/tests/test_data.py::test_kidney_3d_multichannel" \ --deselect="skimage/data/tests/test_data.py::test_lily_multichannel" \ --deselect="skimage/data/tests/test_data.py::test_skin" \ --deselect="skimage/data/tests/test_data.py::test_vortex" \ --deselect="skimage/measure/tests/test_blur_effect.py::test_blur_effect_3d" \ --deselect="skimage/registration/tests/test_masked_phase_cross_correlation.py::test_masked_registration_3d_contiguous_mask" \ --deselect="skimage/io/tests/test_imageio.py::TestSave::test_imsave_roundtrip[shape1-uint16]" \ %ifarch i686 --deselect="skimage/measure/tests/test_fit.py::test_ellipse_parameter_stability" \ --deselect="skimage/util/tests/test_regular_grid.py::test_regular_grid_2d_8" \ --deselect="skimage/util/tests/test_regular_grid.py::test_regular_grid_3d_8" \ %endif %ifarch s390x --deselect="skimage/io/tests/test_imageio.py::TestSave::test_imsave_roundtrip[shape1-uint16]" \ --deselect="skimage/io/tests/test_pil.py::test_all_mono" \ --deselect="skimage/measure/tests/test_moments.py::test_analytical_moments_calculation[3-1-float32]" \ %endif skimage popd %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc CONTRIBUTORS.txt RELEASE.txt %license LICENSE.txt %changelog * Sat Oct 28 2023 Sergio Pascual - 0.22.0-2 - New upstream source * Fri Jul 21 2023 Fedora Release Engineering - 0.21.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Sergio Pascual - 0.21.0-3 - Disable some tests failling in i686 and s390x * Mon Jul 10 2023 Python Maint - 0.21.0-2 - Rebuilt for Python 3.12 * Sat Jun 03 2023 Orion Poplawski - 0.21.0-1 - Update to 0.21.0 - Use SPDX License - Enable tests - skivi was removed in 0.20.0, so dropped the scikit-image-tools package * Sat Jun 03 2023 Orion Poplawski - 0.19.3-1 - Update to 0.19.3 * Fri Jan 20 2023 Fedora Release Engineering - 0.19.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Aug 03 2022 Sergio Pascual - 0.19.3-1 - New upstream version (0.19.3) * Fri Jul 22 2022 Fedora Release Engineering - 0.19.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Python Maint - 0.19.2-2 - Rebuilt for Python 3.11 * Wed Feb 23 2022 Sergio Pascual - 0.19.2-1 - New upstream version (0.19.2) - New BuildReq: pythran * Fri Jan 21 2022 Fedora Release Engineering - 0.18.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Oct 07 2021 Sergio Pascual - 0.18.3-1 - New upstream version (0.18.3) * Mon Aug 23 2021 Sergio Pascual - 0.18.2-1 - New upstream version (0.18.2) * Fri Jul 23 2021 Fedora Release Engineering - 0.18.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.18.1-4 - Rebuilt for Python 3.10 * Thu Feb 11 2021 Sergio Pascual - 0.18.1-3 - Update testing - Start using automatic requires * Wed Jan 27 2021 Fedora Release Engineering - 0.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 11 2021 Sergio Pascual - 0.18.1-1 - New upstream version (0.18.1) * Thu Dec 17 2020 Sergio Pascual - 0.18.0-1 - New upstream version (0.18.0) * Thu Aug 27 2020 Sergio Pascual - 0.17.2-1 - New upstream version (0.17.2) * Wed Jul 29 2020 Fedora Release Engineering - 0.16.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.16.2-4 - Rebuilt for Python 3.9 * Thu Feb 13 2020 Ankur Sinha - 0.16.2-3 - Update dep on python3-networkx (no longer provides python3-networkx-core in F32+) * Thu Jan 30 2020 Fedora Release Engineering - 0.16.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 22 2019 Fedora Release Monitoring - 0.16.2-1 - Update to 0.16.2 (#1763989) + * Tue Oct 15 2019 Orion Poplawski - 0.16.1-1 - Update to 0.16.1 - Re-generate Cython source * Thu Sep 5 2019 Zbigniew Jędrzejewski-Szmek - 0.15.0-1 - Rebuilt with fixed python-pywt * Sat Aug 31 2019 Sergio Pascual - 0.15.0-1 - New upstream version (0.15.0) * Mon Aug 19 2019 Miro Hrončok - 0.14.2-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.14.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun May 5 2019 Orion Poplawski - 0.14.2-1 - Update to 0.14.2 to fix numpy 1.16 compatibility (bugz#1706125) - Add requires on dask and maplotlib-qt5 (bugz#1691823) * Mon Mar 04 2019 Christian Dersch - 0.14.0-7 - Disable automatic dependency generators until we fixed (optional) deps * Sat Feb 02 2019 Fedora Release Engineering - 0.14.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Oct 01 2018 Miro Hrončok - 0.14.0-5 - Remove Python 2 subpackage * Tue Jul 17 2018 Christian Dersch - 0.14.0-4 - BuildRequires: gcc * Sat Jul 14 2018 Fedora Release Engineering - 0.14.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.14.0-2 - Rebuilt for Python 3.7 * Mon Jun 11 2018 Sergio Pascual - 0.14.0-1 - New upstream version (0.14.0) * Wed Feb 28 2018 Iryna Shcherbina - 0.13.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.13.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.13.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.13.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 01 2017 Sergio Pascual - 0.13.0-2 - Add dependency on pywt (PyWavelets) * Mon May 15 2017 Sergio Pascual - 0.13.0-1 - New upstream version (0.13.0) * Sat Feb 11 2017 Fedora Release Engineering - 0.12.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.12.3-6 - Rebuild for Python 3.6 * Tue Aug 16 2016 Orion Poplawski - 0.12.3-5 - Remove Cython build requirement - Only build python3 for Fedora * Tue Jul 19 2016 Fedora Release Engineering - 0.12.3-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Apr 6 2016 Orion Poplawski - 0.12.3-3 - Run tests, but do not abort build on failure - Drop py3dir, use new python macros * Tue Mar 29 2016 Sergio Pascual - 0.12.3-2 - New upstream source - Disable tests for the moment * Fri Feb 19 2016 Sergio Pascual - 0.11.3-8 - skivi uses python3 (bz #1309240) - Provides "versioned" python2-scikit-image * Thu Feb 04 2016 Fedora Release Engineering - 0.11.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jan 05 2016 Sergio Pascual - 0.11.3-6 - Tarball without problematic copyrigth images (fixes bz #1295193) * Mon Nov 23 2015 Sergio Pascual - 0.11.3-5 - Provides python2-scikit-image * Tue Nov 10 2015 Fedora Release Engineering - 0.11.3-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.11.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 21 2015 Sergio Pascual - 0.11.3-2 - Disable tests - New upstream version (0.11.3) * Thu Mar 12 2015 Sergio Pascual - 0.11.2-1 - New upstream version (0.11.2) * Wed Feb 04 2015 Sergio Pascual - 0.11.0-1 - New upstream version * Tue Jul 29 2014 Sergio Pascual - 0.10.1-2 - Remove __provides_exclude_from, is not needed in f20+ * Wed Jul 09 2014 Sergio Pascual - 0.10.1-1 - New upstream 0.10.1 * Thu Apr 18 2013 Sergio Pascual - 0.9.3-1 - Initial spec file