kopia lustrzana https://github.com/Yakifo/amqtt
remove hbmqtt files
rodzic
5315e2d865
commit
8c8c28d47f
|
@ -1,37 +0,0 @@
|
||||||
import pathlib
|
|
||||||
|
|
||||||
|
|
||||||
template = """import warnings
|
|
||||||
{extra}
|
|
||||||
from {module_name} import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
src = pathlib.Path("amqtt")
|
|
||||||
dst = pathlib.Path("hbmqtt")
|
|
||||||
|
|
||||||
for py_file in src.glob("**/*.py"):
|
|
||||||
|
|
||||||
file_path = py_file.parent.relative_to(src)
|
|
||||||
dst_file = dst / file_path / py_file.name
|
|
||||||
module_name = "amqtt"
|
|
||||||
sub_modue = str(file_path).replace("/", ".").strip(".")
|
|
||||||
if sub_modue:
|
|
||||||
module_name += "." + sub_modue
|
|
||||||
|
|
||||||
if py_file.name != "__init__.py":
|
|
||||||
module_name += "." + py_file.name[:-3]
|
|
||||||
|
|
||||||
extra = ""
|
|
||||||
if str(file_path) == "." and py_file.name == "__init__.py":
|
|
||||||
extra = "\nfrom amqtt import __version__"
|
|
||||||
|
|
||||||
dst_file.parent.mkdir(parents=True, exist_ok=True)
|
|
||||||
dst_file.write_text(template.format(module_name=module_name, extra=extra))
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
|
@ -1,6 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt import __version__
|
|
||||||
from amqtt import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.adapters import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.broker import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.client import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.codecs import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.errors import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.connack import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.connect import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.constants import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.disconnect import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.packet import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.pingreq import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.pingresp import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.protocol import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.protocol.broker_handler import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.protocol.client_handler import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.protocol.handler import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.puback import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.pubcomp import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.publish import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.pubrec import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.pubrel import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.suback import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.subscribe import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.unsuback import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.mqtt.unsubscribe import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.authentication import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.logging import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.manager import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.persistence import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.sys import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.sys.broker import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.plugins.topic_checking import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.scripts import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.scripts.broker_script import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.scripts.pub_script import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.scripts.sub_script import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.session import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.utils import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -1,5 +0,0 @@
|
||||||
import warnings
|
|
||||||
|
|
||||||
from amqtt.version import *
|
|
||||||
|
|
||||||
warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
|
|
|
@ -16,7 +16,6 @@ classifiers = [
|
||||||
]
|
]
|
||||||
packages = [
|
packages = [
|
||||||
{ include = "amqtt" },
|
{ include = "amqtt" },
|
||||||
{ include = "hbmqtt" },
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
|
|
Ładowanie…
Reference in New Issue