Skip to content

Commit

Permalink
Merge pull request #185 from mraspaud/replace-inotify
Browse files Browse the repository at this point in the history
Replace pyinotify with watchdog
  • Loading branch information
mraspaud authored Feb 27, 2024
2 parents adc01df + 7c50b7b commit 010c0d4
Show file tree
Hide file tree
Showing 16 changed files with 540 additions and 773 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Install dependencies
run: |
pip install -U pytest pytest-cov pytest-bdd pytest-reraise pyyaml trollsift posttroll inotify pyinotify paramiko scp watchdog pytroll-collectors>=0.13.0 fsspec s3fs
pip install -U pytest pytest-cov pytest-bdd pytest-reraise pyyaml trollsift posttroll>=1.11 paramiko scp watchdog!=4.0.0 pytroll-collectors>=0.13.0 fsspec s3fs
- name: Install trollmoves
run: |
Expand Down
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
exclude: '^$'
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings, flake8-debugger, flake8-bugbear, flake8-rst-docstrings]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
language_version: python3
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ destination given in the request.
Required libraries:
- ``netifaces``
- ``posttroll``
- ``pyinotify``
- ``pyzmq``
- ``trollsift``
- ``watchdog``
Expand Down Expand Up @@ -58,7 +57,6 @@ which files are already handled, so duplicate transfers should not happen.
Required libraries:
- ``netifaces``
- ``posttroll``
- ``pyinotify``
- ``pyzmq``
- ``trollsift``

Expand All @@ -73,7 +71,6 @@ Server to temporary directory and further on to the external destination.
Required libraries:
- ``netifaces``
- ``posttroll``
- ``pyinotify``
- ``pyzmq``
- ``trollsift``
- ``watchdog``
Expand Down
6 changes: 1 addition & 5 deletions bin/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Dispatcher.
The configuration file is watched with inotify. If needed, the reload of the
configuration file can be triggered with a `kill -10 <dispatcher pid>`.
"""
"""Dispatcher."""

import argparse
import sys
Expand Down
Loading

0 comments on commit 010c0d4

Please sign in to comment.