From f2c52f5a1bceb3155c4907d76d60c9ada2f58aa8 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Wed, 25 Oct 2023 08:52:36 +0200 Subject: [PATCH] Prepare release 23.10.0 --- docs/release-notes.rst | 8 +------- src/scitacean/_internal/pydantic_compat.py | 2 +- src/scitacean/dataset.py | 10 +++++----- src/scitacean/file.py | 2 +- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 191b1837..38a18c6c 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -32,12 +32,9 @@ Release notes Stability, Maintainability, and Testing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -vversion +v23.10.0 -------- -Security -~~~~~~~~ - Features ~~~~~~~~ @@ -59,9 +56,6 @@ Bugfixes * Preserve ``meta`` in ``Dataset.replace`` and allow replacing it. This also affects ``Dataset.replace_files`` and ``Client.download_files``. -Documentation -~~~~~~~~~~~~~ - Deprecations ~~~~~~~~~~~~ diff --git a/src/scitacean/_internal/pydantic_compat.py b/src/scitacean/_internal/pydantic_compat.py index b040e431..a793a99d 100644 --- a/src/scitacean/_internal/pydantic_compat.py +++ b/src/scitacean/_internal/pydantic_compat.py @@ -13,7 +13,7 @@ def is_pydantic_v1() -> bool: warnings.warn( "Support for Pydantic v1 is deprecated in Scitacean" - "RELEASE_PLACEHOLDER and will be removed in Scitacean v23.12.0." + "23.10.0 and will be removed in Scitacean v23.12.0." "If you cannot update your Pydantic version, please comment in this issue:" " https://github.com/SciCatProject/scitacean/issues/158", VisibleDeprecationWarning, diff --git a/src/scitacean/dataset.py b/src/scitacean/dataset.py index 078fe162..e2a84452 100644 --- a/src/scitacean/dataset.py +++ b/src/scitacean/dataset.py @@ -520,7 +520,7 @@ def keys(self) -> Iterable[str]: and other fields that are not ``None``. - .. versionadded:: RELEASE_PLACEHOLDER + .. versionadded:: 23.10.0 """ from itertools import chain @@ -543,7 +543,7 @@ def values(self) -> Iterable[Any]: and other fields that are not ``None``. - .. versionadded:: RELEASE_PLACEHOLDER + .. versionadded:: 23.10.0 """ return (getattr(self, field_name) for field_name in self.keys()) @@ -558,7 +558,7 @@ def items(self) -> Iterable[tuple[str, Any]]: and other fields that are not ``None``. - .. versionadded:: RELEASE_PLACEHOLDER + .. versionadded:: 23.10.0 """ return ((key, getattr(self, key)) for key in self.keys()) @@ -601,7 +601,7 @@ def __getitem__(self, field_name: str) -> Any: :class:`KeyError` if ``field_name`` does not mach any names of fields. - .. versionadded:: RELEASE_PLACEHOLDER + .. versionadded:: 23.10.0 """ self._validate_field_name(field_name) return getattr(self, field_name) @@ -625,7 +625,7 @@ def __setitem__(self, field_name: str, field_value: Any) -> None: :class:`KeyError` if ``field_name`` does not mach any names of fields. - .. versionadded:: RELEASE_PLACEHOLDER + .. versionadded:: 23.10.0 """ self._validate_field_name(field_name) setattr(self, field_name, field_value) diff --git a/src/scitacean/file.py b/src/scitacean/file.py index 0817ce58..628a35e4 100644 --- a/src/scitacean/file.py +++ b/src/scitacean/file.py @@ -166,7 +166,7 @@ def from_remote( A new file object. - .. versionadded:: RELEASE_PLACEHOLDER + .. versionadded:: 23.10.0 """ if checksum is not None and checksum_algorithm is None: raise TypeError(