Skip to content
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

Bump watchdog from 4.0.1 to 6.0.0 #1101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Nov 4, 2024

Bumps watchdog from 4.0.1 to 6.0.0.

Release notes

Sourced from watchdog's releases.

6.0.0

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 ic_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

  • [inotify] Improve cleaning up Inotify threads, and add eventlet test cases (#1070)

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

5.0.2

  • 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

  • [kqueue] Fix TypeError: kqueue.control() only accepts positional parameters (#1062)

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

5.0.0

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)

... (truncated)

Changelog

Sourced from watchdog's changelog.

6.0.0


2024-11-01 • `full history <https://github.com/gorakhargosh/watchdog/compare/v5.0.3...v6.0.0>`__
  • Pin test dependecies.
  • [docs] Add typing info to quick start. ([#1082](https://github.com/gorakhargosh/watchdog/issues/1082) &lt;https://github.com/gorakhargosh/watchdog/pull/1082&gt;__)
  • [inotify] Use of select.poll() instead of deprecated select.select(), if available. ([#1078](https://github.com/gorakhargosh/watchdog/issues/1078) &lt;https://github.com/gorakhargosh/watchdog/pull/1078&gt;__)
  • [inotify] Fix reading inotify file descriptor after closing it. ([#1081](https://github.com/gorakhargosh/watchdog/issues/1081) &lt;https://github.com/gorakhargosh/watchdog/pull/1081&gt;__)
  • [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.
  • [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 ic_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] Fixed Mypy issues.
  • [watchmedo] Added the __repr__() method to the HelpFormatter class.
  • [watchmedo] Removed the --trace CLI argument from the watchmedo log command, useless since events are logged by default at the LoggerTrick class level.
  • [windows] Fixed Mypy issues.
  • Thanks to our beloved contributors: @​BoboTiG, @​g-pichler, @​ethan-vanderheijden, @​nhairs

5.0.3

2024-09-27 • full history <https://github.com/gorakhargosh/watchdog/compare/v5.0.2...v5.0.3>__

  • [inotify] Improve cleaning up Inotify threads, and add eventlet test cases ([#1070](https://github.com/gorakhargosh/watchdog/issues/1070) <https://github.com/gorakhargosh/watchdog/pull/1070>__)
  • Thanks to our beloved contributors: @​BoboTiG, @​ethan-vanderheijden

5.0.2


2024-09-03 • `full history <https://github.com/gorakhargosh/watchdog/compare/v5.0.1...v5.0.2>`__
  • Enable OS specific Mypy checks ([#1064](https://github.com/gorakhargosh/watchdog/issues/1064) &lt;https://github.com/gorakhargosh/watchdog/pull/1064&gt;__)
  • [watchmedo] Fix tricks argument type of schedule_tricks() ([#1063](https://github.com/gorakhargosh/watchdog/issues/1063) &lt;https://github.com/gorakhargosh/watchdog/pull/1063&gt;__)
  • Thanks to our beloved contributors: @​gnought, @​BoboTiG

5.0.1

2024-09-02 • full history <https://github.com/gorakhargosh/watchdog/compare/v5.0.0...v5.0.1>__

  • [kqueue] Fix TypeError: kqueue.control() only accepts positional parameters ([#1062](https://github.com/gorakhargosh/watchdog/issues/1062) <https://github.com/gorakhargosh/watchdog/pull/1062>__)
  • Thanks to our beloved contributors: @​apoirier, @​BoboTiG

... (truncated)

Commits

Dependabot compatibility score

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 commands and options

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)

Summary by Sourcery

Build:

  • Upgrade watchdog dependency from version 4.0.1 to 6.0.0.

Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 4.0.1 to 6.0.0.
- [Release notes](https://github.com/gorakhargosh/watchdog/releases)
- [Changelog](https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst)
- [Commits](gorakhargosh/watchdog@v4.0.1...v6.0.0)

---
updated-dependencies:
- dependency-name: watchdog
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 4, 2024
@dependabot dependabot bot requested a review from aw-was-here November 4, 2024 15:33
Copy link

sourcery-ai bot commented Nov 4, 2024

Reviewer's Guide by Sourcery

This PR upgrades the watchdog package from version 4.0.1 to 6.0.0. The upgrade includes several breaking changes, primarily focused on the inotify implementation, removal of unused utility functions, and CLI argument changes. The update also brings improvements in type hints, bug fixes, and code cleanup.

Class diagram for changes in the watchdog package

classDiagram
    class AutoRestartTrick {
        - stop_signal: signal.Signals | int
    }
    class Trick {
        + __repr__(): str
    }
    class HelpFormatter {
        + __repr__(): str
    }
    class ObserverType
    class InotifyEventStruct
    note for ObserverType "Renamed from BaseObserverSubclassCallable"
    note for InotifyEventStruct "Renamed from inotify_event_struct"
Loading

File-Level Changes

Change Details Files
Major changes to inotify implementation
  • Replaced deprecated select.select() with select.poll() for better performance
  • Fixed issue with reading inotify file descriptor after closing it
  • Improved cleanup of Inotify threads
requirements-run.txt
Removal of unused utility functions
  • Removed multiple unused echo-related functions
  • Removed unused class and method utility functions
  • Removed is_class_private_name() and is_classmethod() functions
requirements-run.txt
CLI and API improvements
  • Removed --trace CLI argument from watchmedo log command
  • Added support for signal.Signals type in AutoRestartTrick class
  • Added repr() methods to Trick and HelpFormatter classes
  • Fixed various Mypy typing issues
requirements-run.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, dependabot[bot]!). We assume it knows what it's doing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants