Skip to content

Commit

Permalink
Merge pull request #112 from modular-ml/bot_version_bump
Browse files Browse the repository at this point in the history
Automated version bump and other updates
  • Loading branch information
fabawi authored Oct 30, 2024
2 parents 545c6a4 + 47c7db2 commit 4d2beeb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[project]
name = "wrapyfi"
version = "0.4.46"
version = "0.4.50"
description = "Wrapyfi is a wrapper for simplifying Middleware communication"
readme = "README.md"
authors = [
Expand Down Expand Up @@ -55,6 +55,7 @@ numpy = [
]
websocket = [
"python-socketio>=5.0.4",
"python_socketio>=5.0.4",
]
mqtt = [
"paho-mqtt>=2.0",
Expand Down
7 changes: 6 additions & 1 deletion wrapyfi/connect/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
from pathlib import Path


from wrapyfi.utils import SingletonOptimized, dynamic_module_import, scan_external, WRAPYFI_MWARE_PATHS
from wrapyfi.utils import (
SingletonOptimized,
dynamic_module_import,
scan_external,
WRAPYFI_MWARE_PATHS,
)


class ListenerWatchDog(metaclass=SingletonOptimized):
Expand Down
7 changes: 6 additions & 1 deletion wrapyfi/connect/publishers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
from glob import glob
from pathlib import Path

from wrapyfi.utils import SingletonOptimized, dynamic_module_import, scan_external, WRAPYFI_MWARE_PATHS
from wrapyfi.utils import (
SingletonOptimized,
dynamic_module_import,
scan_external,
WRAPYFI_MWARE_PATHS,
)


class PublisherWatchDog(metaclass=SingletonOptimized):
Expand Down
5 changes: 3 additions & 2 deletions wrapyfi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ def scan_external(module_paths: str, component: str):

for mod_idx, extern_module in enumerate(extern_modules):
# Generate a unique name for each module
spec_name = f"wrapyfi.extern{mod_group_idx}.{component}.{extern_module.stem}"
spec_name = (
f"wrapyfi.extern{mod_group_idx}.{component}.{extern_module.stem}"
)

# Dynamically load and execute the module
spec = importlib.util.spec_from_file_location(spec_name, extern_module)
Expand Down Expand Up @@ -263,4 +265,3 @@ def scan():
]
dynamic_module_import(modules, globals())
scan_external(os.environ.get(WRAPYFI_PLUGIN_PATHS, ""), "plugins")

0 comments on commit 4d2beeb

Please sign in to comment.