Skip to content

Releases: gorakhargosh/watchdog

6.0.0

01 Nov 14:09
76c091d
Compare
Choose a tag to compare

Breaking Changes

  • [inotify] Use of select.poll() instead of deprecated select.select(), if available. (#1078)
  • [utils] Removed the unused echo_class() function from the echo module.
  • [utils] Removed the unused echo_instancemethod() function from the echo module.
  • [utils] Removed the unused echo_module() function from the echo module.
  • [utils] Removed the unused is_class_private_name() function from the echo module.
  • [utils] Removed the unused is_classmethod() function from the echo module.
  • [utils] Removed the unused is_method(met() function from the echo module.
  • [utils] Removed the unused method_name() function from the echo module.
  • [utils] Removed the unused name() function from the echo module.
  • [watchmedo] Removed the --trace CLI argument from the watchmedo log command, useless since events are logged by default at the LoggerTrick class level.

Other Changes

  • Pin test dependecies.
  • [docs] Add typing info to quick start. (#1082)
  • [inotify] Fix reading inotify file descriptor after closing it. (#1081)
  • [utils] The stop_signal keyword-argument type of the AutoRestartTrick class can now be either a signal.Signals or an int.
  • [utils] Added the __repr__() method to the Trick class.
  • [watchmedo] Fixed Mypy issues.
  • [watchmedo] Added the __repr__() method to the HelpFormatter class.
  • [windows] Fixed Mypy issues.

💟 Thanks to our beloved contributors: @g-pichler, @ethan-vanderheijden, @nhairs, @BoboTiG

5.0.3

27 Sep 16:11
Compare
Choose a tag to compare
  • [inotify] Improve cleaning up Inotify threads, and add eventlet test cases (#1070)

💟 Thanks to our beloved contributors: @ethan-vanderheijden, @BoboTiG

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

Breaking Changes

  • Drop support for Python 3.7.
  • [events] FileSystemEvent, and subclasses, are now dataclasses, and their repr() has changed
  • [windows] WinAPINativeEvent is now a dataclass, and its repr() has changed
  • [windows] The observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY hack was removed. The constant will be kept to prevent breaking other softwares.

Other Changes

  • Add support for Python 3.12.
  • [snapshot] Add typing to dirsnapshot (#1012)
  • [snapshot] Added DirectorySnapshotDiff.ContextManager (#1011)
  • [events] Log FileOpenedEvent, and FileClosedEvent, events in LoggingEventHandler
  • [tests] Improve FileSystemEvent coverage
  • [watchmedo] Log all events in LoggerTrick

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

3.0.0

20 Mar 09:22
da09c06
Compare
Choose a tag to compare

Breaking Changes

  • Drop support for Python 3.6.

Other Changes

  • 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