From d0e026c04b60039ee847d89a557cc5af05281167 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 3 Jan 2024 11:15:37 -0500 Subject: [PATCH] Closes #14092: Remove backward compatibility for importing extras.plugins --- netbox/extras/plugins/__init__.py | 9 --------- netbox/extras/plugins/navigation.py | 7 ------- netbox/extras/plugins/registration.py | 7 ------- netbox/extras/plugins/templates.py | 7 ------- netbox/extras/plugins/urls.py | 7 ------- netbox/extras/plugins/utils.py | 7 ------- netbox/extras/plugins/views.py | 7 ------- 7 files changed, 51 deletions(-) delete mode 100644 netbox/extras/plugins/__init__.py delete mode 100644 netbox/extras/plugins/navigation.py delete mode 100644 netbox/extras/plugins/registration.py delete mode 100644 netbox/extras/plugins/templates.py delete mode 100644 netbox/extras/plugins/urls.py delete mode 100644 netbox/extras/plugins/utils.py delete mode 100644 netbox/extras/plugins/views.py diff --git a/netbox/extras/plugins/__init__.py b/netbox/extras/plugins/__init__.py deleted file mode 100644 index 31ea1ce09e..0000000000 --- a/netbox/extras/plugins/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -from .navigation import * -from .registration import * -from .templates import * -from .utils import * -from netbox.plugins import PluginConfig - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/navigation.py b/netbox/extras/plugins/navigation.py deleted file mode 100644 index 08d1baa542..0000000000 --- a/netbox/extras/plugins/navigation.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -from netbox.plugins.navigation import * - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/registration.py b/netbox/extras/plugins/registration.py deleted file mode 100644 index 8d2d85573a..0000000000 --- a/netbox/extras/plugins/registration.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -from netbox.plugins.registration import * - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/templates.py b/netbox/extras/plugins/templates.py deleted file mode 100644 index 0e09f33d29..0000000000 --- a/netbox/extras/plugins/templates.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -from netbox.plugins.templates import * - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/urls.py b/netbox/extras/plugins/urls.py deleted file mode 100644 index 8b24e8fd24..0000000000 --- a/netbox/extras/plugins/urls.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -from netbox.plugins.urls import * - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/utils.py b/netbox/extras/plugins/utils.py deleted file mode 100644 index 15ae018d1f..0000000000 --- a/netbox/extras/plugins/utils.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -from netbox.plugins.utils import * - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning) diff --git a/netbox/extras/plugins/views.py b/netbox/extras/plugins/views.py deleted file mode 100644 index 505742e6b9..0000000000 --- a/netbox/extras/plugins/views.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -from netbox.plugins.views import * - - -# TODO: Remove in v4.0 -warnings.warn(f"{__name__} is deprecated. Import from netbox.plugins instead.", DeprecationWarning)