diff --git a/src/python_qt_binding/__init__.py b/src/python_qt_binding/__init__.py index 1e209de..e32cfdc 100644 --- a/src/python_qt_binding/__init__.py +++ b/src/python_qt_binding/__init__.py @@ -51,13 +51,20 @@ setattr(sys, 'SELECT_QT_BINDING', MY_BINDING_NAME) """ -import sys - from python_qt_binding.binding_helper import loadUi # noqa: F401 from python_qt_binding.binding_helper import QT_BINDING # noqa: F401 from python_qt_binding.binding_helper import QT_BINDING_MODULES from python_qt_binding.binding_helper import QT_BINDING_VERSION # noqa: F401 +import sys +import warnings + +_DEPRECATION_MESSAGE = ("Using python_qt_bindings package in python is deprecated." + "The package should be replaced by python3-qtpy system dep." + "python_qt_bindings will only cater generation scrips in the future.") +warnings.warn(_DEPRECATION_MESSAGE, + DeprecationWarning, 2) + # register binding modules as sub modules of this package (python_qt_binding) for easy importing for module_name, module in QT_BINDING_MODULES.items(): sys.modules[__name__ + '.' + module_name] = module