-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DirectorySnapshotDiff.ContextManager
#1011
Add DirectorySnapshotDiff.ContextManager
#1011
Conversation
7f50347
to
e486f42
Compare
That is awesome :) |
A context manager that creates two directory snapshots and a diff object that represents the difference between the two snapshots. ```python dir_snapshot_diff_context_manager = DirectorySnapshotDiff.ContextManager("some_path") with dir_snapshot_diff_context_manager: # Do some things that change files... ... print(dir_snapshot_diff_context_manager.diff.files_created) print(dir_snapshot_diff_context_manager.diff.files_deleted) ```
e486f42
to
bb621b2
Compare
Would be happy to! Done! |
I just saw mypy issues. Are they related to the previous PR? 🤔 |
See #1014... |
Thank you @msabramo 🍾 |
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/releases">watchdog's releases</a>.</em></p> <blockquote> <h2>4.0.0</h2> <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's changelog</a>.</em></p> <blockquote> <p>4.0.0</p> <pre><code> 2024-02-06 • `full history <https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0>`__ <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<code>[#1012](gorakhargosh/watchdog#1012) &lt;https://github.com/gorakhargosh/watchdog/pull/1012&gt;</code>__)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<code>[#1011](gorakhargosh/watchdog#1011) &lt;https://github.com/gorakhargosh/watchdog/pull/1011&gt;</code>__)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a> </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a> Version 4.0.0</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a> chore: Update supported Python versions (drop 3.7, add 3.12) (<a href="https://github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a> fix: mypy "type: ignore" comment errors (<a href="https://github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a> style: run black & isort on inotify (<a href="https://github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a> feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a> fix: mypy errors introduced by <a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a> (<a href="https://github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a> feat: Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a> doc: log the watched folder in the README (<a href="https://github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a> Added event filter for the emitter (<a href="https://github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a> [windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack (<a href="https://github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/releases">watchdog's releases</a>.</em></p> <blockquote> <h2>4.0.0</h2> <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's changelog</a>.</em></p> <blockquote> <p>4.0.0</p> <pre><code> 2024-02-06 • `full history <https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0>`__ <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<code>[#1012](gorakhargosh/watchdog#1012) &lt;https://github.com/gorakhargosh/watchdog/pull/1012&gt;</code>__)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<code>[#1011](gorakhargosh/watchdog#1011) &lt;https://github.com/gorakhargosh/watchdog/pull/1011&gt;</code>__)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a> </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a> Version 4.0.0</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a> chore: Update supported Python versions (drop 3.7, add 3.12) (<a href="https://github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a> fix: mypy "type: ignore" comment errors (<a href="https://github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a> style: run black & isort on inotify (<a href="https://github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a> feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a> fix: mypy errors introduced by <a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a> (<a href="https://github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a> feat: Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a> doc: log the watched folder in the README (<a href="https://github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a> Added event filter for the emitter (<a href="https://github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a> [windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack (<a href="https://github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/releases">watchdog's releases</a>.</em></p> <blockquote> <h2>4.0.0</h2> <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's changelog</a>.</em></p> <blockquote> <p>4.0.0</p> <pre><code> 2024-02-06 • `full history <https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0>`__ <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<code>[#1012](gorakhargosh/watchdog#1012) &lt;https://github.com/gorakhargosh/watchdog/pull/1012&gt;</code>__)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<code>[#1011](gorakhargosh/watchdog#1011) &lt;https://github.com/gorakhargosh/watchdog/pull/1011&gt;</code>__)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a> </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a> Version 4.0.0</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a> chore: Update supported Python versions (drop 3.7, add 3.12) (<a href="https://github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a> fix: mypy "type: ignore" comment errors (<a href="https://github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a> style: run black & isort on inotify (<a href="https://github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a> feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a> fix: mypy errors introduced by <a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a> (<a href="https://github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a> feat: Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a> doc: log the watched folder in the README (<a href="https://github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a> Added event filter for the emitter (<a href="https://github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a> [windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack (<a href="https://github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ty#10221) Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/releases">watchdog's releases</a>.</em></p> <blockquote> <h2>4.0.0</h2> <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's changelog</a>.</em></p> <blockquote> <p>4.0.0</p> <pre><code> 2024-02-06 • `full history <https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0>`__ <ul> <li>Drop support for Python 3.7.</li> <li>Add support for Python 3.12.</li> <li>[snapshot] Add typing to <code>dirsnapshot</code> (<code>[Submitty#1012](gorakhargosh/watchdog#1012) &lt;https://github.com/gorakhargosh/watchdog/pull/1012&gt;</code>__)</li> <li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code> (<code>[Submitty#1011](gorakhargosh/watchdog#1011) &lt;https://github.com/gorakhargosh/watchdog/pull/1011&gt;</code>__)</li> <li>[events] <code>FileSystemEvent</code>, and subclasses, are now <code>dataclass</code>es, and their <code>repr()</code> has changed</li> <li>[windows] <code>WinAPINativeEvent</code> is now a <code>dataclass</code>, and its <code>repr()</code> has changed</li> <li>[events] Log <code>FileOpenedEvent</code>, and <code>FileClosedEvent</code>, events in <code>LoggingEventHandler</code></li> <li>[tests] Improve <code>FileSystemEvent</code> coverage</li> <li>[watchmedo] Log all events in <code>LoggerTrick</code></li> <li>[windows] The <code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack was removed. The constant will be kept to prevent breaking other softwares.</li> <li>Thanks to our beloved contributors: <a href="https://github.com/BoboTiG"><code>@BoboTiG</code></a>, <a href="https://github.com/msabramo"><code>@msabramo</code></a> </code></pre></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a> Version 4.0.0</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a> chore: Update supported Python versions (drop 3.7, add 3.12) (<a href="https://github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a> fix: mypy "type: ignore" comment errors (<a href="https://github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a> style: run black & isort on inotify (<a href="https://github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a> feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a> fix: mypy errors introduced by <a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a> (<a href="https://github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a> feat: Add typing to <code>dirsnapshot</code> (<a href="https://github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a> doc: log the watched folder in the README (<a href="https://github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a> Added event filter for the emitter (<a href="https://github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li> <li><a href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a> [windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack (<a href="https://github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
A context manager that creates two directory snapshots and a diff object that represents the difference between the two snapshots.