Releases: gorakhargosh/watchdog
Releases · gorakhargosh/watchdog
5.0.3
5.0.2
5.0.1
5.0.0
Breaking Changes
- Drop support for Python 3.8 (#1055)
- [core] Enforced usage of proper keyword-arguments (#1057)
- [core] Renamed the
BaseObserverSubclassCallable
class toObserverType
(#1055) - [inotify] Renamed the
inotify_event_struct
class toInotifyEventStruct
(#1055) - [inotify] Renamed the
UnsupportedLibc
exception toUnsupportedLibcError
(#1057) - [inotify] Removed the
InotifyConstants.IN_CLOSE
constant (#1046) - [watchmedo] Renamed the
LogLevelException
exception toLogLevelError
(#1057) - [watchmedo] Renamed the
WatchdogShutdown
exception toWatchdogShutdownError
(#1057) - [windows] Renamed the
FILE_NOTIFY_INFORMATION
class toFileNotifyInformation
(#1055) - [windows] Removed the unused
WATCHDOG_TRAVERSE_MOVED_DIR_DELAY
constant (#1057)
Other Changes
- [core] Enable
disallow_untyped_calls
Mypy rule (#1055) - [core] Enable
disallow_untyped_defs
Mypy rule (#1060) - [core] Improve typing references for events (#1040)
- [inotify] Add support for
IN_CLOSE_NOWRITE
events. AFileClosedNoWriteEvent
event will be fired, and itson_closed_no_write()
dispatcher has been introduced (#1046)
💟 Thanks to our beloved contributors: @BoboTiG
4.0.2
- Add support for Python 3.13 (#1052)
- [core] Run
ruff
, apply several fixes (#1033) - [core] Remove execution rights from
events.py
- [documentation] Update
PatternMatchingEventHandler
docstrings (#1048) - [documentation] Simplify the quickstart example (#1047)
- [fsevents] Add missing
event_filter
keyword-argument toFSEventsObserver.schedule()
(#1049) - [utils] Fix a possible race condition in
AutoRestartTrick
(#1002) - [watchmedo] Remove execution rights from
watchmedo.py
💟 Thanks to our beloved contributors: @BoboTiG, @nbelakovski, @ivg
4.0.1
4.0.0
- Drop support for Python 3.7.
- Add support for Python 3.12.
- [snapshot] Add typing to
dirsnapshot
(#1012) - [snapshot] Added
DirectorySnapshotDiff.ContextManager
(#1011) - [events]
FileSystemEvent
, and subclasses, are nowdataclass
es, and theirrepr()
has changed - [windows]
WinAPINativeEvent
is now adataclass
, and itsrepr()
has changed - [events] Log
FileOpenedEvent
, andFileClosedEvent
, events inLoggingEventHandler
- [tests] Improve
FileSystemEvent
coverage - [watchmedo] Log all events in
LoggerTrick
- [windows] The
observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY
hack was removed. The constant will be kept to prevent breaking other softwares.
3.0.0
- Drop support for Python 3.6.
watchdog
is now PEP 561 compatible, and tested withmypy
- Fix missing
>
inFileSystemEvent.__repr__()
(#980) - [ci] Lots of improvements
- [inotify] Return from
InotifyEmitter.queue_events()
if not launched when thread is inactive (#963) - [tests] Stability improvements
- [utils] Remove handling of
threading.Event.isSet
spelling (#962) - [watchmedo] Fixed tricks YAML generation (#965)
💟 Thanks to our beloved contributors: @kurtmckee, @altendky, @agroszer, @BoboTiG
2.3.1
- Run
black
on the entire source code - Bundle the
requirements-tests.txt
file in the source distribution (#939) - [watchmedo] Exclude
FileOpenedEvent
events fromAutoRestartTrick
, andShellCommandTrick
, to restore watchdog < 2.3.0 behavior. A better solution should be found in the future. (#949) - [watchmedo] Log
FileOpenedEvent
, andFileClosedEvent
, events inLoggerTrick
💟 Thanks to our beloved contributors: @BoboTiG
2.3.0
- [inotify] Add support for
IN_OPEN
events: aFileOpenedEvent
event will be fired (#941) - [watchmedo] Add optional event debouncing for
auto-restart
, only restarting once if many events happen in quick succession (--debounce-interval
) (#940) - [watchmedo] Add option to not auto-restart the command after it exits (
--no-restart-on-command-exit
) (#946) - [watchmedo] Exit gracefully on
KeyboardInterrupt
exception (Ctrl+C) (#945)
💟 Thanks to our beloved contributors: @BoboTiG, @dstaple, @taleinat, @cernekj