From 8ecc8e841d638a4c7250d656d48483fce17c9baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Kir=C3=A1ly?= Date: Thu, 5 Oct 2023 00:40:57 +0200 Subject: [PATCH] [MNT] 0.6.0 deprecation actions (#225) Scheduled 0.6.0 deprecation actions: * removes deprecated module `skbase.testing.utils._dependencies` * removes deprecated module `skbase.testing.utils.deep_equals` --- skbase/testing/utils/_dependencies.py | 15 --------------- skbase/testing/utils/deep_equals.py | 15 --------------- skbase/tests/conftest.py | 9 --------- 3 files changed, 39 deletions(-) delete mode 100644 skbase/testing/utils/_dependencies.py delete mode 100644 skbase/testing/utils/deep_equals.py diff --git a/skbase/testing/utils/_dependencies.py b/skbase/testing/utils/_dependencies.py deleted file mode 100644 index 3b044314..00000000 --- a/skbase/testing/utils/_dependencies.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -"""Deprecation forwarding of dependency checker utilities.""" - -# todo 0.6.0 - remove this forward - -from warnings import warn - -from skbase.utils.dependencies import _check_python_version, _check_soft_dependencies - -warn( - "_check_soft_dependencies, _check_python_versiontesting have moved to " - "skbase.utils.dependencies. The old location will be removed in skbase 0.6.0." -) - -__all__ = ["_check_python_version", "_check_soft_dependencies"] diff --git a/skbase/testing/utils/deep_equals.py b/skbase/testing/utils/deep_equals.py deleted file mode 100644 index 067a19a1..00000000 --- a/skbase/testing/utils/deep_equals.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -"""Deprecation forwarding of equality checker utilities.""" - -# todo 0.6.0 - remove this forward - -from warnings import warn - -from skbase.utils import deep_equals - -warn( - "deep_equals has moved to " - "skbase.utils.deep_equals. The old location will be removed in skbase 0.6.0." -) - -__all__ = ["deep_equals"] diff --git a/skbase/tests/conftest.py b/skbase/tests/conftest.py index ba9d296b..34d9a10d 100644 --- a/skbase/tests/conftest.py +++ b/skbase/tests/conftest.py @@ -35,8 +35,6 @@ "skbase.testing.test_all_objects", "skbase.testing.utils", "skbase.testing.utils._conditional_fixtures", - "skbase.testing.utils._dependencies", - "skbase.testing.utils.deep_equals", "skbase.testing.utils.inspect", "skbase.testing.utils.tests", "skbase.testing.utils.tests.test_deep_equals", @@ -66,7 +64,6 @@ "skbase.testing", "skbase.testing.test_all_objects", "skbase.testing.utils", - "skbase.testing.utils.deep_equals", "skbase.testing.utils.inspect", "skbase.testing.utils.tests", "skbase.testing.utils.tests.test_deep_equals", @@ -132,7 +129,6 @@ "skbase.testing.utils._conditional_fixtures": ( "create_conditional_fixtures_and_names", ), - "skbase.testing.utils.deep_equals": ("deep_equals",), "skbase.validate": ( "check_sequence_named_objects", "check_sequence", @@ -191,11 +187,6 @@ "_check_object_types", "_get_module_info", ), - "skbase.testing.utils._dependencies": ( - "_check_soft_dependencies", - "_check_python_version", - ), - "skbase.testing.utils.deep_equals": ("deep_equals",), "skbase.testing.utils.inspect": ("_get_args",), "skbase.utils._check": ("_is_scalar_nan",), "skbase.utils.dependencies": (