forked from pool/python-nibabel
Accepting request 1147056 from home:bnavigator:branches:devel:languages:python:numeric
- 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. OBS-URL: https://build.opensuse.org/request/show/1147056 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-nibabel?expand=0&rev=20
This commit is contained in:
parent
c84aa4e37b
commit
a4851ee354
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:45c49b5349351b45f6c045a91aa02b4f0d367686ff3284632ef95ac65b930786
|
||||
size 4804200
|
3
nibabel-5.2.0.tar.gz
Normal file
3
nibabel-5.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3df8f1ab981d1bd92f4331d565528d126ab9717fdbd4cfe68f43fcd1c2bf3f52
|
||||
size 4501846
|
@ -1,3 +1,80 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 15 16:13:37 UTC 2024 - Ben Greiner <code@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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 6 14:07:18 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@ -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,44 +68,36 @@ very limited support for DICOM.
|
||||
|
||||
%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
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user