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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

### Breaking changes

- Finalized making the following modules private ``_cartopy_utils``, ``_colormaps``,
``_map_layout``, ``_mpl``, and ``_xrcompat``, started in v0.6.0 ([#234](https://github.com/mpytools/mplotutils/pull/234)).
- Removed support for python 3.11 ([#233](https://github.com/mpytools/mplotutils/pull/233)).


### Enhancements

### Bug fixes
Expand Down
26 changes: 0 additions & 26 deletions mplotutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
)
from mplotutils._colorbar import colorbar
from mplotutils._colormaps import from_levels_and_cmap
from mplotutils._deprecate import _module_renamed_warning_init
from mplotutils._hatch import hatch, hatch_map, hatch_map_global
from mplotutils._map_layout import set_map_layout
from mplotutils._mpl import _get_renderer
Expand Down Expand Up @@ -50,28 +49,3 @@
# Local copy or not installed with setuptools.
# Disable minimum version checks on downstream libraries.
__version__ = "999"


def __getattr__(attr):

m = (
"cartopy_utils",
"colormaps",
"map_layout",
"mpl",
)

import mplotutils

if attr in m:

_module_renamed_warning_init(attr)

# NOTE: could use importlib.import_module() but it registers the function in
# sys.modules such that the warning is only called once
# return importlib.import_module(f".{attr}", "mplotutils")

return getattr(mplotutils, f"_{attr}")

# required for ipython tab completion
raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
29 changes: 0 additions & 29 deletions mplotutils/_deprecate.py

This file was deleted.

8 changes: 0 additions & 8 deletions mplotutils/cartopy_utils.py

This file was deleted.

8 changes: 0 additions & 8 deletions mplotutils/colormaps.py

This file was deleted.

8 changes: 0 additions & 8 deletions mplotutils/map_layout.py

This file was deleted.

8 changes: 0 additions & 8 deletions mplotutils/mpl.py

This file was deleted.

61 changes: 0 additions & 61 deletions mplotutils/tests/test_rename_modules.py

This file was deleted.

Loading