pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/py-watchdog



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Nov 23 12:06:58 UTC 2026

Modified Files:
        pkgsrc/sysutils/py-watchdog: Makefile PLIST distinfo

Log Message:
py-watchdog: updated to 7.1.1

7.1.1

**Other Changes**

- [core] Allow pattern matching to evaluate relative paths against the watched root directory, supporting intuitive non-recursive patterns (e.g. ``*.json``, ``logs/*.log``) under ``full_match()``.
- [core] ``RegexMatchingEventHandler`` now accepts a single string for ``ignore_regexes``, as it already does for ``regexes``, instead of compiling each character as a separate regex.
- [observers] Fix race condition between ``Observer.start()`` and ``Observer.schedule()``, and release observer lock during event handler dispatch to prevent blocking concurrent ``schedule()`` and 
``unschedule()`` calls.
- [fsevents] Fix compiler warnings in the C extension.
- [inotify] A recursive watch that hits the inotify watch or instance limit (``ENOSPC``, ``EMFILE``) on a subdirectory raises ``OSError`` from ``start()`` and ``schedule()`` again, as in 6.0.0, 
instead of silently watching part of the tree. A subdirectory created later that cannot be watched is logged as a warning.
- [inotify] Defer allocating an observer's inotify instance and reader thread until its first scheduled watch. Empty observers no longer consume inotify instances; resource-limit errors are raised by 
``schedule()`` rather than construction.
- [inotify] Do not log an error when ``InotifyEmitter.queue_events()`` is invoked while the emitter is inactive.
- [inotify] Events read before a kernel queue overflow are delivered instead of discarded, ahead of the ``EventsLostEvent``.
- [inotify] Properly format the duplicate-callback ``RuntimeWarning`` message.
- [inotify] Refactor watch tracking from flat string path dictionaries to a hierarchical directory tree (``DirNode``), making recursive subtree moves atomic operations with cycle detection and 
ancestor placeholder pruning.
- [inotify] Report lost events: after a kernel queue overflow, each watch gets an ``EventsLostEvent`` for its directory or file, dispatched to the new ``FileSystemEventHandler.on_events_lost()`` once 
the watches are repaired. Pattern and regex handlers (and so tricks) receive it only through ``on_events_lost()``.
- [inotify] Stop watching directories moved out of a watched tree and emit synthetic deletion/moved events for their subdirectories.
- [kqueue] Queue each event once per kqueue wakeup. A move reported the parent ``DirModifiedEvent`` twice, and a write reported ``FileModifiedEvent`` twice.
- [kqueue] Register the kevents when the emitter is created, not on the emitter thread's first ``kqueue.control()`` call. Deletes, renames and attribute changes made in between were lost, every time 
on free-threaded Python.
- [kqueue] Stop the emitter with a ``DirDeletedEvent`` when the watched directory is removed or moved, instead of letting its thread die with ``FileNotFoundError``. The kevents read in the same batch 
are still reported.
- [windows] A ``ReadDirectoryChangesW`` or ``ReadDirectoryChangesExW`` buffer overflow is now signalled instead of being silently dropped as zero events.
- [windows] Deliver events while the watched tree keeps changing: ``DirectoryChangeReader.get_events()`` now returns within its timeout instead of waiting until no buffer has arrived for a full 
timeout.
- [windows] Make the ``DirectoryChangeReader`` thread a daemon so an unstopped observer does not block interpreter exit.
- [windows] Report lost events: when the ``ReadDirectoryChangesW`` buffer of a watch overflows, the watch gets an ``EventsLostEvent``, dispatched to ``FileSystemEventHandler.on_events_lost()``, as on 
inotify.
- [windows] ``WindowsApiObserver``, ``WindowsApiEmitter``, and ``DirectoryChangeReader`` accept a ``notify_filter`` bitmask, the ``dwNotifyFilter`` passed to ``ReadDirectoryChangesW`` and 
``ReadDirectoryChangesExW``. The default is still ``WATCHDOG_FILE_NOTIFY_FLAGS``, including ``FILE_NOTIFY_CHANGE_LAST_ACCESS``. Mask that flag out (``WATCHDOG_FILE_NOTIFY_FLAGS & 
~FILE_NOTIFY_CHANGE_LAST_ACCESS``) when access-time updates are not useful.
- [dirsnapshot] Avoid duplicate create or delete events when a renamed file has another hard link in the watched directory.
- [dirsnapshot] Capture Linux birth times while taking a snapshot so deleted paths retain their historical identity during move detection.
- [dirsnapshot] Detect replacements at the same path when an inode is reused but the entry type or available birth time changes, instead of missing the replacement or reporting it as a modification.
- [dirsnapshot] Fix false move detection on inode recycling by verifying file type, birth time, and nanosecond stat invariants.
- [watchmedo] Without ``--command``, ``shell-command`` printed every event as "<type> <object> from <src> to" with an empty destination. It now prints the destination for moved events only.
- [ci] Run the test suite in FreeBSD 14 (kqueue, also on free-threaded 3.13t) and FreeBSD 15 (inotify) VMs on pull requests.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/sysutils/py-watchdog/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/sysutils/py-watchdog/PLIST
cvs rdiff -u -r1.18 -r1.19 pkgsrc/sysutils/py-watchdog/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/py-watchdog/Makefile
diff -u pkgsrc/sysutils/py-watchdog/Makefile:1.32 pkgsrc/sysutils/py-watchdog/Makefile:1.33
--- pkgsrc/sysutils/py-watchdog/Makefile:1.32   Mon Nov 16 12:14:51 2026
+++ pkgsrc/sysutils/py-watchdog/Makefile        Mon Nov 23 12:06:58 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2026/11/16 12:14:51 adam Exp $
+# $NetBSD: Makefile,v 1.33 2026/11/23 12:06:58 adam Exp $
 
-DISTNAME=      watchdog-7.1.0
+DISTNAME=      watchdog-7.1.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    sysutils python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/watchdog/}

Index: pkgsrc/sysutils/py-watchdog/PLIST
diff -u pkgsrc/sysutils/py-watchdog/PLIST:1.8 pkgsrc/sysutils/py-watchdog/PLIST:1.9
--- pkgsrc/sysutils/py-watchdog/PLIST:1.8       Mon Nov  2 11:21:10 2026
+++ pkgsrc/sysutils/py-watchdog/PLIST   Mon Nov 23 12:06:58 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2026/11/02 11:21:10 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2026/11/23 12:06:58 adam Exp $
 bin/watchmedo-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -84,6 +84,9 @@ ${PYSITELIB}/watchdog/utils/platform.pyo
 ${PYSITELIB}/watchdog/utils/process_watcher.py
 ${PYSITELIB}/watchdog/utils/process_watcher.pyc
 ${PYSITELIB}/watchdog/utils/process_watcher.pyo
+${PYSITELIB}/watchdog/utils/statx.py
+${PYSITELIB}/watchdog/utils/statx.pyc
+${PYSITELIB}/watchdog/utils/statx.pyo
 ${PYSITELIB}/watchdog/version.py
 ${PYSITELIB}/watchdog/version.pyc
 ${PYSITELIB}/watchdog/version.pyo

Index: pkgsrc/sysutils/py-watchdog/distinfo
diff -u pkgsrc/sysutils/py-watchdog/distinfo:1.18 pkgsrc/sysutils/py-watchdog/distinfo:1.19
--- pkgsrc/sysutils/py-watchdog/distinfo:1.18   Mon Nov 16 12:14:51 2026
+++ pkgsrc/sysutils/py-watchdog/distinfo        Mon Nov 23 12:06:58 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2026/11/16 12:14:51 adam Exp $
+$NetBSD: distinfo,v 1.19 2026/11/23 12:06:58 adam Exp $
 
-BLAKE2s (watchdog-7.1.0.tar.gz) = bf224dc4bf8a842a285c6541ca6add54031794c2de484e5cfa8093f0b10282ab
-SHA512 (watchdog-7.1.0.tar.gz) = 4a61184eb972721acfc7fbe5baf994be9fd764b00bc07332ae32befc7896ef5c4b82a5a955aaa3b278539a9eca3521b8193936fe095689be073ab2ce6921f06c
-Size (watchdog-7.1.0.tar.gz) = 218748 bytes
+BLAKE2s (watchdog-7.1.1.tar.gz) = 53c3b96d37d782330c2c70ddca02fc0205fbb6b646bf9297bef1f37dfa62a0ea
+SHA512 (watchdog-7.1.1.tar.gz) = 9052f09221a95c1bd7ef2ff7e91f8d064532885c52088958ef6a6d714215aebe0367fa39f830928381684a6c651e72a3b10d99523c3581221a57667e52289c52
+Size (watchdog-7.1.1.tar.gz) = 256722 bytes



Home | Main Index | Thread Index | Old Index