From da9133a0499292a77d648db4528c5bb93762209f Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 30 Mar 2023 08:40:50 -0400 Subject: [PATCH 1/6] MNT: Update mailmap --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index feabaee746..80c46f385e 100644 --- a/.mailmap +++ b/.mailmap @@ -30,6 +30,7 @@ Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Eric Larson Eric89GXL Eric Larson larsoner +Fabian Perez Fernando Pérez-García Fernando Félix C. Morency Felix C. Morency Félix C. Morency Félix C. Morency From 7d2746fde8194b39102b42838bc5ab9574094806 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 30 Mar 2023 08:45:38 -0400 Subject: [PATCH 2/6] MNT: Set minimum importlib_resources, update requirements files --- min-requirements.txt | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/min-requirements.txt b/min-requirements.txt index 305f16dcbd..e30bc40a2a 100644 --- a/min-requirements.txt +++ b/min-requirements.txt @@ -1,4 +1,4 @@ # Auto-generated by tools/update_requirements.py numpy ==1.19 packaging ==17 -setuptools +importlib_resources ==1.3; python_version < '3.9' diff --git a/pyproject.toml b/pyproject.toml index f944f8e685..1dbc13b43f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ requires-python = ">=3.8" dependencies = [ "numpy >=1.19", "packaging >=17", - "importlib_resources; python_version < '3.9'", + "importlib_resources >=1.3; python_version < '3.9'", ] classifiers = [ "Development Status :: 5 - Production/Stable", diff --git a/requirements.txt b/requirements.txt index 1d1e434609..a74639cf81 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ # Auto-generated by tools/update_requirements.py numpy >=1.19 packaging >=17 -setuptools +importlib_resources >=1.3; python_version < '3.9' From c483d98b5d2b14a2ee526c2d5dc6b6961820b4b1 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 30 Mar 2023 08:47:01 -0400 Subject: [PATCH 3/6] DOC: Update Zenodo from git history --- .zenodo.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.zenodo.json b/.zenodo.json index 75dea73eed..a436bfd31b 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -73,6 +73,10 @@ "name": "Lee, Gregory R.", "orcid": "0000-0001-8895-2740" }, + { + "name": "Baratz, Zvi", + "orcid": "0000-0001-7159-1387" + }, { "name": "Wang, Hao-Ting", "orcid": "0000-0003-4078-2038" @@ -125,10 +129,6 @@ "name": "Goncalves, Mathias", "orcid": "0000-0002-7252-7771" }, - { - "name": "Baratz, Zvi", - "orcid": "0000-0001-7159-1387" - }, { "affiliation": "Montreal Neurological Institute and Hospital", "name": "Markello, Ross", @@ -229,6 +229,9 @@ { "name": "Amirbekian, Bago" }, + { + "name": "Christian, Horea" + }, { "name": "Nimmo-Smith, Ian" }, @@ -274,6 +277,9 @@ { "name": "Fauber, Bennet" }, + { + "name": "Perez, Fabian" + }, { "name": "Roberts, Jacob" }, From 9e1d82230a34ea1079ab7edb3ec71624029862f7 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 31 Mar 2023 16:48:25 -0400 Subject: [PATCH 4/6] DOC: Update contributor list --- doc/source/index.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/index.rst b/doc/source/index.rst index 701de01362..48db1d31a4 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -123,6 +123,8 @@ contributed code and discussion (in rough order of appearance): * Andrew Van * Jérôme Dockès * Jacob Roberts +* Horea Christian +* Fabian Perez License reprise =============== From 82083e9e8a986f8c94319452e6eb8c230683590a Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 31 Mar 2023 16:53:08 -0400 Subject: [PATCH 5/6] DOC: Drop setuptools from listed dependencies, add importlib-resources --- doc/source/installation.rst | 2 +- doc/source/links_names.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 65a35ea333..b896d2dfc1 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -86,7 +86,7 @@ Requirements * Python_ 3.8 or greater * NumPy_ 1.19 or greater * Packaging_ 17.0 or greater -* Setuptools_ +* importlib-resources_ 1.3 or greater (or Python 3.9+) * SciPy_ (optional, for full SPM-ANALYZE support) * h5py_ (optional, for MINC2 support) * PyDICOM_ 1.0.0 or greater (optional, for DICOM support) diff --git a/doc/source/links_names.txt b/doc/source/links_names.txt index 7fbb27b12e..1ab1242c08 100644 --- a/doc/source/links_names.txt +++ b/doc/source/links_names.txt @@ -114,6 +114,7 @@ .. _python imaging library: https://pypi.python.org/pypi/Pillow .. _h5py: https://www.h5py.org/ .. _packaging: https://packaging.pypa.io +.. _importlib-resources: https://importlib-resources.readthedocs.io/ .. Python imaging projects .. _PyMVPA: http://www.pymvpa.org From 39b15a91791613a96389ef427eb6abf2d859af51 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Mon, 3 Apr 2023 08:04:27 -0400 Subject: [PATCH 6/6] DOC: 5.1.0 release notes --- Changelog | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Changelog b/Changelog index 69e55d1a9c..e5bbac91ae 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,48 @@ Eric Larson (EL), Demian Wassermann, Stephan Gerhard and Ross Markello (RM). References like "pr/298" refer to github pull request numbers. +5.1.0 (Monday 3 April 2023) +=========================== + +New feature release in the 5.1.x series. + +Enhancements +------------ +* Make :mod:`nibabel.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 :mod:`~nibabel.loadsave` (pr/1213) and + :class:`~nibabel.spatialimages.SpatialImage` APIs (pr/1179), + :mod:`~nibabel.deprecated`, :mod:`~nibabel.deprecator`, + :mod:`~nibabel.onetime` and :mod:`~nibabel.optpkg` modules (pr/1188), + :mod:`~nibabel.volumeutils` (pr/1189), :mod:`~nibabel.filename_parser` and + :mod:`~nibabel.openers` (pr/1197) (CM, reviewed by Zvi Baratz) + +Bug fixes +--------- +* Require explicit overrides to write GIFTI files that contain data arrays + with data types not permitted by the GIFTI standard (pr/1199) (CM, reviewed + by Alexis Thual) + +Maintenance +----------- +* Move compression detection logic into a private ``nibabel._compression`` + module, resolving unexpected errors from pyzstd. (pr/1212) (CM) +* Improved consistency of docstring formatting (pr/1200) (Zvi Baratz, reviewed + by CM) +* Modernized README text (pr/1195) (Zvi Baratz, reviewed by CM) +* Updated README badges to include package distributions (pr/1192) (Horea + Christian, reviewed by CM) +* Removed all dependencies on distutils and setuptools (pr/1190) (CM, + reviewed by Zvi Baratz) +* Add a ``_version.pyi`` stub to allow mypy_ to run without building nibabel + (pr/1210) (CM) + + +.. _mypy: https://mypy.readthedocs.io/ + + 5.0.1 (Sunday 12 February 2023) ===============================