Skip to content

Releases: gorakhargosh/watchdog

5.0.2

03 Sep 21:02
Compare
Choose a tag to compare
  • Enable OS specific Mypy checks (#1064)
  • [watchmedo] Fix tricks argument type of schedule_tricks() (#1063)

💟 Thanks to our beloved contributors: @gnought, @BoboTiG

5.0.1

02 Sep 17:52
8658cfc
Compare
Choose a tag to compare
  • [kqueue] Fix TypeError: kqueue.control() only accepts positional parameters (#1062)

💟 Thanks to our beloved contributors: @apoirier, @BoboTiG

5.0.0

26 Aug 21:52
76f3ba8
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for Python 3.8 (#1055)
  • [core] Enforced usage of proper keyword-arguments (#1057)
  • [core] Renamed the BaseObserverSubclassCallable class to ObserverType (#1055)
  • [inotify] Renamed the inotify_event_struct class to InotifyEventStruct (#1055)
  • [inotify] Renamed the UnsupportedLibc exception to UnsupportedLibcError (#1057)
  • [inotify] Removed the InotifyConstants.IN_CLOSE constant (#1046)
  • [watchmedo] Renamed the LogLevelException exception to LogLevelError (#1057)
  • [watchmedo] Renamed the WatchdogShutdown exception to WatchdogShutdownError (#1057)
  • [windows] Renamed the FILE_NOTIFY_INFORMATION class to FileNotifyInformation (#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. A FileClosedNoWriteEvent event will be fired, and its on_closed_no_write() dispatcher has been introduced (#1046)

💟 Thanks to our beloved contributors: @BoboTiG

4.0.2

11 Aug 07:41
9c5a432
Compare
Choose a tag to compare
  • 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 to FSEventsObserver.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

23 May 16:13
1a1f400
Compare
Choose a tag to compare
  • [inotify] Fix missing event_filter for the full emitter (#1032)

💟 Thanks to our beloved contributors: @mraspaud, @BoboTiG

4.0.0

06 Feb 22:07
Compare
Choose a tag to compare
  • 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 now dataclasses, and their repr() has changed
  • [windows] WinAPINativeEvent is now a dataclass, and its repr() has changed
  • [events] Log FileOpenedEvent, and FileClosedEvent, events in LoggingEventHandler
  • [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.

💟 Thanks to our beloved contributors: @BoboTiG, @msabramo

3.0.0

20 Mar 09:22
da09c06
Compare
Choose a tag to compare
  • Drop support for Python 3.6.
  • watchdog is now PEP 561 compatible, and tested with mypy
  • Fix missing > in FileSystemEvent.__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

28 Feb 08:41
60a97bf
Compare
Choose a tag to compare
  • Run black on the entire source code
  • Bundle the requirements-tests.txt file in the source distribution (#939)
  • [watchmedo] Exclude FileOpenedEvent events from AutoRestartTrick, and ShellCommandTrick, to restore watchdog < 2.3.0 behavior. A better solution should be found in the future. (#949)
  • [watchmedo] Log FileOpenedEvent, and FileClosedEvent, events in LoggerTrick

💟 Thanks to our beloved contributors: @BoboTiG

2.3.0

23 Feb 20:52
4f83d70
Compare
Choose a tag to compare
  • [inotify] Add support for IN_OPEN events: a FileOpenedEvent 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

2.2.1

01 Jan 09:54
Compare
Choose a tag to compare
  • Enable mypy to discover type hints as specified in PEP 561 (#933)
  • [ci] Set the expected Python version when building release files
  • [ci] Update actions versions in use
  • [watchmedo] [regression] Fix usage of missing signal.SIGHUP attribute on non-Unix OSes (#935)

💟 Thanks to our beloved contributors: @BoboTiG, @simon04, @piotrpdev