From f6a7f9703fcea361c7080e09e6d48df86a94cb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Tue, 20 Feb 2024 18:47:49 +0100 Subject: [PATCH 1/2] Port to new major (incompatible) version of watchdog. Fixes #3761. --- nikola/plugins/command/auto/__init__.py | 2 +- requirements-extras.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nikola/plugins/command/auto/__init__.py b/nikola/plugins/command/auto/__init__.py index a3e0d1bb34..f05dbcf19e 100644 --- a/nikola/plugins/command/auto/__init__.py +++ b/nikola/plugins/command/auto/__init__.py @@ -620,5 +620,5 @@ def __init__(self, configuration_filename, function, loop): def dispatch(self, event): """Handle file events if they concern the configuration file.""" - if event._src_path == self.configuration_filename: + if event.src_path == self.configuration_filename: super().dispatch(event) diff --git a/requirements-extras.txt b/requirements-extras.txt index 1ad129de3d..cd20a9fa69 100644 --- a/requirements-extras.txt +++ b/requirements-extras.txt @@ -10,7 +10,7 @@ notebook>=6.0.0 ipykernel>=6.21.2 ghp-import>=1.0.0 aiohttp>=3.8.6 -watchdog>=0.8.3 +watchdog>=4.0.0 ruamel.yaml>=0.15.98 toml>=0.9.2 html5lib>=1.0.1 From e7b3a01ebd96e3b3c091cb360318f67c19d6b1e1 Mon Sep 17 00:00:00 2001 From: Chris Warrick Date: Thu, 22 Feb 2024 18:32:35 +0100 Subject: [PATCH 2/2] Update requirements-extras.txt --- requirements-extras.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-extras.txt b/requirements-extras.txt index cd20a9fa69..d8c2259c89 100644 --- a/requirements-extras.txt +++ b/requirements-extras.txt @@ -10,7 +10,7 @@ notebook>=6.0.0 ipykernel>=6.21.2 ghp-import>=1.0.0 aiohttp>=3.8.6 -watchdog>=4.0.0 +watchdog>=2.3.0 ruamel.yaml>=0.15.98 toml>=0.9.2 html5lib>=1.0.1