From 497c2ee8986eb19c59a9c700523c0d958d55e8e8 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 8 Nov 2024 13:57:26 -0500 Subject: [PATCH 1/4] add convert_unknown_ndarray_subclasses default change to what's new --- docs/asdf/whats_new.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/asdf/whats_new.rst b/docs/asdf/whats_new.rst index 07e93f7b4..332841cf7 100644 --- a/docs/asdf/whats_new.rst +++ b/docs/asdf/whats_new.rst @@ -119,6 +119,22 @@ returned as lists. With asdf 4.0.0 this "implicit conversion" is no longer performed which allows extensions to implement converters for ``namedtuple`` instances. +.. _whats_new_4.0.0_unknown_ndarray_subclasses: + +Unknown NDArray Subclasses +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +In asdf 3.0.0 a config attribute was added +`asdf.config.AsdfConfig.convert_unknown_ndarray_subclasses` that +was enabled by default (to retain the behavior of the removed legacy +extension that handled ndarrays). + +In asdf 4.0.0 this setting is disabled by default and issues a deprecation +warning when enabled. In an upcoming version of asdf this setting will +be removed. + +See :ref:`convert_unknown_ndarray_subclasses` for more details. + 3.0.0 ===== From 2ce39ff2a6fe9670b122325331b32b76a4545ea3 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 18 Nov 2024 12:24:48 -0500 Subject: [PATCH 2/4] don't call towncrier for docs built from tags --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7c90a22e9..6ac358c21 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -14,7 +14,7 @@ build: pre_install: - git update-index --assume-unchanged docs/rtd_environment.yaml docs/conf.py post_install: - - towncrier build --keep + - git describe --exact-match || towncrier build --keep conda: environment: docs/rtd_environment.yaml From c5963f9823884a50a723ea5a8b289467273e8fcc Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 18 Nov 2024 12:39:29 -0500 Subject: [PATCH 3/4] update changlelog for 4.0.0 --- CHANGES.rst | 32 ++++++++++++++++++++++++++++++++ changes/1744.feature.rst | 1 - changes/1800.removal.rst | 1 - changes/1801.general.rst | 1 - changes/1852.removal.rst | 1 - changes/1853.feature.rst | 1 - changes/1858.removal.rst | 1 - 7 files changed, 32 insertions(+), 6 deletions(-) delete mode 100644 changes/1744.feature.rst delete mode 100644 changes/1800.removal.rst delete mode 100644 changes/1801.general.rst delete mode 100644 changes/1852.removal.rst delete mode 100644 changes/1853.feature.rst delete mode 100644 changes/1858.removal.rst diff --git a/CHANGES.rst b/CHANGES.rst index 09f72ba64..82d52ccc4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,35 @@ +4.0.0 (2024-11-18) +================== + +Feature +------- + +- Switch default ASDF standard to 1.6.0. (`#1744 + `_) +- Raise RuntimeError if a Convert subclass supports multiple tags but doesn't + implement select_tag. (`#1853 + `_) + + +General +------- + +- Set ``memmap=False`` to default for ``asdf.open`` and ``AsdfFile.__init__``. + (`#1801 `_) + + +Removal +------- + +- remove ``copy_arrays`` (replaced by ``memmap``) (`#1800 + `_) +- Remove deprecated API. See docs for full details. (`#1852 + `_) +- Switch default convert_unknown_ndarray_subclasses to False and issue + deprecation warning if it is enabled. (`#1858 + `_) + + 3.5.0 (2024-10-02) ================== diff --git a/changes/1744.feature.rst b/changes/1744.feature.rst deleted file mode 100644 index abaa28618..000000000 --- a/changes/1744.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Switch default ASDF standard to 1.6.0. diff --git a/changes/1800.removal.rst b/changes/1800.removal.rst deleted file mode 100644 index 342b7822c..000000000 --- a/changes/1800.removal.rst +++ /dev/null @@ -1 +0,0 @@ -remove ``copy_arrays`` (replaced by ``memmap``) diff --git a/changes/1801.general.rst b/changes/1801.general.rst deleted file mode 100644 index 36c8bc4f7..000000000 --- a/changes/1801.general.rst +++ /dev/null @@ -1 +0,0 @@ -Set ``memmap=False`` to default for ``asdf.open`` and ``AsdfFile.__init__``. diff --git a/changes/1852.removal.rst b/changes/1852.removal.rst deleted file mode 100644 index 70b38712d..000000000 --- a/changes/1852.removal.rst +++ /dev/null @@ -1 +0,0 @@ -Remove deprecated API. See docs for full details. diff --git a/changes/1853.feature.rst b/changes/1853.feature.rst deleted file mode 100644 index f5817ef2c..000000000 --- a/changes/1853.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Raise RuntimeError if a Convert subclass supports multiple tags but doesn't implement select_tag. diff --git a/changes/1858.removal.rst b/changes/1858.removal.rst deleted file mode 100644 index 03c2f3787..000000000 --- a/changes/1858.removal.rst +++ /dev/null @@ -1 +0,0 @@ -Switch default convert_unknown_ndarray_subclasses to False and issue deprecation warning if it is enabled. From d081c54d6dc3805ea4d2b1960696f44c25264053 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 19 Nov 2024 09:28:47 -0500 Subject: [PATCH 4/4] update 4.0.0 release date --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 82d52ccc4..653728931 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,4 +1,4 @@ -4.0.0 (2024-11-18) +4.0.0 (2024-11-19) ================== Feature