Skip to content

Commit

Permalink
Merge pull request #309 from OpenVoiceOS/release-0.5.3a1
Browse files Browse the repository at this point in the history
Release 0.5.3a1
  • Loading branch information
JarbasAl authored Nov 21, 2024
2 parents cbc69e5 + a48e6c0 commit 4350c03
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Changelog

## [0.5.2a1](https://github.com/OpenVoiceOS/ovos-utils/tree/0.5.2a1) (2024-11-21)
## [0.5.3a1](https://github.com/OpenVoiceOS/ovos-utils/tree/0.5.3a1) (2024-11-21)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-utils/compare/0.5.1...0.5.2a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-utils/compare/0.5.2...0.5.3a1)

**Merged pull requests:**

- fix: restore backwards compat [\#306](https://github.com/OpenVoiceOS/ovos-utils/pull/306) ([JarbasAl](https://github.com/JarbasAl))
- fix: restore compat again [\#308](https://github.com/OpenVoiceOS/ovos-utils/pull/308) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
7 changes: 7 additions & 0 deletions ovos_utils/fakebus.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,10 @@ def publish(self, msg_type, data, context=None):

return FakeMessage(msg_type, data, context=new_context)


class Message(FakeMessage):
"""just for compat, stuff in the wild importing from here even with deprecation warnings..."""
def __new__(cls, *args, **kwargs):
log_deprecation("please import from ovos-bus-client directly! this import has been deprecated since version 0.1.0", "1.0.0")
return super().__new__(cls)

8 changes: 1 addition & 7 deletions ovos_utils/messagebus.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
from ovos_utils.fakebus import dig_for_message, FakeMessage, FakeBus
from ovos_utils.fakebus import dig_for_message, Message, FakeMessage, FakeBus
from ovos_utils.log import log_deprecation


log_deprecation("ovos_utils.messagebus has been deprecated since version 0.1.0!! "
"please import from ovos_utils.fakebus or ovos_bus_client directly", "1.0.0")


class Message(FakeMessage):
"""just for compat, stuff in the wild importing from here even with deprecation warnings..."""


4 changes: 2 additions & 2 deletions ovos_utils/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 5
VERSION_BUILD = 2
VERSION_ALPHA = 0
VERSION_BUILD = 3
VERSION_ALPHA = 1
# END_VERSION_BLOCK

0 comments on commit 4350c03

Please sign in to comment.