Permalink
Commits on Nov 21, 2016
  1. Fixes issue #381

    DonyorM committed Nov 21, 2016
    This updates the echo_class method of echo.py to support python3.
    Improper support for python2 I believe.
Commits on Oct 28, 2016
  1. Merge pull request #362 from adrpar/polling_observer_deleted_dir_fix

    DonyorM committed on GitHub Oct 28, 2016
    polling observer: deleting observed directory now emits DirDeletedEvent
  2. Merge pull request #371 from zommuter/quickstart-nosleep

    DonyorM committed on GitHub Oct 28, 2016
    No need for time.sleep
Commits on Oct 26, 2016
  1. Merge pull request #383 from gforcada/patch-1

    DonyorM committed on GitHub Oct 26, 2016
    Add trove classifiers for python versions supported
  2. Merge pull request #374 from pR0Ps/master

    DonyorM committed on GitHub Oct 26, 2016
    Fix crash on shutdown when root directory deleted.
  3. Fix crash on shutdown

    pR0Ps committed Sep 23, 2016
    When the root directory being watched by inotify was deleted, watchdog
    would crash with a KeyError when shutting down.
    
    This commit stops watching the deleted directory for events once it's
    been deleted, as well as adds a guard for the crash.
  4. Merge pull request #375 from danilobellini/inotify

    DonyorM committed on GitHub Oct 26, 2016
    Inotify event order/duplication, fix #117 and #233
Commits on Oct 24, 2016
  1. Merge pull request #378 from dhke/master

    DonyorM committed on GitHub Oct 24, 2016
    Improve *BSD detection in watchdog.observers.platform
  2. Merge pull request #380 from ShinNoNoir/patch-1

    DonyorM committed on GitHub Oct 24, 2016
    Catch RuntimeError in _load_libc(); Allows libc_path to be determined even in case of runtime error.
Commits on Oct 23, 2016
  1. Merge pull request #368 from danilobellini/tox

    DonyorM committed on GitHub Oct 23, 2016
    Add a tox.ini that doesn't depend on setup.py test
Commits on Oct 19, 2016
Commits on Oct 16, 2016
  1. Catch RuntimeError in _load_libc()

    ShinNoNoir committed on GitHub Oct 16, 2016
    On Synology DSM 6.0, `_load_libc()` throws a `RuntimeError`. Catching this error allows the code to proceed to fallbacks.
Commits on Oct 11, 2016
  1. - fix indentation

    Peter Wullinger committed Oct 11, 2016
  2. sys.platform does not start with 'bsd' on any of the BSDs implementing

    Peter Wullinger committed Oct 11, 2016
    kqueue.
    
    Use an explicit enumeration of those that do (at least in recent
    releases).
Commits on Oct 6, 2016
  1. Merge pull request #376 from pierregr/master

    gorakhargosh committed on GitHub Oct 6, 2016
    Fixed constant in winapi.py.
Commits on Sep 27, 2016
  1. Fixed constant in winapi.py.

    pierregr committed on GitHub Sep 27, 2016
    Fixed winapi.py accordingly to kernel32.dll documentation. After file not found errors in line 276:
    
    def get_directory_handle(path):
        """Returns a Windows handle to the specified directory path."""
        return CreateFileW(path, FILE_LIST_DIRECTORY, WATCHDOG_FILE_SHARE_FLAGS,
                           None, OPEN_EXISTING, WATCHDOG_FILE_FLAGS, None)
    
    during watchdog startup on win2008 server.
Commits on Sep 24, 2016
  1. Update .travis.yml to be based on tox

    danilobellini committed Aug 14, 2016
    - Travis builds runs tox instead of "python setup.py test"; the
      latter was breaking on CPython 3.2
    - Add jobs for the PyPy3, CPython 3.5 and CPython 3.6 (nightly)
      interpreters
    - Jobs running CPython 3.6 (nightly) are allowed to fail without
      failing the whole build
  2. Add a tox.ini that doesn't depend on setup.py test

    danilobellini committed Aug 11, 2016
    - Included more CPython versions: 3.2, 3.3, 3.5 and 3.6
    - Included PyPy3
    - Added {posargs} so one can test selected environments passing
      parameters to py.test (arguments after "--"), e.g.
      tox -e py35,py34 -- -k test_inotify
    - Coverage linked to the package, not to the directory
  3. Remove duplicated directory "delete" on Linux

    danilobellini committed Sep 24, 2016
    Inotify emits a IN_DELETE|IS_DIR event and a IN_DELETE_SELF event (in
    this order) when a watched directory is removed, the former event
    happens for all directories and generates a pair of a DirDeletedEvent
    and a DirModifiedEvent instances, the latter used to generate a
    (duplicated and unrequired) DirDeletedEvent
    
    With this change, the test_fast_subdirectory_creation_deletion no
    longer fails
  4. Mock inotify & test the c-d-c-d-ds-i-ds-i sequence

    danilobellini committed Sep 24, 2016
    c = IN_CREATE|IS_DIR
    d = IN_DELETE|IS_DIR
    ds = IN_DELETE_SELF
    i = IN_IGNORE
    
    These are inotify events, not watchdog events
    
    The new test is written in a new module because it required a
    different teardown function to stop the emitter before undoing
    the mock
  5. Remove Inotify._remove_watch_bookkeeping

    danilobellini committed Aug 15, 2016
    - The call on inotify_event.is_ignored was removing the wrong wd, due
      to another wd with the same path (self._wd_for_path[src_path] was
      replaced)
    - Fix #117 and #233
    - Still not enough to fix every bug regarding fast/unordered events,
      but doesn't crash anymore
  6. Add test_fast_subdirectory_creation_deletion

    danilobellini committed Aug 14, 2016
    - This is related to #117 and #233
    - It's about a single path that is has 2 wd values, i.e., a
      subdirectory path that was created again before the "bookkeeping
      removal" event (IN_IGNORE) of a deletion was processed
    - The test is using a stochastical approach to reach the bug, in the
      sense that being "fast" isn't enough to enforce a particular event
      order; however, a "lucky" event synchronization seems extremely rare
      and the package should pass on every case
    - Even with an unknown order for the events, the test is counting and
      enforces:
      - Watchdog emits the 120 events that happened
      - Specific number of events for each type
      - Order constraing as required for minimal consistency (e.g. not
        deleting a directory that wasn't created)
Commits on Aug 25, 2016
  1. No need for time.sleep

    zommuter committed on GitHub Aug 25, 2016
Commits on Apr 12, 2016
  1. Merge pull request #351 from DonyorM/master

    DonyorM committed Apr 12, 2016
    Add feature to allow move events to be created even without both paths being watched.
Commits on Apr 4, 2016
Commits on Apr 3, 2016
  1. Adds option on linux to allow all move events.

    DonyorM committed Apr 3, 2016
    This happens even if only one part of the event is watched. Tests for the new feature also
    added.
  2. Adds option on linux to allow move events to be passed through, even

    DonyorM committed with DonyorM Apr 3, 2016
    if only one part of the event is watched. Tests for the new feature also
    added.
Commits on Oct 26, 2015
  1. Merge pull request #336 from mafrosis/shell-command-polling

    tamland committed Oct 26, 2015
    Add --debug-force-polling to shell-command
Commits on Oct 18, 2015
Commits on Jul 27, 2015
  1. Merge pull request #329 from nolsto/stdlib-setsid

    tamland committed Jul 27, 2015
    Use setsid function from Python's os module
Commits on Jul 10, 2015
  1. Remove accidental newline

    nolsto committed Jul 10, 2015