Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/releases/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ Next release (in development)
* Add support for Python 3.14 and drop support for Python 3.11,
following `SPEC-0 <https://scientific-python.org/specs/spec-0000/>`_.
(:pr:`201`).
* Drop all previously deprecated functionality:
support for shapely versions older than 2.0,
support for cartopy versions older than 0.23.0,
the ``emsarray.Format`` and ``emsarray.get_file_format()`` aliases,
the renamed Convention methods ``_get_data_array()``,
``get_time_name()``, ``get_depth_name()``, ``get_all_depth_names()``,
``unravel_index()``, ``make_linear()``, ``make_patch_collection()``,
``spatial_index()``, ``get_grid_kind_and_size()``,
and ``NonIntersectingPoints.indices``
(:pr:`202`).
19 changes: 0 additions & 19 deletions src/emsarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
emsarray - xarray utilities for various non-CF grid data conventions
"""
import importlib.metadata
import warnings
from typing import Any

from . import tutorial
from .accessors import ems_accessor
Expand All @@ -16,20 +14,3 @@
"ems_accessor",
"Convention", "get_dataset_convention", "open_dataset",
]


def __getattr__(name: str) -> Any:
old_new = {
'Format': ('Convention', 'emsarray.formats.Format'),
'get_file_format': ('get_dataset_convention', 'emsarray.formats.get_file_format'),
}
if name in old_new:
new, old_path = old_new[name]
warnings.warn(
f"emsarray.{name} has been renamed to emsarray.{new}",
category=DeprecationWarning,
stacklevel=2)
old_module, old_name = old_path.rsplit('.', 1)
return getattr(importlib.import_module(old_module), old_name)

raise AttributeError(f"{name} is not defined")
Empty file removed src/emsarray/compat/__init__.py
Empty file.
65 changes: 0 additions & 65 deletions src/emsarray/compat/shapely.py

This file was deleted.

Loading
Loading