Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nibabel for openSUSE:Factory checked in at 2024-02-18 20:23:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nibabel (Old) and /work/SRC/openSUSE:Factory/.python-nibabel.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nibabel" Sun Feb 18 20:23:20 2024 rev:10 rq:1147160 version:5.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nibabel/python-nibabel.changes 2022-10-11 18:05:24.754071495 +0200 +++ /work/SRC/openSUSE:Factory/.python-nibabel.new.1815/python-nibabel.changes 2024-02-18 20:23:36.754969931 +0100 @@ -1,0 +2,77 @@ +Thu Feb 15 16:13:37 UTC 2024 - Ben Greiner <c...@bnavigator.de> + +- Update to 5.2.0 + ## New features + * Add generic Pointset and regularly spaced Grid data structures + in preparation for coordinate transformation and resampling + (#1251) (CM, reviewed by Oscar Esteban) + ## Enhancements + * Add copy method to ArrayProxy (#1255) (CM, reviewed by Paul + McCarthy) + * Permit to_xml to pass keyword arguments to tostring (#1258) + (CM) + * Allow user expansion (e.g., ~/...) in strings passed to + functions that accept paths (#1260) (Reinder Vos de Wael, + reviewed by CM) + * Expand CIFTI-2 brain structures to permit synonyms (#1256) (CM, + reviewed by Mathias Goncalves) + * Annotate SpatialImage as accepting affine=None argument (#1253) + (Blake Dewey, reviewed by CM) + * Warn on invalid MINC2 spacing declarations, treat as missing + (#1237) (Peter Suter, reviewed by CM) + * Refactor find_private_section for improved readability and + maintainability (#1228) (MB, reviewed by CM) + ## API changes and deprecations + * The nibabel.pydicom_compat module is deprecated and will be + removed in NiBabel 7.0. (#1280) + * The int_to_float and as_int functions are no longer needed to + work around NumPy deficiencies and have been deprecated (#1272) + (CM, reviewed by EL) +- Release 5.1 + ## Enhancements + * Make imagestats available with import nibabel (pr/1208) (Fabian + Perez, reviewed by CM) + * Use symmetric threshold for identifying unit quaternions on + qform calculations (pr/1182) (CM, reviewed by MB) + * Type annotations for nibabel.loadsave (pr/1213) and + nibabel.spatialimages.SpatialImage APIs (pr/1179), + nibabel.deprecated, nibabel.deprecator, nibabel.onetime and + nibabel.optpkg modules (pr/1188), nibabel.volumeutils + (pr/1189), nibabel.filename_parser and nibabel.openers + (pr/1197) (CM, reviewed by Zvi Baratz) +- Release 5.0 + ## New features + * SerializableImage now has to_stream() and from_stream() methods + to read/write streams implementing the io.IOBase interface. A + from_url() method enables loading images from URLs. (pr/1129) + (CM, reviewed by MB) + * TrkFile supports TRKv3, an undocumented but generally + compatible variant of TRKv2. (pr/1125) (CM) + ## Enhancements + * Support multiline header fields in TCKFile (pr/1175) (CM, + reviewed by Matt Cieslak) + * Make layout order an initialization parameter of ArrayProxy + (pr/1131) (CM, reviewed by MB) + * Initial support for type annotations. (pr/1115, pr/1178) (CM, + reviewed by Zvi Baratz) + ## API changes and deprecations + * Passing an int64 array to Nifti1Image without a header or dtype + argument will raise a ValueError. (pr/1173) (CM) + * tmpdirs.TemporaryDirectory is deprecated in favor of + tempfile.TemporaryDirectory. (pr/1172) (CM, reviewed by Zvi + Baratz) + * The nisext package is deprecated and will be removed in NiBabel + 6.0. (pr/1170) (CM, reviewed by MB) + * Drop support for Python 3.7, Numpy < 1.19 (pr/1177) (CM) + * The following deprecated functions and methods will now raise + ExpiredDeprecationErrors + - nibabel.loadsave.read_img_data + - nibabel.dataobj_images.DataobjImage.get_data + - nibabel.loadsave.guessed_image_type + - nibabel.onetime.setattr_on_read + - nibabel.orientations.flip_axis + * Modules, classes and functions that expired at 4.0 were fully + removed. ExpiredDeprecationError will now be + AttributeError. + +------------------------------------------------------------------- Old: ---- nibabel-4.0.2.tar.gz New: ---- nibabel-5.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nibabel.spec ++++++ --- /var/tmp/diff_new_pack.GcCsrV/_old 2024-02-18 20:23:37.334990862 +0100 +++ /var/tmp/diff_new_pack.GcCsrV/_new 2024-02-18 20:23:37.338991007 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-nibabel # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,35 +16,45 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 %define binaries nib-conform nib-convert nib-dicomfs nib-diff nib-ls nib-nifti-dx nib-roi nib-stats nib-tck2trk nib-trk2tck parrec2nii Name: python-nibabel -Version: 4.0.2 +Version: 5.2.0 Release: 0 Summary: Tool to access multiple neuroimaging data formats License: MIT URL: https://nipy.org/nibabel +# SourceRepository: https://github.com/nipy/nibabel Source: https://files.pythonhosted.org/packages/source/n/nibabel/nibabel-%{version}.tar.gz -BuildRequires: %{python_module setuptools >= 30.3.0} -BuildRequires: %{pythons} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module hatch-vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numpy >= 1.17 +Requires: python-numpy >= 1.20 +Requires: python-packaging => 17 +Requires: (python-importlib-resources >= 1.3 if python-base < 3.9) Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives Recommends: python-Pillow -Recommends: python-dicom >= 0.9.9 Recommends: python-h5py +Recommends: python-pydicom >= 1 Recommends: python-scipy BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Pillow} BuildRequires: %{python_module h5py} -BuildRequires: %{python_module numpy >= 1.17} +BuildRequires: %{python_module importlib-resources >= 1.3 if %python-base < 3.9} +BuildRequires: %{python_module numpy >= 1.20} +BuildRequires: %{python_module packaging >= 17} +BuildRequires: %{python_module pydicom >= 1} +BuildRequires: %{python_module pytest-doctestplus} +BuildRequires: %{python_module pytest-httpserver} +BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} +BuildRequires: %{pythons} +BuildRequires: git-core # /SECTION %python_subpackages @@ -58,43 +68,35 @@ %prep %setup -q -n nibabel-%{version} +find nibabel -name .gitignore -delete +sed -i '1{/^!#/d}' nibabel/cmdline/*.py +chmod a-x nibabel/cmdline/*.py +chmod a-x nibabel/tests/data/umass_anonymized.PAR nibabel/gifti/tests/data/gzipbase64.gii nibabel/nicom/dicomwrappers.py nibabel/nicom/tests/test_dicomwrappers.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install for b in %{binaries}; do %python_clone -a %{buildroot}%{_bindir}/$b done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +%pytest -n auto -rsfE %post -for b in %{binaries}; do - %python_install_alternative $b -done +%{expand:%(for b in %{binaries}; do echo "%%python_install_alternative $b"; done)} %postun -for b in %{binaries}; do - %python_uninstall_alternative $b -done +%{expand:%(for b in %{binaries}; do echo "%%python_uninstall_alternative $b"; done)} %files %{python_files} %doc AUTHOR Changelog README.rst %license COPYING -%python_alternative %{_bindir}/nib-conform -%python_alternative %{_bindir}/nib-convert -%python_alternative %{_bindir}/nib-dicomfs -%python_alternative %{_bindir}/nib-diff -%python_alternative %{_bindir}/nib-ls -%python_alternative %{_bindir}/nib-nifti-dx -%python_alternative %{_bindir}/nib-roi -%python_alternative %{_bindir}/nib-stats -%python_alternative %{_bindir}/nib-tck2trk -%python_alternative %{_bindir}/nib-trk2tck -%python_alternative %{_bindir}/parrec2nii -%{python_sitelib}/* +%{expand:%(for b in %{binaries}; do echo "%%python_alternative %%{_bindir}/$b"; done)} +%{python_sitelib}/nibabel +%{python_sitelib}/nisext +%{python_sitelib}/nibabel-%{version}.dist-info ++++++ nibabel-4.0.2.tar.gz -> nibabel-5.2.0.tar.gz ++++++ ++++ 56488 lines of diff (skipped)