Skip to content

Commit

Permalink
Update deprecation notices to match commented deprecation version
Browse files Browse the repository at this point in the history
Remove `watchdog` dependency for code moved to ovos-utils
  • Loading branch information
NeonDaniel committed Oct 24, 2023
1 parent f10e166 commit eeae692
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions ovos_config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ def __init__(self, *args, **kwargs):
if _FileWatcher is None:
raise ImportError("Import from ovos_utils.file_utils directly")
_FileWatcher.__init__(self, *args, **kwargs)
log_deprecation("Import from ovos_utils.file_utils directly", "0.1.0")
log_deprecation("Import from ovos_utils.file_utils directly",
"0.0.12")


class FileEventHandler(_FileEventHandler):
def __init__(self, *args, **kwargs):
if _FileEventHandler is None:
raise ImportError("Import from ovos_utils.file_utils directly")
_FileEventHandler.__init__(self, *args, **kwargs)
log_deprecation("Import from ovos_utils.file_utils directly", "0.1.0")
log_deprecation("Import from ovos_utils.file_utils directly",
"0.0.12")

except ImportError:
LOG.debug("Failed to import `FileWatcher` and `FileEventHandler`")
Expand Down
5 changes: 2 additions & 3 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
PyYAML>=5.4.0,<7.0.0
watchdog
combo_lock
combo_lock~=0.2
python-dateutil~=2.6
ovos-utils < 0.1.0
rich-click
rich-click ~=1.6

0 comments on commit eeae692

Please sign in to comment.