Skip to content

Commit

Permalink
deprecate date, hexversion, strictversion
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Nov 25, 2022
1 parent e215851 commit 4c7ecad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/hdf5plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

import logging as _logging

from ._version import __date__ as date # noqa
from ._version import version, version_info, hexversion, strictversion # noqa
from . import _version
from ._version import version, version_info # noqa

from ._filters import FILTERS # noqa
from ._filters import BLOSC_ID, Blosc # noqa
Expand All @@ -52,4 +52,9 @@ def __getattr__(name):
"hdf5plugin.config is deprecated, use get_config().build_config"
)
return get_config().build_config
if name in ("date", "hexversion", "strictversion"):
_logging.getLogger(__name__).warning(
f"hdf5plugin.{name} is deprecated"
)
return getattr(_version, name)
raise AttributeError(f"module {__name__} has no attribute {name}")

0 comments on commit 4c7ecad

Please sign in to comment.